From 7d35ca494bd46fe6d8afc5b9db0a97e12e6e12e2 Mon Sep 17 00:00:00 2001 From: douzeb Date: Wed, 1 Mar 2023 14:39:57 +0100 Subject: [PATCH] W.I.P. --- stream_v4l_device.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/stream_v4l_device.sh b/stream_v4l_device.sh index 24d48f1..0bab9f6 100755 --- a/stream_v4l_device.sh +++ b/stream_v4l_device.sh @@ -86,6 +86,7 @@ ffmpeg \ -preset superfast \ -x264opts nal-hrd=cbr:force-cfr=1:vbv-bufsize=${BUFFERSIZE}:bitrate=${VBITRATE}:vbv-maxrate=${VBITRATE} \ -c:a aac -b:a ${ABITRATE}k \ +-g 1 -segment_format_options movflags=+frag_keyframe+empty_moov+default_base_moof -segment_time 5 -f segment \ -t ${DURATION} \ -flags +global_header \ -f tee -map 0:v -map 1:a "[f=matroska]${FILENAME}|[f=flv]${URL}"