summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-02-21 00:59:39 +0300
committerEvgeny Sorokin <me@ch1p.io>2024-02-21 00:59:39 +0300
commitf95472b413414dd478bb538904a524aa7d03ae61 (patch)
treea9b25b53719ab2341fbea365d0f50e5e5dee3fa6
parent9ee4fc4fde61e70d6969619279e3d87e1832c490 (diff)
ipcam_capture: trying to fix segment time stamps...
-rwxr-xr-xtools/ipcam_capture.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh
index d495e51..d00e469 100755
--- a/tools/ipcam_capture.sh
+++ b/tools/ipcam_capture.sh
@@ -117,5 +117,7 @@ fi
[ ! -z "$CREDS" ] && CREDS="${CREDS}@"
ffmpeg $args -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \
- -c copy -use_wallclock_as_timestamps 1 -f segment -strftime 1 -segment_time 00:10:00 -segment_atclocktime 1 -bufsize 2M -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 \
+ -c copy -f segment -strftime 1 -segment_time 600 -segment_format_options movflags=+faststart \
+ -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}"