on flakey rtsp streams, ffmpeg sometimes gets stuck, add a 10s timeout to make ffmeg error out and restart

This commit is contained in:
frederik
2024-10-27 11:04:40 +01:00
parent ea7cdd6686
commit a7eacee3fc
+1 -1
View File
@@ -42,7 +42,7 @@ if [ ! -z $RTSP_STREAM ];then
# Make sure were passing something valid to ffmpeg, ffmpeg will run interactive and control our loop by waiting ${RECORDING_LENGTH} between loops because it will stop once that much has been recorded
if [ -n "$FFMPEG_PARAMS" ];then
ffmpeg -hide_banner -loglevel $LOGGING_LEVEL -nostdin $FFMPEG_PARAMS
ffmpeg -hide_banner -loglevel $LOGGING_LEVEL -nostdin -rw_timeout 10000000 $FFMPEG_PARAMS
fi
done