[FFmpeg-trac] #3723(undetermined:new): aac copy issue with -bsf:a aac_adtstoasc when container is not flv, m4a, mov or mp4

FFmpeg trac at avcodec.org
Tue Jun 17 17:40:53 CEST 2014


#3723: aac copy issue with -bsf:a aac_adtstoasc when container is not flv, m4a,
mov or mp4
-------------------------------------+-------------------------------------
             Reporter:  feelart      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 When copying an aac from one container to another with the -bsf:a
 aac_adtstoasc Bitstream Filters, then ouput is malformed and can not be
 read of just for about 2 seconds.

 Ref: https://www.ffmpeg.org/ffmpeg-bitstream-
 filters.html#aac_005fadtstoasc

 How to reproduce:
 {{{
 ffmpeg -i aac_test.aac -c:a copy -bsf:a aac_adtstoasc aac_try_with_bsf.avi
 }}}
 An ouput is created, but can not be played.

 Instead of avi, also try with aac, ac3, dts, wav, wmv and see the issue.

 P.S. Maybe linked with
 https://trac.ffmpeg.org/ticket/3715
 https://trac.ffmpeg.org/ticket/3658


 {{{

 E:\_PS\dbtest\mm_audio_codec>ffmpeg -i aac_test.aac -c:a copy -bsf:a
 aac_adtstoasc aac_try_with_bsf.aac
 ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fo
 ntconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
 --enable-libbluray --enable-libcaca --ena
 ble-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-
 libmodplug --enable-libmp3lame --enable
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-lib
 schroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enab
 le-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp -
 -enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.101 / 55. 66.101
   libavformat    55. 43.100 / 55. 43.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  8.100 /  4.  8.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 [aac @ 0000000002c984a0] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, aac, from 'aac_test.aac':
   Duration: 00:00:14.72, bitrate: 124 kb/s
     Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 124 kb/s
 Output #0, adts, to 'aac_try_with_bsf.aac':
   Metadata:
     encoder         : Lavf55.43.100
     Stream #0:0: Audio: aac, 44100 Hz, stereo, 124 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     219kB time=00:00:14.02 bitrate= 128.1kbits/s
 video:0kB audio:219kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000000%

 E:\_PS\dbtest\mm_audio_codec>
 }}}

 Now, ffmpeg -i on output:

 {{{

 E:\_PS\dbtest\mm_audio_codec>ffmpeg -i aac_try_with_bsf.aac
 ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fo
 ntconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
 --enable-libbluray --enable-libcaca --ena
 ble-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-
 libmodplug --enable-libmp3lame --enable
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-lib
 schroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enab
 le-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp -
 -enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.101 / 55. 66.101
   libavformat    55. 43.100 / 55. 43.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  8.100 /  4.  8.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 [aac @ 0000000000310280] Format aac detected only with low score of 1,
 misdetection possible!
 [aac @ 00000000051504e0] channel element 1.0 is not allocated
 [aac @ 00000000051504e0] More than one AAC RDB per ADTS frame is not
 implemented. Update your FFmpeg version to t
 he newest one from Git. If the problem still occurs, it means that your
 file has a feature which has not been imp
 lemented.
 [aac @ 00000000051504e0] Number of bands (12) exceeds limit (9).
 [aac @ 00000000051504e0] channel element 2.14 is not allocated
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] channel element 3.13 is not allocated
 [aac @ 00000000051504e0] Input buffer exhausted before END element found
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] channel element 3.2 is not allocated
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] channel element 1.9 is not allocated
 [aac @ 00000000051504e0] channel element 2.5 is not allocated
 [aac @ 00000000051504e0] channel element 2.6 is not allocated
 [aac @ 00000000051504e0] Number of bands (22) exceeds limit (21).
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] channel element 2.13 is not allocated
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] channel element 2.2 is not allocated
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] Number of bands (9) exceeds limit (4).
 [aac @ 00000000051504e0] channel element 2.0 is not allocated
 [aac @ 00000000051504e0] channel element 2.2 is not allocated
 [aac @ 00000000051504e0] channel element 3.1 is not allocated
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Prediction is not allowed in AAC-LC.
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] SBR was found before the first channel element.
 [aac @ 00000000051504e0] channel element 3.10 is not allocated
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] channel element 2.11 is not allocated
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] channel element 2.1 is not allocated
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] channel element 2.1 is not allocated
 [aac @ 00000000051504e0] invalid band type
 [aac @ 00000000051504e0] SBR was found before the first channel element.
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] channel element 3.9 is not allocated
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 00000000051504e0] decode_pce: Input buffer exhausted before END
 element found
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Dependent coupling is not supported together with
 LTP
     Last message repeated 31 times
 [aac @ 00000000051504e0] Sample rate index in program config element does
 not match the sample rate index configu
 red by the container.
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Inconsistent channel configuration.
 [aac @ 00000000051504e0] get_buffer() failed
 [aac @ 00000000051504e0] Assuming an incorrectly encoded 7.1 channel
 layout instead of a spec-compliant 7.1(wide)
  layout, use -strict 1 to decode according to the specification instead.
 [aac @ 00000000051504e0] channel element 2.4 is not allocated
 [aac @ 00000000051504e0] channel element 3.15 is not allocated
 [aac @ 00000000051504e0] Reserved bit set.
 [aac @ 0000000000310280] decoding for stream 0 failed
 [aac @ 0000000000310280] Estimating duration from bitrate, this may be
 inaccurate
 [aac @ 0000000000310280] Could not find codec parameters for stream 0
 (Audio: aac, stereo, fltp, 1109 kb/s): unsp
 ecified sample rate
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 aac_try_with_bsf.aac: could not find codec parameters

 E:\_PS\dbtest\mm_audio_codec>
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3723>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list