On Mon, 9 Mar 2020 at 08:17, karthik <[email protected]> wrote: > karthik <[email protected]> > 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 > ============================================================= > _______________________________________________
Hey there, Full uncut console output and ffmpeg version info is required. Where possible, re-run the same using the latest build from git, then report back. > _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
