This bug may be related to bug #1638362
http://sourceforge.net/tracker/index.php?func=detail&aid=1638362&group_id=704&atid=100704
faac 1.26.1 creates corrupt AAC output when encoding the audio-trunc.wav WAV/PCM file available at:
http://www.rectalogic.com/video/audio-trunc.wav
The resulting raw AAC or MP4 encapsulated does not play back properly with QuickTime player or faad - the sound is full of artifacts and cuts in and out.
# Encode AAC in MP4
$ faac -o faac.mp4 audio-trunc.wav
Freeware Advanced Audio Coder
FAAC 1.26.1 (Jul 23 2008) UNSTABLE
Quantization quality: 100
Bandwidth: 16000 Hz
Object type: Low Complexity(MPEG-4) + M/S
Container format: MPEG-4 File Format (MP4)
Encoding audio-trunc.wav to faac.mp4
frame | bitrate | elapsed/estim | play/CPU | ETA
1281/12380 ( 10%)| 135.2 | 1.4/13.7 | 21.02x | 12.3
# Decode with faad
$ faad faac.mp4
*********** Ahead Software MPEG-4 AAC Decoder V2.6 ******************
Build: Jul 23 2008
Copyright 2002-2004: Ahead Software AG
http://www.audiocoding.com
Floating point version
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
**************************************************************************
faac.mp4 file info:
LC AAC 29.716 secs, 2 ch, 44100 Hz
tool: FAAC 1.26.1 (Jul 23 2008) UNSTABLE
---------------------
| Config: 2 Ch |
---------------------
| Ch | Position |
---------------------
| 00 | Left front |
| 01 | Right front |
---------------------
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Array index out of range
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Array index out of range
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Array index out of range
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: PCE shall be the first element in a frame
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Array index out of range
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Channel coupling not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: PCE shall be the first element in a frame
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Bitstream value not allowed by specification
Warning: Channel coupling not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Bitstream value not allowed by specification
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Bitstream value not allowed by specification
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Bitstream value not allowed by specification
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Array index out of range
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Channel coupling not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Bitstream value not allowed by specification
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Unexpected channel configuration change
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Bitstream value not allowed by specification
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Warning: Gain control not yet implemented
Warning: Gain control not yet implemented
Warning: Maximum number of bitstream elements exceeded
Decoding faac.mp4 took: 0.23 sec. 129.96x real-time.
# Encode raw AAC
$ faac -o faac.aac -r audio-trunc.wav
Freeware Advanced Audio Coder
FAAC 1.26.1 (Jul 23 2008) UNSTABLE
Quantization quality: 100
Bandwidth: 16000 Hz
Object type: Low Complexity(MPEG-2) + M/S
Container format: Headerless AAC (RAW)
Encoding audio-trunc.wav to faac.aac
frame | bitrate | elapsed/estim | play/CPU | ETA
1281/12380 ( 10%)| 135.2 | 1.4/13.6 | 21.08x | 12.2
# Decode with faad
$ faad faac.aac
*********** Ahead Software MPEG-4 AAC Decoder V2.6 ******************
Build: Jul 23 2008
Copyright 2002-2004: Ahead Software AG
http://www.audiocoding.com
Floating point version
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.
**************************************************************************
faac.aac file info:
RAW
---------------------
| Config: 2 Ch |
---------------------
| Ch | Position |
---------------------
| 00 | Left front |
| 01 | Right front |
---------------------
Error: Gain control not yet implemented
Also see http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2008-July/016429.html
Fixed in current CVS version