In this tutorial we will help you install the following packages under Ubuntu 11.10 or any newer or older Ubuntu version (12.04/11.10/11.04):

  • FFmpeg-PHP
  • Libvorbis
  • Libogg
  • AMR 
Let's first install these dependencies to be able to configure and build from source:

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

1. FFmpeg-PHP Installation

You can simply install it with the following command:

sudo apt-get install php5-ffmpeg

To install from source, use the following commands:

cd /tmp && wget -O ffmpeg-php-0.6.0.tbz2 http://goo.gl/Ik9C8

bzip2 -cd ffmpeg-php-0.6.0.tbz2 | tar xvf - && cd ffmpeg-php-0.6.0

phpize && ./configure && make

sudo make install

2. Libvorbis Installation

Use these commands:

cd /tmp && wget -O libvorbis-1.3.3.tar.gz http://goo.gl/nSDmc

tar zxvf libvorbis-1.3.3.tar.gz && cd libvorbis-1.3.3

./configure && make

sudo make install

3. Libogg Installation


cd /tmp && wget -O libogg-1.3.0.tar.gz http://goo.gl/vHzMn

tar zxvf libogg-1.3.0.tar.gz && cd libvorbis-1.3.3

./configure && make

sudo make install

4. AMR Installation


cd /tmp && wget -O amrwb- http://goo.gl/oawUi

bzip2 -cd amrwb- | tar xvf - && cd amrwb-

./configure && make

sudo make install

Post a Comment