How To: Install ffmpeg on CentOS or Redhat using up2date or yum

There are a bunch of instructions out there for installing ffmpeg. I found really easy instructions using yum, but I needed to use up2date. So I figured I would compile my steps.

First, make sure you’re logged in as root:

su -

Install with up2date:

1. Add the following line to /etc/sysconfig/rhn/sources:

yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag

Note: Your source line may be different depending on your release. You can find the correct line to use here: http://dag.wieers.com/rpm/FAQ.php#B5

2. Add the following line to /etc/ld.so.conf:

/usr/local/lib

3. Finally, execute each of the following in order:

ldconfig -v
rpm -Uvh ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
up2date ffmpeg ffmpeg-devel

Note: Your rpm may be different depending on your release. You can find the correct rpm to use here: http://www.rpmfind.net/linux/rpm2html/search.php?query=rpmforge-release

- Or – Install with yum:

1. Create and add the following to /etc/yum.repos.d/dag.repo:

[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

2. Add the following line to /etc/ld.so.conf:

/usr/local/lib

3. Finally, execute each of the following in order:

ldconfig -v
rpm -Uvh ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
yum update
yum install ffmpeg ffmpeg-devel

Note: Your rpm may be different depending on your release You can find the correct rpm to use here: http://www.rpmfind.net/linux/rpm2html/search.php?query=rpmforge-release

You’re finished! You can find the PHP extension here: http://ffmpeg-php.sourceforge.net

I found the original yum instructions here: http://www.crucialp.com/resources/tutorials/server-administration/how-to-install-ffmpeg-centos-rhel-redhat-enterprise-easy-way.php

Leave a Reply