HowTos Linux

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

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

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:// ffmpeg

Configuration and compilation
cd /usr/local/src/ffmpeg/
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame
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.