[FFmpeg-user] FFMPEG with VMAF - dyld: Library not loaded: @rpath/libvmaf.1.dylib

kumarsnathan kumarsnathan at gmail.com
Wed Dec 16 19:03:45 EET 2020


I built libVMAF (libvmaf_v2.0.0) using the following procedure:
(a) Modified Makefile to add /--default-library static/ and a prefix as
meson setup args. 
(b) sudo make clean
(c) sudo make
(d) sudo mae install
=> This created the binary, libraries, pkg, and include files in the
/$prefixdir/bin, $prefixdir/lib, $prefixdir/lib/pkgconfig/ and
/$prefixdir/include/libvmaf/ folders

Then I configured ffmpeg using /--enable-libvmaf/ as options e.g.
/./configure --pkg-config="pkg-config --static" --prefix="$PATHFFMPEG"
--bindir="$PATHFFMPEG/bin" --libdir="$PATHFFMPEG/lib"
--shlibdir="$PATHFFMPEG/lib" --incdir="$PATHFFMPEG/include"
--pkgconfigdir="$PATHFFMPEG/lib/pkgconfig" --enable-gpl --enable-nonfree
--enable-libx264 --enable-libfdk-aac --enable-libx265 --enable-libvorbis
--enable-libvpx --enable-libaom --enable-libvmaf --enable-version3
--disable-v4l2-m2m --disable-outdev=v4l2 --disable-shared --enable-static
--extra-cflags="-I $PATHFFMPEG/include" --extra-ldflags="-L
$PATHFFMPEG/lib"/

I then proceeded to build ffmpeg using 
(a) sudo make clean
(b) sudo make -j16
(c) sudo make install

After successfully building ffmpeg, I tried to get a list of all encoders by 
/$PATHFFMPEG/bin/ffmpeg -encoders/
What I get is the following:
/dyld: Library not loaded: @rpath/libvmaf.1.dylib
  Referenced from: bin/./ffmpeg
  Reason: image not found
Abort trap: 6/

I have repeated this procedure without vmaf i.e. exclude the
--enable-libvmaf. Then everything works as it should. Clearly something is
amiss with the libVMAF installation. 

Has anybody encountered this problem ? Would appreciate any help in this
regard.



--
Sent from: http://www.ffmpeg-archive.org/


More information about the ffmpeg-user mailing list