CentOS - Installing ffmpeg
This article will walk you through installing ffmpeg on CentOS 5.2. This article assumes that you have completed the CentOS Setup Guide, are working from a clean server, and you are logged in as a non-root user with sudo privileges.
By default ffmpeg does not come as a pre-compiled binary; however, there are places where people have pre-compiled it for us. We will use the DAG repository at RPMforge, which hosts one of those pre-compiled versions. First we need to tell our server where it is located.
You can add the repository for CentOS 5 by running the command:
sudo rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
For other versions of CentOS, check the Dag repository installation page for a different URL to pass to rpm in the above command.
Now that we have the key installed for the DAG repository we are ready to install ffmpeg. To install type the following command:
# sudo yum install ffmpeg
You will be prompted with a list of items that need installed. This should be approximately 12MB of packages on a fresh CentOS 5.2 installation. Press Y followed by Enter to continue.
Once you have successfully installed ffmpeg type the following command to test:
# ffmpeg -version
You should see an output that looks similar to the following:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --extra-cflags=-fPIC --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jun 4 2007 10:46:34, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) ffmpeg SVN-rUNKNOWN libavutil 3212288 libavcodec 3352580 libavformat 3345409
Additional Codecs and Filters
Please note that this is a pre-compiled version of ffmpeg. You may require additional support for different media types, codec types, filters, etc. that may not be included with this installation. If you do require such items you will be required to compile and install those items, along with ffmpeg, yourself.
We will not provide implementation support for using ffmpeg. If you need assistance implementing ffmpeg into your website or application please see the documentation at the ffmpeg website.
More information about ffmpeg can be found out their website: http://www.ffmpeg.org/
--Kelly Koehn 11:10, 2 May 2009 (CDT)
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License
See license specifics and DISCLAIMER