Home HowTos Linux

How to install ffmpeg on Centos 5 Linux for audio files format conversion

by

in HowTos, Linux

ffmpeg is open source project that produce different audio and video Codecs, players, conversion tools, broadcasting application for live streaming and so on. These all packages are released under GPL License.

This HowTo explains how to install ffmpeg on centos distro linux and audio conversion short tutorial.

Prerequisites :
All commands are run as root.
Internet should be available on Linux box.

Installation :
Before we install ffmpeg, we need to install dependencies which requires external repository. We will use popular centos repo RPMForge.

rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm

Dependencies
yum install faac faac-devel faad2 faad2-devel lame lame-devel

Download FFmpeg source code at /usr/local/src/
cd /usr/local/src/
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg

Configuration and compilation
cd /usr/local/src/ffmpeg/
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame
make
make install

Installation completed.

Sample conversion of audio file from wav to mp3 using ffmpeg
ffmpeg -i audio.wav -y audio.mp3

If you are still unable to install it, leave us a comment. We will help you out.

Related Posts:

Previous post:

Next post: