Opened 11 years ago

Last modified 9 years ago

#2458 open defect

raw aac fails with FFmpeg, works fine with faad

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: aac videolan
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(videolan ticket 8309)
I will upload an AAC sample (provided by a vlc user) that decodes fine with faad, FFmpeg fails both auto-detection and decoding.

$ ffmpeg -probesize 2G -analyzeduration 2G -i trac_8309_raw.aac
ffmpeg version N-51927-geabc0c7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 11 2013 18:23:56 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 52.101 /  3. 52.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
trac_8309_raw.aac: Invalid data found when processing input
$ faad trac_8309_raw.aac
 *********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

 Build: Apr  3 2012
 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.

 **************************************************************************

trac_8309_raw.aac file info:
RAW

  ---------------------
 | Config:  2 Ch       |
  ---------------------
 | Ch |    Position    |
  ---------------------
 | 00 | Left front     |
 | 01 | Right front    |
  ---------------------

Decoding trac_8309_raw.aac took:  0.76 sec.  0.00x real-time.
$ ffmpeg -i trac_8309_raw.wav
ffmpeg version N-51927-geabc0c7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 11 2013 18:23:56 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 52.101 /  3. 52.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wav @ 0x1d4ca20] max_analyze_duration 5000000 reached at 5015510 microseconds
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'trac_8309_raw.wav':
  Duration: 00:05:41.22, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
At least one output file must be specified
$ ffmpeg -f aac -i trac_8309_raw.aac
ffmpeg version N-51927-geabc0c7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 11 2013 18:23:56 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 52.101 /  3. 52.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[aac @ 0x1ab25a0] get_buffer() failed
[aac @ 0x1ab25a0] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1ab25a0] Reserved bit set.
[aac @ 0x1ab25a0] channel element 3.1 is not allocated
[aac @ 0x1ab25a0] Number of bands (7) exceeds limit (4).
[aac @ 0x1ab25a0] ms_present = 3 is reserved.
[aac @ 0x1ab25a0] Number of bands (15) exceeds limit (12).
[aac @ 0x1ab25a0] channel element 1.13 is not allocated
[aac @ 0x1ab25a0] Reserved bit set.
[aac @ 0x1ab25a0] channel element 2.5 is not allocated
[aac @ 0x1ab25a0] channel element 3.2 is not allocated
[aac @ 0x1ab25a0] channel element 0.1 is not allocated
[aac @ 0x1ab25a0] Number of bands (6) exceeds limit (2).
[aac @ 0x1ab25a0] channel element 3.8 is not allocated
[aac @ 0x1ab25a0] Reserved bit set.
[aac @ 0x1ab25a0] channel element 1.11 is not allocated
[aac @ 0x1ab25a0] channel element 1.0 is not allocated
[aac @ 0x1ab25a0] Number of bands (10) exceeds limit (9).
[aac @ 0x1ab25a0] Reserved bit set.
[aac @ 0x1ab25a0] Number of bands (17) exceeds limit (12).
[aac @ 0x1ab25a0] Number of bands (20) exceeds limit (4).
[aac @ 0x1ab25a0] channel element 2.7 is not allocated
[aac @ 0x1ab25a0] channel element 1.10 is not allocated
[aac @ 0x1ab25a0] channel element 0.13 is not allocated
[aac @ 0x1ab25a0] channel element 2.1 is not allocated
[aac @ 0x1ab25a0] Reserved bit set.

...

[aac @ 0x1ab25a0] channel element 2.14 is not allocated
[aac @ 0x1ab25a0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0x1ab25a0] Inconsistent channel configuration.
[aac @ 0x1ab25a0] get_buffer() failed
[aac @ 0x1ab25a0] Inconsistent channel configuration.
[aac @ 0x1ab25a0] get_buffer() failed
[aac @ 0x1ab25a0] Number of bands (40) exceeds limit (32).
[aac @ 0x1ab25a0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0x1ab25a0] Inconsistent channel configuration.
[aac @ 0x1ab25a0] get_buffer() failed
[aac @ 0x1ab25a0] Number of bands (30) exceeds limit (13).
[aac @ 0x1ab25a0] channel element 2.7 is not allocated
[aac @ 0x1ab25a0] Reserved bit set.
[aac @ 0x1ab25a0] Dependent coupling is not supported together with LTP
    Last message repeated 31 times
[aac @ 0x1ab25a0] invalid band type
[aac @ 0x1ab25a0] Number of bands (6) exceeds limit (4).
[aac @ 0x1ab25a0] Dependent coupling is not supported together with LTP
    Last message repeated 31 times
[aac @ 0x1aa9a60] max_analyze_duration 5000000 reached at 5120000 microseconds
[aac @ 0x1aa9a60] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'trac_8309_raw.aac':
  Duration: 00:07:48.76, bitrate: 91 kb/s
    Stream #0:0: Audio: aac, 8000 Hz, 7.1(wide), fltp, 91 kb/s
At least one output file must be specified

MPlayer stops after 15 seconds, fails with -ac faad:

$ mplayer trac_8309_raw.aac -demuxer rawaudio -rawaudio format=0xFF -ac ffaac
MPlayer SVN-r36089-4.7 (C) 2000-2013 MPlayer Team

Playing trac_8309_raw.aac.
rawaudio file format detected.
Load subtitles in ./
==========================================================================
Forced audio codec: ffaac
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 55.2.100 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 1411.2 kbit/50.00% (ratio: 176400->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A:  15.7 (15.6) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]decode_band_types: Input buffer exhausted before END element found
A:  15.7 (15.7) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]channel element 2.7 is not allocated
A:   0.5 (00.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0xf75c1540]Inconsistent channel configuration.
[aac @ 0xf75c1540]get_buffer() failed
A:   1.5 (01.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]channel element 3.7 is not allocated
A:   2.5 (02.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0xf75c1540]Inconsistent channel configuration.
[aac @ 0xf75c1540]get_buffer() failed
A:   3.5 (03.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Number of bands (4) exceeds limit (3).
A:   4.5 (04.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Number of bands (16) exceeds limit (4).
A:   5.5 (05.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Reserved bit set.
A:   6.5 (06.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]channel element 2.7 is not allocated
A:   7.5 (07.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0xf75c1540]Inconsistent channel configuration.
[aac @ 0xf75c1540]get_buffer() failed
A:   8.5 (08.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Reserved bit set.
A:   9.5 (09.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]invalid band type
A:  10.5 (10.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]channel element 2.3 is not allocated
A:  11.5 (11.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Reserved bit set.
A:  12.5 (12.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 0xf75c1540]Inconsistent channel configuration.
[aac @ 0xf75c1540]get_buffer() failed
A:  13.5 (13.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Reserved bit set.
A:  14.5 (14.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]channel element 3.4 is not allocated
A:  15.5 (15.5) of 30.2 (30.2)  0.2%
[aac @ 0xf75c1540]Reserved bit set.
A:  16.5 (16.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]invalid band type
A:  17.5 (17.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]Reserved bit set.
A:  18.5 (18.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]Reserved bit set.
A:  19.5 (19.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 2.6 is not allocated
A:  20.5 (20.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]SBR was found before the first channel element.
[aac @ 0xf75c1540]Reserved bit set.
A:  21.5 (21.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 3.2 is not allocated
A:  22.5 (22.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 2.2 is not allocated
A:  23.5 (23.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 3.0 is not allocated
A:  24.5 (24.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]Number of bands (11) exceeds limit (2).
A:  25.5 (25.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 3.7 is not allocated
A:  26.5 (26.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 3.7 is not allocated
A:  27.5 (27.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 2.15 is not allocated
A:  28.5 (28.5) of 30.2 (30.2)  0.3%
[aac @ 0xf75c1540]channel element 2.9 is not allocated
A:  29.5 (29.5) of 30.2 (30.2)  0.3%


Exiting... (End of file)

Attachments (1)

trac_8309_raw.log (66.3 KB ) - added by Carl Eugen Hoyos 11 years ago.

Download all attachments as: .zip

Change History (3)

by Carl Eugen Hoyos, 11 years ago

Attachment: trac_8309_raw.log added

comment:2 by compn, 9 years ago

Status: newopen

sample causes odd behavior in -f aac as well.

Note: See TracTickets for help on using tickets.