[FFmpeg-user] Memory leakage in ffmpeg
karthik
karthikdas81 at gmail.com
Mon Mar 9 06:41:41 EET 2020
karthik <karthikdas81 at gmail.com>
Sat, Mar 7, 12:14 PM (2 days ago)
to ffmpeg-user-owner
I am using below ffmpeg commands for streaming udp to hls but am facing
memory leakage problem.
When I streamed 12 streams using below command means it uses 100% of CPU
memory and need restart for working further.
So kindly give us suggestion, how to solve below issue.
========================================================================
# Stream 1
STREAM_NAME=stream1
STREAM_PID_PATH=/tmp/$STREAM_NAME-pid
INPUT_URL=udp://224.1.1.1:1100
CH_NAME=mv_movies_hd
ffmpeg -i "$INPUT_URL?overrun_nonfatal=1&fifo_size=5000000" \
-filter_complex
"[v:0]split=2[vtemp001][vtemp002];[vtemp001]scale=w=640:h=360[vout001],[vtemp002]scale=w=854:h=480[vout002]"
\
-map [vout001] -c:v:0 mpeg2video -b:v:0 600k -maxrate:v:0 900k
-bufsize:v:0 1200k \
-map [vout002] -c:v:1 mpeg2video -b:v:1 1000k -maxrate:v:1 1500k
-bufsize:v:1 2000k \
-map a:0 -map a:0 -c:a aac -b:a 128k -ac 2 \
-f hls -hls_time 2 -hls_list_size 4 \
-hls_wrap 40 -hls_allow_cache 0 \
-hls_delete_threshold 1 \
-hls_flags delete_segments \
-hls_start_number_source datetime \
-start_number 10 \
-hls_playlist_type event -master_pl_name $CH_NAME.mpeg \
-hls_segment_filename stream_%v/data%06d.ts \
-use_localtime_mkdir 1 \
-var_stream_map "v:0,a:0 v:1,a:1" -crf 22 stream_%v.mpeg
=============================================================
More information about the ffmpeg-user
mailing list