[FFmpeg-user] Memory Leak

Robert Nagy ronag89 at gmail.com
Thu Nov 12 13:48:39 CET 2015


While reading a raw mpeg2video stream the memory usage of each ffmpeg
thread is constantly and slowly increasing.

read_source | ffmpeg -f mpegvideo -probesize 50000000 -i - -f mpeg1video
-bf 0 -b 2M -vf field,scale=w=320:h=180 -threads 1 -an - | write_target

Also even though I have specified threads 1 in htop I can see that the
ffmpeg process has spawned several threads.

Any ideas as to what might be issue?

ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 5.2.0 (GCC)

configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avisynth --enable-avresample
--enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa
--enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi
--enable-libgsm --enable-libmodplug --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-libschroedinger
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxvid --enable-shared
--enable-version3 --enable-x11grab

libavutil      54. 31.100 / 54. 31.100

libavcodec     56. 60.100 / 56. 60.100

libavformat    56. 40.101 / 56. 40.101

libavdevice    56.  4.100 / 56.  4.100

libavfilter     5. 40.101 /  5. 40.101

libavresample   2.  1.  0 /  2.  1.  0

libswscale      3.  1.101 /  3.  1.101

libswresample   1.  2.101 /  1.  2.101

libpostproc    53.  3.100 / 53.  3.100


More information about the ffmpeg-user mailing list