Create cam.php

This commit is contained in:
feedc0de authored and GitHub committed 2021-11-29 23:26:19 +01:00
1 parent 22887d00e0
commit c457084412
1 file changed
+9
+9
View File
@@ -0,0 +1,9 @@
<?php
error_reporting(E_ALL);
exec('sudo killall libcamera-vid');
header("Content-Type: video/mp4");
passthru('sudo libcamera-vid -t 9999999 -o - | ffmpeg -i - -vcodec copy -f mp4 -movflags frag_keyframe+empty_moov -');