How to install ffmpeg with all support needed
![]() | ![]() | ![]() | ![]() |
October 13, 2009 Linux Software
Ok .. I’l show you how ti install FFmpeg, Mplayer, mencoder and other support for a tube server..
First of all, i made folder named convert
# mkdir convert
Then go to that folder
# cd convert
Now we have to get all stuff needed…
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk mplayer
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20091011-2245.tar.bz2
http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
OK when you got the latest stuff.. we can go now…
First make codecs folder
mkdir /usr/local/lib/codecs/
and than unpack and move codecs…
tar jxvf essential-20071007.tar.bz2
mv /path_to/convert/essential-20071007/* /usr/local/lib/codecs/
Ok mplayer codecs are done.. lets make some support..
Lame-
tar zxvf lame-3.97.tar.gz
cd lame-3.97
./configure
make
make install
Libogg-
tar zxvf libogg-1.1.3.tar.gz
cd libogg-1.1.3
./configure
make
make install
yasm- (needed for x264 support )
tar zxvf yasm-0.8.0.tar.gz
cd yasm-0.8.0
./configure
make
make isntall
x264-
tar jxvf x264-snapshot-20091011-2245.tar.bz2
cd x264-snapshot-20091011-2245
./configure –enable-shared
make
make install
Libvorbis-
tar zxvf libvorbis-1.2.0.tar.gz
cd libvorbis-1.2.0
./configure
make
make install
flvtool2 (must have ruby)
tar zxvf flvtool2-1.0.6.tgz
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
Install mplayer & mencoder
cd mplayer
./configure
make
make install
Install libtheora (for ogg video encoding)
cd libtheora-1.0beta3
./configure
make
make install
Install AMR (for 3gp conversion)
ffmpeg
cd ffmpeg
./configure –enable-libx264 –enable-gpl –enable-shared –enable-libfaad –enable-libxvid –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-version3
make
make install
Finalize the codec setups
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
Compile FFMPEG-PHP
cd ~/ffmpeg/ ffmpeg-php-0.5.0
phpize
./configure
make
make install
Install FFMPEG-PHP (make sure the php.ini path is correct.)
echo ‘extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/Zend/etc/php.ini
Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
service httpd restart
Verify if it works
php -r ‘phpinfo();’ | grep ffmpeg
If you get a few lines such as
ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0
Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder & libOGG.
Comments (1)




Stumble Upon
Del.icio.us
Buzz


How to install ffmpeg with all support needed | skyrider.biz…
How to install ffmpeg with all support needed…