Installing ffmpeg

1. Preparing step:

Edit or create a file /etc/yum.repos.d/dag.repo. Add lines below at the end of the file:

name=Dag RPM Repository for Red Hat Enterprise Linux

Add line below at the end of the file /etc/


2. Run commands via ssh:

ldconfig -v


sudo rpm –install rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install apt

yum install rpmforge-release

yum install ffmpeg



3. Install ffmpeg-devel and ffmpeg-php:

yum install ffmpeg-devel


tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0




make install

4. Install mplayer, Mencoder and flvtool2:

yum install mplayer mencoder

yum install flvtool2

5. Edit php.ini:

Find and edit the php.ini file of your domain as below:

nano /home/httpd/yourdomain.extension/php.ini

add lines below at the end of the file php.ini:


6. Check phpinfo:

Create a new file name phpinfo.php that include lines below:



and upload that file to the root folder of your domain and run via web browser:


If you find lines like images below, congratulation! ffmpeg is installed!

  • 104 Users Found This Useful
Was this answer helpful?

Related Articles

Installing webmin on CentOS/Fedora

If you are using the RPM version of Webmin, first download the file and then run the command :...

Installing webmin on Debian/Ubuntu

If you are using the DEB version of webmin, first download the file and then run the command :...

Installing DirectAdmin

DirectAdmin Installation Guide   Step 1:  Do you meet the system...

Installing CPanel

1 The yum package MUST be installed before installing, the installer will not run without it....

Connecting to server via SSH

This guide will show you how to use an SSH client (Putty) to connect to a server. SSH allows you...