Knowledgebase


Portal Home > Knowledgebase > Virtual servers (VPS) - Technical > Installing ffmpeg

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!




Also Read