Search code examples
ffmpeg

ffmpeg: error while loading shared libraries: libavresample.so.3


After installing FFmpeg-3.1.2 in Ubuntu 12.04 following the guide with no errors, I run ffmpeg and get the following error:

ffmpeg: error while loading shared libraries: libavresample.so.3: cannot open shared object file: No such file or directory

Before installation, I delete every file in system path related to the previous ffmpeg library.
Anyone knows what is going on?


Solution

  • The configure of FFmpeg 3.1.2 is kind of "stupid".
    I add --enable-avresample option and it works fine.
    Since FFmpeg needs the module, why not enable it by default?