This commit is contained in:
2026-08-29 20:35:49 +02:00
parent a8f06b0cfb
commit 636f3d7cfc
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -2,16 +2,13 @@
set -e
DEVICE=${1:-/dev/video0}
DELAY=${2:-30}
SIZE=${3:-1280x720}
FPS=${4:-20}
DELAY=30
rm -rf /tmp/delay_stream*
ffmpeg -f v4l2 -framerate $FPS -video_size $SIZE -i $DEVICE \
-vcodec libx264 -preset ultrafast -tune zerolatency \
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 \
-vf scale=720:576 \
-vcodec libx264 -preset ultrafast -tune zerolatency \
-f hls -hls_time 1 -hls_list_size $((DELAY + 5)) -hls_flags delete_segments \
/tmp/delay_stream.m3u8 &
FFMPEG_PID=$!