[FFmpeg-trac] #11629(ffmpeg:new): Memory Leak in FFmpeg During Extended Processing

FFmpeg trac at avcodec.org
Sun Jun 8 13:44:12 EEST 2025


#11629: Memory Leak in FFmpeg During Extended Processing
-------------------------------------+-------------------------------------
             Reporter:  mg3242       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  critical     |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
  leak,vaapi,24/7 transcoding        |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by mg3242):

 i have build ffmpeg_g with asan support from git master:

 ffmpeg version N-119855-gb7fc195e7a Copyright (c) 2000-2025 the FFmpeg
 developers
   built with Ubuntu clang version 18.1.3 (1ubuntu1)
   configuration: --cc=clang --cxx=clang++ --extra-
 cflags='-fsanitize=address -O1 -fno-omit-frame-pointer -g' --extra-
 ldflags='-fsanitize=address' --disable-optimizations --enable-gpl
 --enable-nonfree --enable-libx264 --enable-libx265 --enable-libfdk-aac
 --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libass
 --enable-libdrm --enable-vaapi --enable-libxcb --enable-openssl --enable-
 libsrt
   libavutil      60.  3.100 / 60.  3.100
   libavcodec     62.  3.101 / 62.  3.101
   libavformat    62.  0.102 / 62.  0.102
   libavdevice    62.  0.100 / 62.  0.100
   libavfilter    11.  0.100 / 11.  0.100
   libswscale      9.  0.100 /  9.  0.100
   libswresample   6.  0.100 /  6.  0.100

 now started the command with this parameters:

 ASAN_OPTIONS=log_path=/home/user/ffmpeg_asan,detect_leaks=1
 /home/user/ffmpeg_g -re -y -hwaccel vaapi -hwaccel_device
 /dev/dri/renderD128 -hwaccel_output_format vaapi -progress pipe:2 -i
 srt://192.168.4.168:5001 -map 0:v -c:v h264_vaapi -rc_mode QVBR
 -global_quality 14 -profile:v constrained_baseline -b:v 2M -maxrate 4M
 -bufsize 8M -map 0:a:? -q:a 0.7 -c:a aac -ac 2 -ar 48000 -map 0:s:? -c:s
 copy -f mpegts udp://239.1.1.1:1234?pkt_size=1316

 i have to wait over 24 hours for the leak to happen.
 if you see any change i need to make in the meantime, please fill free to
 point it out.

 thank you in advance.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11629#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list