I cannot seem to configure OpenCV to link to a non-/usr/lib set of FFMPEG libraries.
FFMPEG
My LD_LIBRARY_PATH contains a direct link to the folder for the custom
Something like
export LD_LIBRARY_PATH=/ffmpeg_install_path/lib/ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/ffmpeg_install_path/lib/pkgconfig export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:/ffmpeg_install_path/lib/
should work. At least it works for OpenCV 2.4.x on my Ubuntu.