Update 20131007: The ffmpeg package in this repo isn’t exactly new, so if you’re looking for the latest and greatest featureset consider using the static builds.
I ran into some trouble installing ffmpeg on Amazon linux and while there are some guides out there I didn’t like that they just told you to “Figure out the repo conflicts”. I’m very paranoid about mixing repos especially on production servers so whenever I need to use another repo I explicitly allow only the packages I want with includepkgs. To save others the headache of tracking down dependencies, I’ve decided to record my work here. Before you do anything, make sure all your packages are up to date.
For starters, you’ll need to create the repository files under /etc/yum.repos.d:
[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el6/en/x86_64/dag/ gpgcheck=1 gpgkey=http://apt.sw.be/RPM-GPG-KEY.dag.txt enabled=1 includepkgs=ffmpeg ffmpeg-* faac a52dec x264 opencore-amr lame librtmp schroedinger libva dirac orc
[centos] name=CentOS-6 – Base baseurl=http://mirror.centos.org/centos/6/os/x86_64/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 enabled=1 priority=1 protect=1 includepkgs=SDL libtheora gsm libdc1394 libdrm liboil mesa-dri-drivers mesa-dri1-drivers mesa-dri-filesystem libraw1394 libpciaccess cppunit
After that, simply install ffmpeg and you’re good to go!
I used these two guides as a resource:
Update 20130426: Added in some missing dependencies