wiki:faad2

faad2

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.

Download

faad2 http://prdownloads.sourceforge.net/faac/faad2-2.5.tar.gz

faad2-2.5-unix-no-xmms.diff https://www.harasdebondereau.com/bliscat/patches/faad2-2.5-unix-no-xmms.diff.bz2

faac http://prdownloads.sourceforge.net/faac/faac-1.25.tar.gz

faac-1.25-unix.diff https://www.harasdebondereau.com/bliscat/patches/faac-1.25-unix.diff.bz2

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 &&
make

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 &&
make

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: http://www.audiocoding.com/

Wiki article about mp4: http://en.wikipedia.org/wiki/Advanced_Audio_Coding

Up
Top

Last modified 12 years ago Last modified on 09/11/2009 06:30:25 PM
Note: See TracWiki for help on using the wiki.