Howto Install Video Hosting Requirements

1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.29 out of 5)
Loading ... Loading ...

Many peoples have asked for this to be done so here’s a howto for installing.
List to be installed:


Login to your server as root, then:

# cd /usr/local/src

Download the sources to your server:

# wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
# wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
# wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
# wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
# wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
# wget 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:

# up2date -i subversion
# up2date -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:

# 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

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
# service httpd restart

Done!

 |  Print This Post Print This Post

Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post
 |  TrackBack URI for this post



Related Post:

6 Responses to 'Howto Install Video Hosting Requirements'

  1. Yujin - December 26th, 2006 at 5:05 am

    I installed ffmpeg and ffmpeg-php on cpanel server. But i get core dump when i visit php script that use ffmpeg functions. Any fix for this ?

  2. YSG - December 26th, 2006 at 10:36 am

    Take a look your error log, usually you can see what’s going on there.

  3. Chae - January 6th, 2007 at 11:49 am

    Going through the above & as soon as I get to the

    FFMpeg:

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

    I get this error…

    Unknown option “–enable-mp3lame”.
    See ./configure –help for available options.

    read the help me & instead of seeing a say -enable it specifies –enable so retried with:-

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

    & still get the same error & can’t proceed any further

  4. Chae - January 6th, 2007 at 11:50 am

    Oops that should have read…

    read the help me & instead of seeing a say -enable it specifies –-enable so retried with:-

  5. YSG - February 9th, 2007 at 5:42 pm

    Correct options:
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared

  6. Giorgi - March 28th, 2007 at 8:11 am

    Thats cool and all but… I cant install it on Fedora Core 5. It says: -bash: LOTS OF THINGS: command not found


Leave a Reply