From c17410c07352a0b42a0400e778f9c6de98f268f0 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Wed, 21 Feb 2024 01:20:38 +0300 Subject: [PATCH] fix --- tools/ipcam_capture.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh index eb87b1c..c788e05 100755 --- a/tools/ipcam_capture.sh +++ b/tools/ipcam_capture.sh @@ -118,6 +118,7 @@ fi ffmpeg $args -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \ -c copy -f segment -strftime 1 -segment_time 00:10:00 -segment_format_options movflags=+faststart \ + -use_wallclock_as_timestamps 1 \ -segment_time_delta 0.01 -reset_timestamps 1 -bufsize 2M \ -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 \ "$OUTDIR/record_%Y-%m-%d-%H.%M.%S.${EXTENSION}"