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).
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/knik0/faad2/archive/2.11.2/faad2-2.11.2.tar.gz
Download SHA256 Sum:
Download MD5 sum: 6a0ab532d81d9a528d08ab862bc4b637
Download size: 2,639.7 KB
Estimated disk space required: 7,732.7 KB
Estimated build time: less than 0.2 SBU
Sample AAC file: https://www.nch.com.au/acm/sample.aac (7 KB)
Sample AAC SHA256 Sum: 6976175e0a31c075301a8a734d4eeba99f560e89883e3c760bfe5566de52e386
Prepare faad2 by running the following commands:
cmake -B build -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ONcmake --build build
This package does not come with a test suite. However, basic functionality can be tested by decoding the sample AAC file:
cd build ./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.14 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 Install the package, as the root user:
cmake --install build