Community Documentation

Installing ffmpeg & Lamemp3 for FlashVideo module

Last updated June 25, 2008. Created by junedkazi on March 21, 2008.
Edited by greggles. Log in to edit this page.

Got a whole lot of instructions from multiple sources

Instructions
http://www.webhostingtalk.com/archive/index.php/t-565563.html
http://www.webhostingtalk.com/showthread.php?p=4234345#post4234345
http://dev.gemin-i.org/wiki/index.php/Ffmpeg_install_instructions
http://www.hiteshagrawal.com/ffmpeg/installing-ffmpeg-easily-on-linux

Download links
http://www.audiocoding.com/downloads.html
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
http://www.xvid.org/Downloads.43.0.html
http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
http://www.penguin.cz/~utx/amr

Also, please ensure you have libtool, patch installed on your machine, if not do

Check for the following packages
rpm -qa automake
rpm -qa autoconf
rpm -qa libtool
rpm -qa m4
rpm -qa gcc-c++

[root@earth tmp]# yum install libtool
[root@earth tmp]# yum install patch

also ensure u have libogg-devel libvorbis-devel libncurses-devel

1 - install faac

[root@earth faac]# pwd
/home/dld/ffmpeg/final/faac
[root@earth faac]# ls -l ../faac-1.26.tar.gz
-rw-r--r-- 1 root root 400915 Feb 5 13:56 ../faac-1.26.tar.gz
[root@earth faac]# sh bootstrap
configure.in:11: warning: underquoted definition of MY_DEFINE
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in: installing `./install-sh'
configure.in: installing `./missing'
common/mp4v2/Makefile.am: installing `./depcomp'
[root@earth faac]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth faac]# make > MAKE.LOG 2>&1 &
[root@earth faac]# make install > MAKE_INSTALL.LOG 2>&1 &

2 - libmp4v2
[root@earth libmp4v2-1.5.0.1]# pwd
/home/dld/ffmpeg/final/libmp4v2-1.5.0.1
[root@earth libmp4v2-1.5.0.1]# ls -l ../libmp4v2-1.5.0.1.tar.bz2
-rw-r--r-- 1 root root 375541 Feb 5 13:57 ../libmp4v2-1.5.0.1.tar.bz2
[root@earth libmp4v2-1.5.0.1]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth libmp4v2-1.5.0.1]# make > MAKE.LOG 2>&1 &
[root@earth libmp4v2-1.5.0.1]# make install > MAKE_INSTALL.LOG 2>&1 &

3 - faad2
[root@earth faad2]# pwd
/home/dld/ffmpeg/final/faad2
[root@earth faad2]# ls -l ../faad2-2.6.1.tar.gz
-rw-r--r-- 1 root root 839410 Feb 5 13:56 ../faad2-2.6.1.tar.gz
[root@earth faad2]#

[root@earth faad2]# cat README.linux
To compile under Linux.
----------------------
just run :

autoreconf -vif
./configure --with-mp4v2
make
sudo make install

about the xmms plugin.
---------------------
The xmms plugin need to be build after the install of the faad project.
so after you have installed correctly faad (--with-xmms options) you need
to configure and build the xmms plugin part in the plugins/xmms directory.
Read the README and INSTALL files into the xmms directory.
[root@earth faad2]#
[root@earth faad2]# autoreconf -vif
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.in: installing `./install-sh'
configure.in: installing `./missing'
common/mp4ff/Makefile.am: installing `./compile'
common/mp4ff/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
autoreconf: Leaving directory `.'
[root@earth faad2]#
[root@earth faad2]# ./configure --with-mp4v2 > CONFIGURE.LOG 2>&1 &
[root@earth faad2]# make > MAKE.LOG 2>&1 &
[root@earth faad2]# make install > MAKE_INSTALL.LOG 2>&1 &

4 - Installing lame-3.97

[root@earth faac]#tar -xzf lame-3.97.tar.gz
[root@earth faac]# pwd
/home/dld/ffmpeg/final/lame
[root@earth faac]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth faac]# make > MAKE.LOG 2>&1 &
[root@earth faac]# make install > MAKE_INSTALL.LOG 2>&1 &

5 - Installing Xvid 1.1.3

[root@earth xvidcore-1.1.3]# pwd
/home/dld/ffmpeg/final/xvidcore-1.1.3
[root@earth xvidcore-1.1.3]# ls -l ../xvidcore-1.1.3.tar.gz
-rw-r--r-- 1 root root 739591 Feb 5 14:34 ../xvidcore-1.1.3.tar.gz
[root@earth xvidcore-1.1.3]# cd build/generic
[root@earth generic]# pwd
/home/dld/ffmpeg/final/xvidcore-1.1.3/build/generic
[root@earth generic]#
[root@earth generic]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth generic]# make > MAKE.LOG 2>&1 &
[root@earth generic]# make install > MAKE_INSTALL.LOG 2>&1 &

[root@earth ~]# cd /usr/local/lib
[root@earth lib]# ls -l libxvidcore.*
-rw-r--r-- 1 root root 834244 Feb 5 16:20 libxvidcore.a
-rw-r--r-- 1 root root 724482 Feb 5 16:20 libxvidcore.so.4.1
[root@earth lib]#
[root@earth lib]# ln -s libxvidcore.so.4.1 libxvidcore.so.4
[root@earth lib]# ln -s libxvidcore.so.4 libxvidcore.so
[root@earth lib]# ls -l libxvidcore.*
-rw-r--r-- 1 root root 834244 Feb 5 16:20 libxvidcore.a
lrwxrwxrwx 1 root root 16 Feb 5 16:24 libxvidcore.so -> libxvidcore.so.4
lrwxrwxrwx 1 root root 18 Feb 5 16:23 libxvidcore.so.4 ->
libxvidcore.so.4.1
-rw-r--r-- 1 root root 724482 Feb 5 16:20 libxvidcore.so.4.1
[root@earth lib]#

6 - Installing a52

[root@earth a52dec-0.7.4]# pwd
/home/dld/ffmpeg/final/a52dec-0.7.4
[root@earth a52dec-0.7.4]# ls -l ../a52dec-0.7.4.tar.gz
-rw-r--r-- 1 root root 241507 Feb 5 13:58 ../a52dec-0.7.4.tar.gz
[root@earth a52dec-0.7.4]#
[root@earth a52dec-0.7.4]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth a52dec-0.7.4]# make > MAKE.LOG 2>&1 &
[root@earth a52dec-0.7.4]# make install > MAKE_INSTALL.LOG 2>&1 &

7 - Installing libtheora

[root@earth libtheora-1.0beta2]# pwd
/home/dld/ffmpeg/final/libtheora-1.0beta2
[root@earth libtheora-1.0beta2]# ls -l ../libtheora-1.0beta2.tar.gz
-rw-r--r-- 1 root root 1961709 Feb 5 13:59 ../libtheora-1.0beta2.tar.gz
[root@earth libtheora-1.0beta2]#
[root@earth libtheora-1.0beta2]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth libtheora-1.0beta2]# make > MAKE.LOG 2>&1 &
[root@earth libtheora-1.0beta2]# make install > MAKE_INSTALL.LOG 2>&1 &

8 - Installing x264
[root@earth x264-snapshot-20080204-2245]# pwd
/home/dld/ffmpeg/final/x264-snapshot-20080204-2245
[root@earth x264-snapshot-20080204-2245]# ls -l
../x264-snapshot-20080204-2245.tar.bz2
-rw-r--r-- 1 root root 537647 Feb 5 14:09
../x264-snapshot-20080204-2245.tar.bz2
[root@earth x264-snapshot-20080204-2245]#
[root@earth x264-snapshot-20080204-2245]# ./configure --enable-shared
> CONFIGURE.LOG 2>&1 &
[root@earth x264-snapshot-20080204-2245]# make > MAKE.LOG 2>&1 &
[root@earth x264-snapshot-20080204-2245]# make install > MAKE_INSTALL.LOG 2>&1 &

9 - Installing 3GP stuff ...

[root@earth amrnb-7.0.0.0]# pwd
/home/dld/ffmpeg/final/amrnb-7.0.0.0
[root@earth amrnb-7.0.0.0]# ls -l ../amrnb-7.0.0.0.tar.bz2
-rw-r--r-- 1 root root 226952 Feb 5 14:37 ../amrnb-7.0.0.0.tar.bz2
[root@earth amrnb-7.0.0.0]#
[root@earth amrnb-7.0.0.0]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth amrnb-7.0.0.0]# make > MAKE.LOG 2>&1 &
[root@earth amrnb-7.0.0.0]# make install > MAKE_INSTALL.LOG 2>&1 &

[root@earth amrwb-7.0.0.2]# pwd
/home/dld/ffmpeg/final/amrwb-7.0.0.2
[root@earth amrwb-7.0.0.2]# ls -l ../amrwb-7.0.0.2.tar.bz2
-rw-r--r-- 1 root root 222579 Feb 5 14:37 ../amrwb-7.0.0.2.tar.bz2
[root@earth amrwb-7.0.0.2]#
[root@earth amrwb-7.0.0.2]# ./configure > CONFIGURE.LOG 2>&1 &
[root@earth amrwb-7.0.0.2]# make > MAKE.LOG 2>&1 &
[root@earth amrwb-7.0.0.2]# make install > MAKE_INSTALL.LOG 2>&1 &

INSTALLING FFMPEG - finally

[root@earth ffmpeg-export-2008-02-05]# pwd
/home/dld/ffmpeg/final/ffmpeg-export-2008-02-05
[root@earth ffmpeg-export-2008-02-05]# ls -l
../ffmpeg-export-snapshot.tar.bz2.2
-rw-r--r-- 1 root root 2468551 Feb 5 12:01 ../ffmpeg-export-snapshot.tar.bz2.2
[root@earth ffmpeg-export-2008-02-05]#
[root@earth ffmpeg-export-2008-02-05]# cat CONFIG.sh
#!/bin/bash
# ./configure --enable-libmp3lame --enable-gpl --enable-shared --enable-libfaad
./configure --enable-shared --enable-gpl --enable-nonfree
--enable-libxvid --enable-libvorbis --enable-libmp3lame
--enable-libfaad --enable-libfaac --enable-liba52 --enable-libtheora
--enable-libx264 --enable-libamr-nb --enable-libamr-wb
[root@earth ffmpeg-export-2008-02-05]# ./CONFIG.sh > CONFIGURE.LOG 2>&1 &
[root@earth ffmpeg-export-2008-02-05]# make > MAKE.LOG 2>&1 &
[root@earth ffmpeg-export-2008-02-05]# make install > MAKE_INSTALL.LOG 2>&1 &

Comments

Ubuntu

for ubuntu just go there:
http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_enable_lame_for_FFMPEG_...
seems an awfull ot easier :), debian should somewhat work the same.

how to install ffmpeg on

how to install ffmpeg on windows??
plz help...

try this link

About this page

Drupal version
Drupal 4.5.x or older, Drupal 4.6.x, Drupal 4.7.x, Drupal 5.x, Drupal 6.x

Tutorials and site recipes

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here