[FFmpeg-trac] #7264(avfilter:new): libvmaf segmentation fault at ffmpeg 4.0

FFmpeg trac at avcodec.org
Wed Jun 20 10:42:12 EEST 2018


#7264: libvmaf segmentation fault at ffmpeg 4.0
-------------------------------------+------------------------------------
             Reporter:  gstoyanov    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  unspecified  |               Resolution:
             Keywords:  libvmaf      |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by gstoyanov):

 I have tried to compile the git head with libvmaf support but I got an
 error:

 {{{
 libavfilter/vf_libvmaf.c: In function ‘compute_vmaf_score’:
 libavfilter/vf_libvmaf.c:165:16: error: too few arguments to function
 ‘compute_vmaf’
      s->error = compute_vmaf(&s->vmaf_score, format, s->width, s->height,
                 ^
 In file included from libavfilter/vf_libvmaf.c:28:0:
 /usr/local/include/libvmaf.h:26:5: note: declared here
  int compute_vmaf(double* vmaf_score, char* fmt, int width, int height,
 int (*read_frame)(float *ref_data, float *main_data, float *temp_data, int
 stride_byte, void *user_data),
      ^
 ffbuild/common.mak:60: recipe for target 'libavfilter/vf_libvmaf.o' failed
 make: *** [libavfilter/vf_libvmaf.o] Error 1
 }}}
 My compilation code is:

 {{{
 git clone https://github.com/FFmpeg/FFmpeg.git
 cd FFmpeg
 ./configure \
         --pkg-config-flags="--static" \
         --extra-libs="-lpthread -lm" \
         --toolchain=hardened \
         --enable-gpl \
         --enable-nonfree \
         --enable-version3 \
         --disable-stripping \
         --enable-avisynth \
         --enable-libass \
         --enable-libfontconfig \
         --enable-libfreetype \
         --enable-libvmaf \
         --enable-libfribidi \
         --enable-libgme \
         --enable-libgsm \
         --enable-librubberband \
         --enable-libshine \
         --enable-libsnappy \
         --enable-libssh \
         --enable-libtwolame \
         --enable-libwavpack \
         --enable-libzvbi \
         --enable-openal \
         --enable-sdl2 \
         --enable-libdrm \
         --enable-frei0r \
         --enable-ladspa \
         --enable-libpulse \
         --enable-libsoxr \
         --enable-libspeex \
         --enable-avfilter \
         --enable-postproc \
         --enable-pthreads \
         --enable-libfdk-aac \
         --enable-libmp3lame \
         --enable-libopus \
         --enable-libtheora \
         --enable-libvorbis \
         --enable-libvpx \
         --enable-libx264 \
         --enable-libx265 \
         --disable-ffplay \
         --enable-libopenjpeg \
             --enable-libsrt \
         --enable-libwebp \
         --enable-libxvid \
         --enable-libvidstab \
         --enable-libopenh264 \
         --enable-zlib \
         --enable-openssl
 make -j16
 sudo make install
 sudo make distclean
 }}}
 I have uploaded the compilation log at [https://we.tl/XNFLihROgE] if you
 want I can also provide the detailed bug reports in ffmpeg 4.0 but you
 said you are not supporting it.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7264#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list