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

  • 19 Users Found This Useful
Was this answer helpful?

Related Articles

How to Fix PHPMyAdmin Error "Fatal error: Allowed memory size of 132218712 bytes exhausted (tried to allocate 11641294 bytes)"?

METHOD: 1. Clear your web browser cache.a.) Windows CMD: http://www.wikihow.com/Flush-DNSb.)...

How to Register FREE Domain Name?

Register first: http://my.freenom.com/register.php Then click this link to register your free...

How to create a website or blog with FREE Domain (.tk/.ml/.ga/.gq/.cf) and Web Hosting for ₱45.00 or ₱100.00 pesos monthly only?

1. Order a Web Hosting plan first:a.) Starter Plan (₱135.00 quarterly or ₱45.00 monthly):...

How do I track how many hits my website gets?

There are a few things that need to be cleared in terms of terminology: 1. Hits - this simply...

Common SSH Commands - Linux Shell Commands

Navigating in UNIX pwd Shows the full path of the current directory ls Lists all...