Create cam.php

This commit is contained in:
2021-11-29 23:26:19 +01:00
committed by GitHub
parent 22887d00e0
commit c457084412

9
cam.php Normal file
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 -');