Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I followed the instructions on http://www.mysql-apache-php.com/ffmpeg-install.htm but ffmpeg-php does not show up in my phpinfo()

The commands I ran (in order)

#yum install ffmpeg ffmpeg-devel
...
Public key for faac-1.26-1.el5.rf.x86_64.rpm is not installed

#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
...
1:rpmforge-release       ########################################### [100%]

#yum install ffmpeg
...
Complete!

#wget http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
...

#tar -xjf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0

#phpize
...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option


#yum install ffmpeg-devel
...
Complete!

#./configure
...
config.status: creating config.h


#make
...
Build complete.
Don't forget to run 'make test'.


#make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20090626/

#ls -al /usr/local/lib/php/extensions/no-debug-non-zts-20090626/
...
-rwxr-xr-x 1 root root  185285 Sep 20 03:36 ffmpeg.so*
...

#nano /usr/local/lib/php.ini

In which I put these two lines at the end of the php.ini file

[ffmpeg]
extension=ffmpeg.so

Then,

#service httpd restart

But phpinfo() still does not show any 'ffmpeg' section.

This is the correct php.ini because:

#php -i | grep php\.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
share|improve this question

closed as too localized by Chris S Feb 25 '13 at 16:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
check your main error_log that will tell you if the ffmpeg extension isn't loading correctly –  Mike Sep 26 '11 at 0:01

Browse other questions tagged or ask your own question.