FFMPEG with VMAF - dyld: Library not loaded: @rpath/libvmaf.1.dylib
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/
On 12/16/2020 9:03 AM, kumarsnathan wrote:
(b) sudo make clean
First things first- 'sudo' is almost never needed when building software; no idea why you're using it but please don't. (If 'make clean' fails without it, you have permission/access problems that need to be solved.) About the only time it would be is for 'make install', and only they if you don't have permissions to the install dirs. z!
OK, I did do away with using sudo and with a few permissions related changes, I was able to build ffmpeg. But the problem remains. Also, I tried removing the libvmaf.dylib and libvmaf.1.dylib and just retain the libvmaf.a (since I only care for a static build). Now I have a problem configuring ffmpeg. /./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"/ => *ERROR: libvmaf >= 1.3.9 not found using pkg-config* -- Sent from: http://www.ffmpeg-archive.org/
On 12/16/2020 11:51 AM, kumarsnathan wrote:
Also, I tried removing the libvmaf.dylib and libvmaf.1.dylib and just retain the libvmaf.a (since I only care for a static build). Now I have a problem configuring ffmpeg.
What happens if you put those files back? If everything works then, leave them alone.
*ERROR: libvmaf >= 1.3.9 not found using pkg-config*
Is that package actually and completely installed? (Maybe, maybe not, especially if you've been deleting associated files. In general, don't do that.) Try reinstalling it. I also notice that you probably don't have up-to-date ffmpeg source because the configure check from a couple of days ago says- enabled libvmaf && require_pkg_config libvmaf "libvmaf >= 1.5.2" Searching "libvmaf ffmpeg dylib" will turn up a few ideas. z!
participants (2)
-
Carl Zwanzig -
kumarsnathan