Version 6 (modified by ken@…, 13 years ago) ( diff )



faad2 and faac are useful for encoding and decoding mp4 audio files (commonly given the non standard extension m4a).

faad2 is particularly useful, as of Autumn 2009, for youtube - can be used by ffmpeg and by gst-plugins-bad.

faad2-2.7 does not create a shared libmp4ff. There is a patch from debian in -patches to correct that.

Anyone who loathes static libraries will want to pass "--enable-static=no" to configure after applying that patch.

I'll leave the following copious notes, even though we have a newer version in the book, for people who need them.






Installation of faad2

Faad2 files come from a DOS platform, and the xmms/bmp dependency is broken:

patch -Np1 -i ../faad2-2.5-unix-no-xmms.diff

Compile faad2 by running the following commands:

./bootstrap &&
./configure --prefix=/usr &&

Now as root:

make install

Installation of faac

Faac files come from a DOS platform:

patch -Np1 -i ../faac-1.25-unix.diff

Compile faac with these commands:

./bootstrap &&
./configure --prefix=/usr &&

Now as root:

make install

Command Explanations

./bootstrap: The bootstrap script calls various autotools to generate a new configure script

Installed programs

faad: Decodes mp4 audio files to Microsoft WAV format (default) or RAW PCM data.

faac: Creates AAC audio files from raw PCM or .wav data. If you output to a file with a .mp4 or .m4a extension, the default behavior is to wrap the AAC data in MP4 container.

Installed libraries

libfaad.{so,a}, libmp4ff.{so,a}, optionally libmp4v2.{so,a} and libfaac.{so,a}

Home page:

Wiki article about mp4:


Note: See TracWiki for help on using the wiki.