From b83f3e0eb7bf9c9660e4350f2a7eaa9ff675ccf3 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 7 Mar 2024 15:31:52 +0300 Subject: [PATCH] ipcam_capture: nostdin and always tcp --- tools/ipcam_capture.sh | 8 +------- 1 file changed, 1 insertion(+), 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 \