[FFmpeg-trac] #200(avcodec:open): aac - failure decoding audio stream when audio configuration changes (was: aac_latm - failure decoding audio stream when audio configuration changes)

FFmpeg trac at avcodec.org
Tue May 17 11:45:36 CEST 2011


#200: aac - failure decoding audio stream when audio configuration changes
-----------------------+----------------------
Reporter:  gmcallow    |       Owner:
    Type:  defect      |      Status:  open
Priority:  normal      |   Component:  avcodec
 Version:  git-master  |  Resolution:
Keywords:              |  Blocked By:
Blocking:              |  Reproduced:  1
Analyzed:  0           |
-----------------------+----------------------
Changes (by cehoyos):

 * status:  new => open
 * version:  unspecified => git-master
 * component:  undetermined => avcodec
 * reproduced:  0 => 1


Comment:

 I will attach two non-latm samples that show the problem:
 {{{
 $ ffmpeg -i stereomono.aac out1.wav
 ffmpeg version git-N-29973-gf2962ac, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on May 17 2011 01:56:25 with gcc 4.5.3
   configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32' --enable-gpl
   libavutil    51.  2. 1 / 51.  2. 1
   libavcodec   53.  6. 0 / 53.  6. 0
   libavformat  53.  1. 0 / 53.  1. 0
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  5. 0 /  2.  5. 0
   libswscale    0. 14. 0 /  0. 14. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [NULL @ 0x8ca3b20] Format aac detected only with low score of 25,
 misdetection possible!
 [aac @ 0x8ca5960] channel element 3.3 is not allocated
 [aac @ 0x8ca3b20] Estimating duration from bitrate, this may be inaccurate
 Input #0, aac, from 'stereomono.aac':
   Duration: 00:00:05.47, bitrate: 129 kb/s
     Stream #0.0: Audio: aac, 48000 Hz, stereo, s16, 129 kb/s
 Output #0, wav, to 'out1.wav':
   Metadata:
     encoder         : Lavf53.1.0
     Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 [aac @ 0x8ca5960] channel element 3.3 is not allocated
 Error while decoding stream #0.0
 [aac @ 0x8ca5960] channel element 0.0 is not allocated
 Error while decoding stream #0.0
 Error while decoding stream #0.0

 ...

 Error while decoding stream #0.0
 Error while decoding stream #0.0
     Last message repeated 167 times
 size=     248kB time=1.32 bitrate=1536.3kbits/s    ^M
 video:0kB audio:248kB global headers:0kB muxing overhead 0.017326%
 }}}
 out1.wav contains one second of stereo sound, mplayer -ac ffaac -sb 31500
 stereomono.aac plays the remaining >3 seconds of mono.
 {{{
 $ ffmpeg -i stereo51.aac out2.wav
 ffmpeg version git-N-29973-gf2962ac, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on May 17 2011 01:56:25 with gcc 4.5.3
   configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32' --enable-gpl
   libavutil    51.  2. 1 / 51.  2. 1
   libavcodec   53.  6. 0 / 53.  6. 0
   libavformat  53.  1. 0 / 53.  1. 0
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  5. 0 /  2.  5. 0
   libswscale    0. 14. 0 /  0. 14. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [aac @ 0x8ca5960] Sample rate index in program config element does not
 match the sample rate index configured by the container.
 [aac @ 0x8ca5960] channel element 3.1 is not allocated
 [aac @ 0x8ca3b20] max_analyze_duration reached
 [aac @ 0x8ca3b20] Estimating duration from bitrate, this may be inaccurate
 Input #0, aac, from 'stereo51.aac':
   Duration: 00:00:17.98, bitrate: 177 kb/s
     Stream #0.0: Audio: aac, 48000 Hz, stereo, s16, 177 kb/s
 Output #0, wav, to 'out2.wav':
   Metadata:
     encoder         : Lavf53.1.0
     Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 [aac @ 0x8ca5960] Sample rate index in program config element does not
 match the sample rate index configured by the container.
 [aac @ 0x8ca5960] channel element 3.1 is not allocated
 Error while decoding stream #0.0
 [aac @ 0x8ca5960] Not evaluating a further program_config_element as this
 construct is dubious at best.
 [aac @ 0x8ca5960] channel element 0.0 is not allocated
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
     Last message repeated 22 times
 [aac @ 0x8ca5960] Not evaluating a further program_config_element as this
 construct is dubious at best.
 [aac @ 0x8ca5960] channel element 0.0 is not allocated
 Error while decoding stream #0.0
 Error while decoding stream #0.0

 ...

 Error while decoding stream #0.0
 Error while decoding stream #0.0
     Last message repeated 22 times
 [aac @ 0x8ca5960] Not evaluating a further program_config_element as this
 construct is dubious at best.
 [aac @ 0x8ca5960] channel element 0.0 is not allocated
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
 Error while decoding stream #0.0
     Last message repeated 13 times
 size=    1368kB time=7.30 bitrate=1536.0kbits/s    ^M
 video:0kB audio:1368kB global headers:0kB muxing overhead 0.003141%
 }}}
 out2.wav contains 7 seconds of stereo sound, mplayer -ac ffaac -channels 6
 -sb 180000 stereo51.aac plays four (more) seconds of 5.1 sound.

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/200#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list