Opened 4 weeks ago

#6553 new defect

Memory leak when copyts option enabled on udp input

Reported by: krs_vital Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


ffmpeg command:

/usr/local/bin/ffmpeg -copyts -start_at_zero -vsync 0 -copytb 1 -overrun_nonfatal 1 -i udp:// -sn -dn -vcodec copy -acodec aac -hls_allow_cache 0 -hls_ts_options pcr_period=0 -hls_base_url /ts/SPAS/ -hls_list_size 5 -hls_time 5 -hls_flags delete_segments+omit_endlist -map 0 -vsync 0 -ignore_unknown -strict -2 -use_localtime 1 -hls_segment_filename /hls/ts/SPAS/stream_%s.ts /hls/pl/SPAS.m3u8

check proc memory command:

ps axo %mem,comm,pid | grep ffmpeg | sort -nr | head -n 10
0.2 ffmpeg 989

leak up to 200 Mb

if I run more than 50 processes, I have to make sure that ffmpeg eating all the memory and I automatically restart a process if it eats more than 200 Mb but if I run ffmpeg without the option copyts, on some channels I have just lost the sound and I still have to restart the process, but manually, because visible is no problem, memory does not leak

Change History (0)

Note: See TracTickets for help on using tickets.