Professional Documents
Culture Documents
FFMPEG is an open source application and developed in Linux which allows to convert
the audio and video files easily in different formats. It supports most of the codec
and converts from one file format to another. It includes libavcodec, a leading
audio/video codec library.
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 systemfiles, before modifying
them.
Installation Process
Before installing FFMPEG, install all external codec libraries. Now, connect to your
server with the help of any SSH client like putty by providing hostname of the
server, username and password.
Quote:
#cd /usr/local/src/
Quote:
#mkdir installation
#cd installation
Quote:
#wget http://biznetnetworks.dl.sourceforge...-3.98.4.tar.gz
Quote:
Quote:
Quote:
#cd lame
#./configure
#make
#make install
Quote:
#vi /etc/yum.repos.d/dag.repo
Quote:
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
To use DAG repository with command yum successfully, you need to add
GPG Key. Failure to do so result in an error:
Quote:
Quote:
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.
Quote:
#yum update
Now, your server is ready to install FFMPEG with yum. First, we will search available
packages of FFmpeg.
Quote:
Quote:
Quote:
Quote:
ffmpeg-0.4.9_pre1 or higher
php-4.3.0 or higher
gd-2.0 or higher
php-devel
Quote:
Quote:
#wget http://biznetnetworks.dl.sourceforge...php-0.6.0.tbz2
Quote:
Quote:
#cd ffmpeg-php-0.6.0
#phpize
#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.
Quote:
#vi /usr/local/lib/php.ini
extension=ffmpeg.so
To get effective the changes, you need to restart the apache service on the server.
Quote:
#/etc/init.d/httpd restart