Ffmpeg-php¶
You can download ffmpeg-php from
http://ffmpeg-php.sourceforge.net/
'''Before You Install'''
Make sure you have php-gd and php-devel installed.
'''How to Install'''
You need to run following commands on SSH prompt as user "root"
cd /usr/local/src svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.0 ffmpeg-php-0.6.0 cd ffmpeg-php-0.6.0 make clean && make distclean phpize ./configure --with-ffmpeg=/usr make && make install
'''Configuration'''
After installation of ffmpeg-php, you need to edit php.ini and load ffmpeg-php module with "extension=ffmpeg.so"
For most servers, you will be able to find php.ini in one of the following locations
- /etc/php.ini
- /usr/local/lib/php.ini
- /usr/local/Zend/etc/php.ini
To find extact location of php.ini on your server, run following command in ssh prompt/command line.
php -i|grep php.ini
After you find location of php.ini, edit the file with vi
You need to edit php.ini and set it to the folder on which ffmpeg.so is installed. This you will get while installation. On some servers, ffmpeg-php installation will set this, if not you need to it it your self.
FIND
extension=
After ADD, in new line
extension=ffmpeg.so
Now run
php -i |grep ffmpeg
You will see ffmpeg php details like shown below.
# php -i |grep ffm ffmpeg ffmpeg-php version => 0.6.0-svn ffmpeg-php built on => Dec 24 2008 22:12:50 ffmpeg-php gd support => enabled ffmpeg libavcodec version => Lavc52.8.0 ffmpeg libavformat version => Lavf52.23.1 ffmpeg swscaler => disabled ffmpeg.allow_persistent => 0 => 0 ffmpeg.show_warnings => 0 => 0 #

Now you need to restart your web server, then only it will show on your phpinfo page.
service httpd restartErrors