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
link|improve this question

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

1 Answer

What output command:

echo "<? echo 1+1 ?> " | php

"PHP Warning: PHP Startup: Unable to load dynamic library......." or 2?

and add output:

php -i | grep -C 4 "php\.ini"
php -i | grep "ffmpeg"
link|improve this answer
Hi bind - I gotta ask a dumb question .... what is the best place to copy/save the ffmpeg-php-0.6.0.tbz2 file and then phpize, ./configure and make, make install it? – matt74tm Sep 20 '10 at 11:23
When I do a make, it says: Libraries have been installed in: /home/myusername2/public_html/ffmpeg-php-0.6.0/modules Where should I be putting it? – matt74tm Sep 20 '10 at 11:24
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.