From 077495eba674acb3273148a24361993d0ff97f87 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 7 Mar 2024 15:33:15 +0300 Subject: ipcam/hls: add -nostdin everywhere --- tools/ipcam_rtsp2hls.sh | 2 +- tools/ipcam_rtsp2hls_rkmpp.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ipcam_rtsp2hls.sh b/tools/ipcam_rtsp2hls.sh index c321820..f47caf2 100755 --- a/tools/ipcam_rtsp2hls.sh +++ b/tools/ipcam_rtsp2hls.sh @@ -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 \ diff --git a/tools/ipcam_rtsp2hls_rkmpp.sh b/tools/ipcam_rtsp2hls_rkmpp.sh index 244a6d9..7f12ce1 100755 --- a/tools/ipcam_rtsp2hls_rkmpp.sh +++ b/tools/ipcam_rtsp2hls_rkmpp.sh @@ -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 -- cgit v1.2.3