ffmpeg installation

I have use all the following steps and  I am able to install ffmpeg without any error.
There are ready made scripts available to install ffmpeg.
==========================================================================
cd /usr/local/src
wget http://www.indianwebportal.com/installffmpeg.zip
tar -xvf installffmpeg.zip
cd installffmpeg
./install.sh
==========================================================================

OR

==========================================================================
You can installed it by using manually. Please follow the steps for installation of ffmpeg on the cpanel server.

================================
cd /usr/local/src
Download files :
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

Extract :
tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar jxvf essential-20061022.tar.bz2

chown root.root * -R
yum install subversion ruby ncurses-devel
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

If you are using secure tmp:
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp
Installing Lame:
cd /usr/local/src/lame-3.97
./configure
make && make install

Installing Libogg:
cd /usr/local/src/libogg-1.1.3
./configure && make && make install

Installing libvorbis:
cd /usr/local/src/libvorbis-1.1.2

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

./configure && make && make install
Installing flvtool2:
gem install flvtool2
Installing ffmpeg:
cd /usr/local/src/ffmpeg/
./configure --enable-libmp3lame  --enable-libvorbis --disable-mmx --enable-shared
make && make install

ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52
ln -s /usr/local/lib/libavutil.so.50 /usr/lib/libavutil.so.50
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavfilter.so.1 /usr/lib/libavfilter.so.1
ln -s /usr/local/lib/libswscale.so.0 /usr/lib/libswscale.so.0
ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0
ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0

Installing ffmpeg-php:

svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php    ffmpeg-php
cd /usr/local/src/ffmpeg-php
or
cd  /usr/local/src/ffmpeg-php/trunk/ffmpeg-php

phpize
./configure

cp  ffmpeg_frame.loT  ffmpeg_frame.lo
make
make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/

Install mplayer & mencoder:
mkdir /usr/local/lib/codecs/
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

yum install mplayer mencoder
Restart apache:
service httpd restart
===============================