How To Install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
Offline UltratechHost
#1
10-09-2011, 01:05 PM
Administrator

Posts: 209
Threads: 208
Joined: Apr 2010
Reputation: 0
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.

1. Change the directory to
Code:
cd /usr/local/src/

2. Download Modules

Code:
wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz

3. Extract Modules
Code:
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

Code:
4. Create a codec directory
Code:
mkdir /usr/local/lib/codecs/

and run
Code:
yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y

WE NEED TO INSTALL SVN + ROR:

Code:
up2date -i subversion
up2date -i ruby

Code:
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

COPY CODECS FOR MPLAYER:

Code:
mv /usr/local/src/essential-20060611/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

SECURE TMP IS A PAIN AT TIMES

Code:
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp

CONFIGURE LAME:
Code:
cd /usr/local/src/lame-3.97
./configure
make && make install
cd /usr/local/src/

LIBOGG:
Code:
cd /usr/local/src/libogg-1.1.3
./configure && make && make install
cd /usr/local/src/

LIBVORBIS:
Code:
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
cd /usr/local/src/

FLVTOOL2:
Code:
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd /usr/local/src/

Then..

Code:
cd /usr/local/src/mplayer
./configure && make && make install
cd /usr/local/src/

FFMPEG:
Code:
cd /usr/local/src/ffmpeg/

./configure --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared

######### IGNORE THIS ECHO LINE The dev's fixed the issue in svn. Im only leaveing it here in case it comes up again ###############
echo '#define HAVE_LRINTF 1 '>>config.h
################################################## ##############################
##############################
Code:
make

make install

Code:
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
cd /usr/local/src/

FFMPEG-PHP:
Code:
cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure
make
make install

NOTICE: Make sure this is the correct php.ini for the box!!

echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini

NOTICE: Make sure this is the correct php.ini for the box!!

Now restart httpd/Apache
Code:
service httpd restart

Reference:
How To Install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
Dinesh Kumar Mohanty
Ultra Web Solutions Private Limitedâ„¢
Bhubaneswar, Orissa, India.
Return to Top
WWW Find


Forum Jump:


Users browsing this thread:
1 Guest(s)

Contact Us · UltratechHost Forum · Lite (Archive) Mode · RSS Syndication
^
Powered By MyBB, © 2002-2014 MyBB Group
Modern Dark theme designed by Andrew