>
FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVto...
Welcome, Guest

by tiru on Monday, 10 May 2010
FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation


Introduction

The following HOWTO will show you exactly how to install the following packages on a Debian Etch or Ubuntu 7.06 system:

  • FFmpeg
  • FFmpeg-PHP
  • Mplayer + Mencoder
  • flv2tool
  • LAME MP3 Encoder
  • AMR (for 3gp file conversions)
  • Libogg
  • Libvorbis

Do some prep-work

apt-get update  apt-get upgrade  apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip 

Download all the files needed

cd /usr/local/src  wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2  wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.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.2.0.tar.gz  wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2  wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2  wget http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz 

Extract all the files

tar zxvf lame-3.97.tar.gz  tar zxvf libogg-1.1.3.tar.gz  tar zxvf libvorbis-1.2.0.tar.gz  tar zxvf flvtool2-1.0.6.tgz  tar jxvf essential-20071007.tar.bz2  tar jxvf ffmpeg-php-0.5.0.tbz2  bzip2 -cd amrnb-7.0.0.2.tar.bz2 | tar xvf -  bzip2 -cd amrwb-7.0.0.3.tar.bz2 | tar xvf -  tar zxvf libtheora-1.0beta3.tar.gz 

We need a codec directory

mkdir /usr/local/lib/codecs/ 

Install Ruby on Rails, subversion & ncurses

apt-get install subversion ruby libcurses-ruby 

Run some SVN queries

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

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

We also need to secure the tmp directory

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

Install lame

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

Install libogg

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

Install libvorbis

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

Install flvtool2

cd /usr/local/src/flvtool2-1.0.6/  ruby setup.rb config  ruby setup.rb setup  ruby setup.rb install 

Install mplayer & mencoder

cd /usr/local/src/mplayer  ./configure --enable-jpeg  make && make install 

Install AMR (for 3gp conversion)

cd /usr/local/src/amrnb-7.0.0.2  ./configure  make && make install 
cd /usr/local/src/amrwb-7.0.0.3  ./configure  make && make install 

Install libtheora (for ogg video encoding)

cd /usr/local/src/libtheora-1.0beta3  ./configure  make && make install 

Install ffmpeg

Debian Etch and Ubuntu 8.04 users please use the following configure command:

cd /usr/local/src/ffmpeg/  ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora 

Ubuntu 7.06 users please use the following configure command:

./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libtheora 

Now run these commands:

make  make install  ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52  ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52  ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52  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  ln -s /usr/local/lib/libamrnb.so.3 /usr/lib/libamrnb.so.3  ln -s /usr/local/lib/libamrwb.so.3 /usr/lib/libamrwb.so.3 

Install ffmpeg-php

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

You now need to add the new ffmpeg-php module to the php.ini file

vim /etc/php5/apache2/php.ini  extension=ffmpeg.so (add this line to the end of the file) 

Restart & done

/etc/init.d/apache2 force-reload


Topic Normal Unknown option "--enable-libamr-nb"
by tiru on 05/10/2010 17:38

If there is an issue for : `Unknown option "--enable-libamr-nb" `

Then download libopencore-amr from: http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz

and use this line
#./configure --enable-nonfree --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared  --enable-libopencore-amrnb  --enable-libopencore-amrwb --enable-libtheora --enable-version3 
# make
# make install
# ldconfig 

Hope it works.



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering