Howto 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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install Crypt-DSA

What is Crypt-DSA Crypt::DSA is an implementation of the DSA (Digital Signature Algorithm)...

How to setup Cron Job

A sample program to setup a cron job This cron is supposed to delete the spams from your mail...

How to install RAR

cd /tmp wget http://oratoronline.com/how2/RAR/rarlinux-3.6.0.tar.gz tar -zxvf...

How to install Ioncube

cd /usr/local/ wget http://oratoronline.com/how2/Ioncube/ioncube_loaders_lin_x86.tar.gz tar -xvzf...

How to Install GMP Math liberary

wget http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.2.tar.bz2 tar -xjvf gmp-4.2.2.tar.bz2 cd gmp-4.2.2...