I have recently installed ffmpeg on my server. But when I fire php -m I receive the following warnings PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 Any suggestions please?
You could just install it from the rpmforge repo? Run the command to setup the rpmforge repo here - http://dag.wieers.com/rpm/FAQ.php#B and then just - yum install ffmpeg The version in the rpmforge is 0.4.9
Well he need ffmpeg-php installed not only ffmpeg here is a quick way for getting it working correctly Remember to adjust phpize if you have multiple php installations. svn co https://svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php cd ffmpeg-php phpize ./configure make make install Now you should see something like Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/ So remember to adjust the following based on what you see as your php path may be different, for the rest of the examples we will be using the path above. cp /usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/ffmpeg.so /usr/local/php/lib/php/extensions/ffmpeg.so Now open your php.ini php -i | grep ini Once you have the file open it with an editor, we will use nano nano /usr/local/php/lib/php.ini Find extension_dir = Set this to your path, using our example the line would look like extension_dir = "/usr/local/php/lib/extensions" Now scroll to the end of the file and add extension = ffmpeg.so You should now have FFmpeg installed, to verify execute php -i | grep ffmpeg You should see something like ffmpeg ffmpeg support (ffmpeg-php) => enabled ffmpeg-php version => 0.4.9 ffmpeg.allow_persistent => 0 => 0 The installation is now complete, remember to restart your webserver for the changes to take effect. Code (markup):