FAAD2 is a decoder for a lossy sound compression scheme specified in MPEG-2 Part 7 and MPEG-4 Part 3 standards and known as Advanced Audio Coding (AAC).
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/knik0/faad2/archive/2.10.1/faad2-2.10.1.tar.gz
Download MD5 sum: 62a0427c6ff3a273aa720e27da166758
Download size: 788 KB
Estimated disk space required: 14 MB
Estimated build time: 0.1 SBU
Sample AAC file: https://www.nch.com.au/acm/sample.aac (7 KB)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/faad2
Install FAAD2 by running the following commands:
./bootstrap && ./configure --prefix=/usr --disable-static && make
This package does not come with a test suite. However, basic functionality can be tested by decoding the sample AAC file:
./frontend/faad -o sample.wav ../sample.aac
This should display a copyright message and the following information about the sample file:
sample.aac file info:
ADTS, 4.608 sec, 13 kbps, 16000 Hz
---------------------
| Config: 2 Ch |
---------------------
| Ch | Position |
---------------------
| 00 | Left front |
| 01 | Right front |
---------------------
Now play the result (requires the aplay program from the alsa-utils-1.2.8 package):
aplay sample.wav
aplay should identify the file as “Signed 16 bit Little Endian, Rate 16000 Hz, Stereo”, and you should hear some piano notes.
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.