FFMPEG is an open source application which is developed in Linux platform which allows you to convert the audio format file to video format files easily in different formats. It supports most of the codec format too. It also converts the file format a one file format to another file format. That procedure includes libavcodec, a leading audio/video codec library to convert formatting.

Some of the most knowned yum, rpm, wget commands must be configured on your server and you must know how to use these commands. These installation process worked well for me and my colleges. But I suggest you totake backup of your system files, before modifying them. FFMPEG can be easily installed on server such any of dedicated server web hosting package, semi dedicated server packages, VPS hosting server last but not the least cloud server hosting too.

Download latest avalible package for FFMPEG-php

Step 1:- You can download this application from the below mentioned link and untar the entire package.
#wget http://biznetnetworks.dl.sourceforge…php-0.6.0.tbz2
Untar the package file

Step 2:- Procedure to move the directory.
#tar -xjf ffmpeg-php-0.6.0.tbz2
Move into ffmpeg-php-0.6.0 directory

Step 3:-
#cd ffmpeg-php-0.6.0

Step 4:-
#phpize
#./configure && make

Step 5:-
#make install
With the help of above, ffmpeg. So module will copy to default location of php modules. Now, you need to add the ffmpeg. So in php.ini of the server to enable it. And add following line in it.

Step 6:-
#vi /usr/local/lib/php.ini
extension=ffmpeg.so
To get effective the changes, you need to restart the apache service on the server.

Step 7:- And this step is to confirm that the ffmpeg module should be listed in a php configuration of server.
#/etc/init.d/httpd restart
#php -m | grep ffmpeg

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

How to get updated on all packages.

If you are planing for any update within the FFMPEG you can follow thee below mentioned steps to do so.

Step 1:- Go to the
#yum update

In result, you will be getting three packages to be installed.

Packages are as follow :-
*ffmpeg
*ffmpeg-devel
*ffmpeglibpostproc

select the package as per your requirement.
#yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc

Step 2 :-
After installing the supporting packages include players such as mplayer, mencoder, flvtool2
#yum -y install mplayer mencoder flvtool2

In order to work FFMPEG with PHP, we need to install following packages;
ffmpeg-0.4.9_pre1 or higher
php-4.3.0 or higher
gd-2.0 or higher
php-devel

Step 3 :-
And to install above packages, execute below commands;
#yum install php-gd

After executing all the above mentioned steps you are ready to install FFMPEG-PHP;

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Installation Process of FFMPEG

Before installing the FFMPEG, a client has to install all external codec libraries. After that you have to connect to your dedicated server hosting . You can take the help of any SSH client such as putty by providing hostname of the web server, username and password.

Step 1 :- Login to the server and get into
#cd /usr/local/src/

Step 2 :- First of all you have to create a directory for all further steps.
#mkdir installation
#cd installation

Step 3 :- Install LAME MP3 Encoder and then also you need to download LAME MP3 Encoder from here;
#wget http://biznetnetworks.dl.sourceforge…-3.98.4.tar.gz

Step 4 :- Untar the lame file by using
#tar zxvf lame-3.98.4.tar.gz

Step 5 :- Assign 777 permission to the lame directory
#chmod 777 lame -R

Step 6 :- Now move to lame directory
#cd lame
#./configure
#make

Step 7 :- Create a new file or you can also edit that file
#make install
Adding the DAG repository.
#vi /etc/yum.repos.d/dag.repo
Add the following lines to the mentioned file

[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Save and quit from the file.

To use DAG repository with command yum successfully, you need to add GPG Key. Failure to do so result in an error:

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for faac.x86_64.1.26-1.el5.rf.rpm is not installed
To add the the GPG Keyfor DAG, execute following command.

rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
If you don’t want to validate the GPG Key, edit the file /etc/yum.repos.d/dag.repo and change gpgcheck=1 to gpgcheck=0.

#yum search ffmpeg