How to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from sourceThis article shows how to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from source. It should work on most systems, however may need some tweaking from system to sytem.cd /usr/local/srcDownload source tarballs:wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgzwget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gzwget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gzwget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gzwget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2Extract the tarballs:tar zxvf lame-3.97.tar.gztar zxvf libogg-1.1.3.tar.gztar zxvf libvorbis-1.1.2.tar.gztar zxvf flvtool2_1.0.5_rc6.tgztar jxvf essential-20061022.tar.bz2tar jxvf ffmpeg-php-0.5.0.tbz2tar zxvf flvtool2_1.0.5_rc6.tgzMake a directory to store all the codecs:mkdir /usr/local/lib/codecs/Install any necessary packages:yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortranyum install subversion ruby ncurses-develsvn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpegsvn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayercd /usr/local/src/mplayersvn updatecd /usr/local/srcCopy codecs for mplayer:mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/chmod -R 755 /usr/local/lib/codecs/If you are using secure tmp:mkdir /usr/local/src/tmpchmod 777 /usr/local/src/tmpexport TMPDIR=/usr/local/src/tmpInstalling Lame:cd /usr/local/src/lame-3.97./configuremake && make installInstalling Libogg:cd /usr/local/src/libogg-1.1.3./configure && make && make installInstalling libvorbis:cd /usr/local/src/libvorbis-1.1.2./configure && make && make installInstalling flvtool2:cd /usr/local/src/flvtool2_1.0.5_rc6/ruby setup.rb configruby setup.rb setupruby setup.rb installcd /usr/local/src/mplayer./configure && make && make installInstalling ffmpeg:cd /usr/local/src/ffmpeg/./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-sharedmake && make installln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51Installing ffmpeg-php:cd /usr/local/src/ffmpeg-php-0.5.0/phpize./configuremakemake installNote: Make sure this is the correct php.ini for this server.echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.iniRestart apache:service httpd restartYou should be ready to go now!Note: up2date can be used if you don't have yum installed.