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 :

vi /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 then run

yum install php-devel

  • 955 Users Found This Useful
Was this answer helpful?

Related Articles

What are private name servers and how do I set them up?

Private name servers are generally only used by professional web hosting companies and resellers....

503 valid RCPT command must precede DATA

When sending email, you receive an immediate bounce such as the following: Subject: RE: XXXXXX -...

Common SSH Commands - Linux Shell Commands

Navigation pwd Shows the full path of the current directory ls Lists all the files...

Creating a Welcome message for SSH logins

Did you ever want to change or create a new login message anytime someone logs into SSH? We'll...

Protecting Yourself Against Viruses & Data Loss

It is vital to ensure your computer is protected from viruses and trojans. As well as installing...