summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ipcam_capture.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh
index d1c13c2..a441b9f 100755
--- a/tools/ipcam_capture.sh
+++ b/tools/ipcam_capture.sh
@@ -105,6 +105,7 @@ fi
[ ! -z "$CREDS" ] && CREDS="${CREDS}@"
-ffmpeg $args -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \
- -c copy -f segment -strftime 1 -segment_time 00:10:00 -segment_atclocktime 1 \
+ffmpeg $args -re -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \
+ -c copy -bufsize 1835k \
+ -f segment -strftime 1 -segment_time 00:10:00 -segment_atclocktime 1 \
"$OUTDIR/record_%Y-%m-%d-%H.%M.%S.mp4"