[FFmpeg-trac] #6967(avfilter:new): Memory leak in Win64 ffmpeg with vmaf

FFmpeg trac at avcodec.org
Sun Jan 14 15:29:43 EET 2018

#6967: Memory leak in Win64 ffmpeg with vmaf
             Reporter:               |                     Type:  defect
  MasterBlatter                      |                 Priority:  important
               Status:  new          |                  Version:  git-
            Component:  avfilter     |  master
             Keywords:  vmaf memory  |               Blocked By:
  leak                               |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
 Summary of the bug:
 I found a memory leak using libvmaf filter in a Win64 FFmpeg built with
 the media-autobuild_suite, when comparing with it two videos.
 I ask another video developer to confirm reproducibility before reporting

 How to reproduce:
 set model_path=C:\media-autobuild_suite-
 set CharEnc=UTF-8

 ::first escape
 set model_path=%model_path:\=\\%
 set model_path=%model_path::=\:%
 set model_path=%model_path:'=\'%

 ::second escape
 set model_path=%model_path:\=\\%
 set model_path=%model_path:'=\'%
 set model_path=%model_path:[=\[%
 set model_path=%model_path:]=\]%
 set model_path=%model_path:,=\,%
 set model_path=%model_path:;=\;%

 C:\media-autobuild_suite-master\local64\bin-video\ffmpeg.exe -i %1 -i %2
 -lavfi libvmaf="model_path=%model_path%" -f null -

 ffmpeg version N-89775-gef21033c32 Copyright (c) 2000-2018 the FFmpeg
   built with gcc 7.2.0 (Rev1, Built by MSYS2 project)
   configuration:  --enable-amf --enable-bzlib --enable-cuda --enable-cuvid
 --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-
 nvenc --enable-zlib --enable-sdl2 --enable-libvmaf --enable-libmp3lame
 --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libx265 --enable-fontconfig --enable-libass --enable-libbluray
 --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-
 libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-
 libshine --enable-gpl --enable-openssl --enable-avisynth --enable-
 chromaprint --enable-decklink --enable-frei0r --enable-libbs2b --enable-
 libcaca --enable-libcdio --enable-libfdk-aac --enable-libflite --enable-
 libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-
 libkvazaar --enable-libmodplug --enable-libopenh264 --enable-libopenmpt
 --enable-librtmp --enable-librubberband --enable-libssh --enable-
 libtesseract --enable-libxavs --enable-libxvid --enable-libzmq --enable-
 libzvbi --enable-opencl --enable-opengl --extra-cflags=-fopenmp --extra-
 libs=-lgomp --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++
 --extra-cflags=-DLIBSSH_STATIC --extra-ldflags='-Wl,--allow-multiple-
 definition' --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC
 --extra-cflags=-DCHROMAPRINT_NODLL --extra-libs=-lstdc++ --extra-
 cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC
 --disable-w32threads --extra-cflags=-DPTW32_STATIC_LIB --extra-
 libs=-lwsock32 --extra-cflags=-DKVZ_STATIC_LIB --enable-version3 --enable-
 nonfree --disable-debug
   libavutil      56.  7.100 / 56.  7.100
   libavcodec     58.  9.100 / 58.  9.100
   libavformat    58.  3.100 / 58.  3.100
   libavdevice    58.  0.100 / 58.  0.100
   libavfilter     7. 11.101 /  7. 11.101
   libswscale      5.  0.101 /  5.  0.101
   libswresample   3.  0.101 /  3.  0.101
   libpostproc    55.  0.100 / 55.  0.100
 Hyper fast Audio and Video encoder
 usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]

 Use -h to get full help or, even better, run 'man ffmpeg'


Ticket URL: <https://trac.ffmpeg.org/ticket/6967>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list