
This error can also happen due to related libraries for FFmpeg missing. It is also possible to correct this error by adding symbolic links to the library files. To make ffmpeg check the libraries in the correct path, do the following steps: export LD_LIBRARY_PATH=/usr/local/lib/ echo /usr/local/lib > /etc/ld.so.conf.d/nf ldconfig Using the command 'ldd which ffmpeg', it is possible to know the path to the library to which ffmpeg binary is linked to. But if the FFmpeg binary looks in a different path, these libraries would not be found. The path to the library is wrongīy default, all required libraries for FFmpeg would be installed under /usr/local/lib/ directory. If the module is not installed, you can install it using: yum install ffmpeg ffmpeg-devel 2. The command ‘which ffmpeg’ helps to know if its installed. The first step is to check that the FFmpeg module is properly installed in the server.

Today we’ll see which all factors can trigger this error and how to fix them one by one. How to debug this error?įFmpeg error can happen in PHP sites if the module is not properly installed or if there are any configuration issues. This error is a server wide one and can affect all websites using this module. The error shown here says that PHP is unable to load the dynamic library for FFmpeg module. If not, it would give errors when the websites try to use these modules. Many websites require this PHP module for audio and video streaming.įor any PHP module to work fine, it should be compiled and configured correctly. Recently we were contacted by a server owner, with this concern – “Hi, All my PHP sites show the same error:” PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so' - libavformat.so.54: cannot open shared object file: No such file or directory in Unknown on line 0 What this error means?įFmpeg is a module that helps to record, convert and stream audio and video in websites. At Bobcares, we do this for our shared hosting customers, with our technical support services.

To maintain business credibility, its therefore crucial to fix server wide errors promptly. A single server wide error can affect multiple websites in a split-second. Server wide errors are always a panic situation for server owners.
