Praji’s Weblog

Welcome to praji’s world

FFMPEG INSTALLATION

leave a comment »

1. To install FFMPEG follow the steps.

wget anspuli.net/downloads/ffmpeg.tar.gz
tar -xzf ffmpeg.tar.gz
cd ffmpeg
./configure –enable-mp3lame –enable-gpl  –enable-shared
make
make install

2.  To install Lame MP3 encoder

Download from sourceforge.net

wget http://nchc.dl.sourceforge.net/sourceforge/lame/lame-3.96.tar.gz
tar xvzf lame-3.96.tar.gz
cd lame-3.96
./configure –enable-shared –prefix=/usr
make
make install

3. To install FLVTool2

FLVTool2 is written in Ruby, so we have to install Ruby in server too.

Download from Ruby site (http://www.ruby-lang.org/en/downloads/), type the following command to compile and install it:

./configure
make
make install

After this follow the steps given below to install  FLVTool2.

wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
tar xvzf flvtool2_1.0.5_rc6.tgz
cd flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

4. Install ffmpeg-php

wget http://nchc.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
tar xvjf ffmpeg-php-0.5.0.tbz2
cd ffmpeg-php-0.5.0
phpize
./configure && make
make install

This creates the ffmpeg.so file. Include this extension in your php.ini file.

eg: extension=ffmpeg.so

5. Libogg + Libvorbis

wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
tar xvzf libogg-1.1.3.tar.gz
cd /usr/local/src/libogg-1.1.3
./configure && make && make install

wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
tar xvzf libvorbis-1.1.2.tar.gz
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install

6. Mplayer

wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
mv /usr/local/src/essential-20060611/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
tar xvzf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1/
./configure
make
make install

Advertisements

Written by praji

February 3, 2008 at 7:16 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: