summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-04-26 21:09:56 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-04-26 21:09:56 +0300
commit774d851a219e8916ae77b005b1c7da4c90765307 (patch)
tree48453c0cabdbc2ef24ce378f3fabc3af26aa71b5
parent2f5191bb6fe61697debea1aef603a8d9b669b613 (diff)
test
-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"