How to install FFmpeg-PHP

wget http://oratoronline.com/how2/video_share_modules/source_directory/ffmpeg/ffmpeg-php-0.5.1.tbz2
tar -xjvf ffmpeg-php-0.5.1.tbz2 ; cd ffmpeg-php-0.5.1 ;
/usr/local/bin/phpize
./configure
make
make install

NOTE: After make install it will show you the path to the ffmpeg.so file, copy
ffmpeg.so to the folder where you need to run the php scripts which need ffmpeg-php.
For testing, inside the source folder, there will be a folder call tests which has
the required test php scripts. You may test if you wish to or if need arises :)

After Installation do below steps :

Edit /usr/local/lib/php.ini

Change

extension_dir = "./"

to

extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20020429"

where ffmpeg.so was installed, and add

extension=ffmpeg.so

under

;extension=php_zip.dll

This will load the FFmpeg-PHP into php by default.

==================
Error:

if phpize not found than run
yum install php-devel

  • 10 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Help! TimThumb is not working on my WordPress site!

So you're building a website and you want to use TimThumb, but it just doesn't seem to want to...

How to Install MPLAYER+MENCODER

Mplayer includes mencoder in the same package. Dependencies: Mplayer has a few dependencies:...

How to Install FLv2Tool

yum install ruby* wget...

Internal Server Error php.ini and .htaccess

We have enabled suphp mechanism on the server this insures compatibility to php5 and future...

How To Setup POP Email With Your iOS Device

To setup your iPhone or iPad to your Hosting Direct POP3 email account: 1. Tap the Settings icon...