How To Install FFmpeg and FFmpeg-PHP Extension on CentOS

r00t April 13, 2014

Install FFmpeg and FFmpeg-PHP Extension on CentOS

For those of you who didn’t know, FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. There’s also a great PHP package called ffmpeg-php that allows for easy use of FFmpeg from inside PHP scripts. In this tutorial i will show you the easy way to install ffmpeg and ffmpeg-php (php extension).

Install FFmpeg on CentOS

Step 1. To install, first you must add the DAG yum repository information corresponding to your CentOS/RHEL version to yum:

Add the following text to the file and save:
Step 2. After add Dag repository, Use yum to install ffmpeg using following command.

 FFmpeg-install

FFmpeg Basic Commands

 Install FFmpeg-PHP Extension on CentOS

Step 1.

Step 2. Download the latest ffmpeg-php release

If you get  [ffmpeg_movie.lo] Error 1 when compiling ffmpeg-php, then you will need to do:

Install FFmpeg on CentOS and FFmpeg-PHP Extension 

Step 3. Copy the ffmpeg.so module in php default module location. Now you have to edit php.ini file to enable ffmpeg-php support in it by using ffmpeg.so module.

Put the below two lines at the end of the php.ini file

FFmpeg-PHP extension should now be installed. You can check by creating a file called info.php in /var/www/html/ with the following content:

FFmpeg Install Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “FFmpeg” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!

Save

Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest2
The Tags:

Leave a Comment