summaryrefslogtreecommitdiff
path: root/tools/ipcam_capture.sh
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-03-07 15:31:52 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-03-07 15:31:52 +0300
commitb83f3e0eb7bf9c9660e4350f2a7eaa9ff675ccf3 (patch)
tree3227479e6c420043993df860b9e9b49288ea5b59 /tools/ipcam_capture.sh
parent3a8961837c243e45c7ab51f9aa6d679b681d7f96 (diff)
ipcam_capture: nostdin and always tcp
Diffstat (limited to 'tools/ipcam_capture.sh')
-rwxr-xr-xtools/ipcam_capture.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh
index b5e29f1..644cf02 100755
--- a/tools/ipcam_capture.sh
+++ b/tools/ipcam_capture.sh
@@ -108,15 +108,9 @@ else
args="$args -nostats -loglevel warning"
fi
-if [ "$FORCE_TCP" = "1" ]; then
- args="$args -rtsp_transport tcp"
-elif [ "$FORCE_UDP" = "1" ]; then
- args="$args -rtsp_transport udp"
-fi
-
[ ! -z "$CREDS" ] && CREDS="${CREDS}@"
-ffmpeg $args -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \
+ffmpeg -nostdin $args -rtsp_transport tcp -i rtsp://${CREDS}${IP}:${PORT}/Streaming/Channels/${CHANNEL} \
-c copy -f segment -strftime 1 -segment_time 00:10:00 -segment_format_options movflags=+faststart \
-segment_time_delta 0.01 -segment_atclocktime 1 -reset_timestamps 1 -bufsize 2M \
-reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 \