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/
#tar jxvf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0
#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

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