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.
cd /usr/local/src/
DOWNLOAD MODULES wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 EXTRACT MODULES tar zxvf lame-3.97.tar.gz mkdir /usr/local/lib/codecs/ yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y DOWNLOAD FFMPEG and MPLAYER svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn update cd /usr/local/src/ LAME: cd /usr/local/src/lame-3.97 LIBOGG cd /usr/local/src/ LIBVORBIS cd /usr/local/src/ FLVTOOL2 cd /usr/local/src/ MPLAYER cd /usr/local/src/ cd /usr/local/src/ FFMPEG: cd /usr/local/src/ffmpeg/ export LD_LIBRARY_PATH=/usr/local/lib/ ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50 FFMPEG-PHP: cd /usr/local/src/ NOTICE: Make sure this is the correct php.ini for the box!! echo ‘extension=ffmpeg.so’ >> /usr/local/Zend/etc/php.ini NOTICE: Make sure this is the correct php.ini for the box!! RESTART APACHE service httpd restart
|