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:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

Add line below at the end of the file /etc/ld.so.conf:

/usr/local/lib

2. Run commands via ssh:

ldconfig -v

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

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

wget http://nchc.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2

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

phpize

./configure

make

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:

[ffmpeg]
extension=ffmpeg.so

6. Check phpinfo:

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

phpinfo()

?>

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

http://yourdomain.extension/phpinfo.php

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



  • 1 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...