Installing FFMPEG The easy way!

A lot of people are getting hiring people to install FFMPEG as they think it?s a difficult task, but it?s much easier than you think if you follow these instructions. You should have root access & basic Linux knowledge to the server to follow these instructions.

1. Create a directory to do our work in
mkdir ~/ffmpeg

cd ~/ffmpeg

2. Get all the source files

3. Extract all the source files
bunzip2 essential-20071007.tar.bz2; tar xvf essential-20071007.tar
tar zxvf flvtool2-1.0.6.tgz
tar zxvf lame-398.tar.gz
bunzip2 ffmpeg-php-; tar xvf ffmpeg-php-
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz

4. Create the codecs directory & import them
mkdir /usr/local/lib/codecs/
mv essential-20071007/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)
yum install subversion
yum install ruby
yum install ncurses-devel

6. Get the latest FFMPEG/MPlayer from the subversion
svn checkout svn:// ffmpeg
svn checkout svn:// mplayer

7. Compile LAME
cd ~/ffmpeg/lame-398
make install

8. Compile libOGG
cd ~/ffmpeg/libogg-1.1.3
make * if can't make run ldconfig
make install

9. Compile libVorbis
cd ~/ffmpeg/libvorbis-1.1.2
make install

10. Compile flvtool2
cd ~/ffmpeg/flvtool2-1.0.6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install