Thursday, November 17, 2011

FFMPEG-PHP Installation in Linux

      ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. And the installation procedure as follow.

#cd /usr/src/
#wget http://garr.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
#tar jxvf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0
#phpize
#./configure
#make; make install

After installing the ffmpeg-php add the extension in php.ini file.

#vim /etc/php.ini

Append the ffmpeg-php extension as

extension=ffmpeg.so

Restart apache service to take effect of php.ini

#/etc/init.d/httpd restart

Now, You can see the ffmpeg module in php by running the below command

#php -m | grep ffmpeg

No comments:

Post a Comment