ipcam/hls: add -nostdin everywhere
This commit is contained in:
parent
b83f3e0eb7
commit
077495eba6
@ -120,7 +120,7 @@ else
|
||||
path="$CUSTOM_PATH"
|
||||
fi
|
||||
|
||||
ffmpeg $args -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
|
||||
ffmpeg $args -nostdin -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
|
||||
-c:v copy -c:a copy -bufsize 1835k \
|
||||
-pix_fmt yuv420p \
|
||||
-flags -global_header -hls_time 2 -hls_list_size 3 -hls_flags delete_segments \
|
||||
|
@ -120,7 +120,7 @@ else
|
||||
path="$CUSTOM_PATH"
|
||||
fi
|
||||
|
||||
/home/user/FFmpeg/ffmpeg $args -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
|
||||
/home/user/FFmpeg/ffmpeg $args -nostdin -i "rtsp://${USER}:${PASSWORD}@${IP}:${PORT}${path}" \
|
||||
-c:v h264_rkmpp_encoder -preset ultrafast -an -vsync drop \
|
||||
-flags -global_header -hls_time 2 -hls_list_size 3 -hls_flags delete_segments \
|
||||
${OUTDIR}/${NAME}/live.m3u8
|
||||
|
Loading…
x
Reference in New Issue
Block a user