Unable to install ffmpeg-php

Posted by matt74tm on Server Fault See other posts from Server Fault or by matt74tm
Published on 2010-09-20T09:28:11Z Indexed on 2011/11/28 10:01 UTC
Read the original article Hit count: 852

Filed under:
|
|
|

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

© Server Fault or respective owner

Related posts about php

Related posts about yum