I found this installation from web and it worked well for me … ..

FFmpeg (http://ffmpeg.mplayerhq.hu)

FFmpeg-PHP (http://ffmpeg-php.sourceforge.net)

Mplayer + Mencoder (mencoder is now built into the mplayer svn release ) (http://www.mplayerhq.hu/design7/dload.html)


flv2tool ****REQUIRES RUBY ON RAILS**** (http://inlet-media.de/flvtool2)

LAME MP3 Encoder (http://lame.sourceforge.net)


Libogg + Libvorbis (http://www.xiph.org/downloads)

Login to your server as root, then:

cd /usr/local/src

 

Download the sources to your server using wget:

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

Extract all sources:

tar -xzf flvtool2_1.0.5_rc6.tgz tar -xzf lame-3.97.tar.gz tar -xzf libogg-1.1.3.tar.gz
tar -xzf libvorbis-1.1.2.tar.gz
tar -xjf essential-20061022.tar.bz2
tar -xjf ffmpeg-php-0.5.0.tbz2

Create new directory:

mkdir /usr/local/lib/codecs/

We need to install SVN and Ruby On Rails:

yum -i subversion
yum -i ruby
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

Copy Codecs for MPlayer:

mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

Secure folder TMP:

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

Lame:

cd /usr/local/src/lame-3.97
./configure make && make install

LibOgg:

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

LibVorbis:

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

FlvTool2:

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/mplayer
./configure && make && make install

FFMpeg: If you get any errors when running ./configure, please use ./configure —help to get the options mentioned below and manually paste it and run ./configure again …

cd /usr/local/src/ffmpeg/
./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared echo ‘define HAVE_LRINTF 1 ‘>>config.h
make
make install
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:

cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure make make install

To get the correct php.ini file,

php -i | grep ini

Echo the follwing to the php.ini file

echo ‘extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/Zend/etc/php.ini
service httpd restart

 

Thanks 

2 Responses to “How to install ffmpeg and other video hosting requirements on the server.”

  1. ffmpeg mp3 automating Says:

    […] Libogg … in cPanel Tue, Sep 4, 07. RSDown - BASH script for automating and …http://www.tecpages.com/how-to-install-ffmpeg-and-other-video-hosting-requirements-on-the-server/es - Izbor Softvera - Procitaj!!!Gui4fmpeg is a graphic user interface to handle encoding with […]

  2. Felton Farrell Says:

    ey7olqm5pixx59zh

Leave a Reply



Site Navigation