Install FFMPEG on RHEL/CentOS-Collection of common programming errors

You can install it from source:

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure
make

Then as root:

make install

Check the dependency list of ffmpeg, before you carry out the above steps. Make sure you have all the necessary packages. Alternatively, the dependencies can also be installed from source. For example, to compile faac and faad, download and extract faac and faad from audiocoding.com.

As above, run

./configure
make
su -c 'make install'

Install LAME if you want mp3 support.

Download codecs:

git clone git://git.videolan.org/x264.git
cd x264
./configure
make

when “configuring ffmpeg”, instead of just typing “./configure”, you can specify which modules you want to enable as follows:

./configure –enable-gpl –enable-nonfree –enable-pthreads –enable-libx264 –enable-libfaac –enable-libfaad –enable-libmp3lame make

Hope this helps.

su -c 'make install'