FFmpeg contains a number of tools to record, convert, stream and play multimedia content. The following tutorial will guide you through the installation of FFmpeg on either RHEL 5 or CentOS 5. I have chosen running on CentOS but it shouldn’t make a difference either way. Lets get started!
Adding the DAG repository
The first thing that you need to do is set up the DAG repository. This repository contains a large amount of very handy packages not available in the default repositories.
Add the following lines to: /etc/yum.repos.d/CentOS-Base.repo
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Now you need to add DAG’s GPG key. Without this you will get the following error message when attempting to use it with yum.
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for faac.x86_64.1.26-1.el5.rf.rpm is not installed
Import the GPG key:
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
This next step is not necessary, but if you encounter any problems you may want to try updating your system.
$ sudo yum update
Install FFmpeg
$ sudo yum install ffmpeg
That should be it.