diff options
-rwxr-xr-x | tools/ipcam_capture.sh | 8 |
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 \ |