How To Install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
Following are the steps to install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog on a Linux server or VPS Hosting Manually. There are many automated scripts available which install these but its better to do it manually as in case of an error occuring during the installation process, we can stop the installation and fix them. These steps also include the common fixes for such errors.
tar zxvf lame-3.97.tar.gz tar zxvf libogg-1.1.3.tar.gz tar zxvf libvorbis-1.1.2.tar.gz tar zxvf flvtool2_1.0.5_rc6.tgz tar jxvf essential-20061022.tar.bz2 tar jxvf ffmpeg-php-0.5.1.tbz2
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd /usr/local/src/mplayer
svn update
cd /usr/local/src/ mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/ chmod -R 755 /usr/local/lib/codecs/
LAME:
cd /usr/local/src/lame-3.97 ./configure make && make install
LIBOGG
cd /usr/local/src/ cd /usr/local/src/libogg-1.1.3 ./configure --enable-shared && make && make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig export PKG_CONFIG_PATH
LIBVORBIS
cd /usr/local/src/ cd /usr/local/src/libvorbis-1.1.2 ./configure && make && make install
FLVTOOL2
cd /usr/local/src/ cd /usr/local/src/flvtool2_1.0.5_rc6/ ruby setup.rb config ruby setup.rb setup ruby setup.rb install
MPLAYER
cd /usr/local/src/ cd /usr/local/src/mplayer ./configure && make && make install
cd /usr/local/src/
FFMPEG:
cd /usr/local/src/ffmpeg/ ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared make make install