ipcam_capture: nostdin and always tcp
This commit is contained in:
parent
3a8961837c
commit
b83f3e0eb7
@ -108,15 +108,9 @@ else
|
|||||||
args="$args -nostats -loglevel warning"
|
args="$args -nostats -loglevel warning"
|
||||||
fi
|
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}@"
|
[ ! -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 \
|
-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 \
|
-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 \
|
-reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user