[FFmpeg-trac] #8428(undetermined:new): ffmpeg has problems with some AC-3/EAC-3 files with "syncword" 0x770b

FFmpeg trac at avcodec.org
Fri Feb 21 18:10:59 EET 2020


#8428: ffmpeg has problems with some AC-3/EAC-3 files with "syncword" 0x770b
-------------------------------------+-------------------------------------
             Reporter:  zhidd        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by zhidd):

 new link.
 [https://drive.google.com/open?id=1HexUOq2idHPXY2tIFyMvtBnltMrHgbkM
 uncommon_ac3_that_ffmpeg_cant_handle]

 dolby_digital_file_with_header.ac3 decodes well but it decodes too fast.
 strangely_encoded_ac3_file.ac3 also decodes well until about 2 seconds
 with literally the same error and the same wrong header info AGAIN.

 ffmpeg report(for strangely_encoded_ac3_file.ac3 only, file used to have
 demo.ac3 name, sorry about that):
 {{{
 H:\ffmpeg\bin>ffmpeg.exe -i
 H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\demo.ac3
 ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 41.100 / 56. 41.100
   libavcodec     58. 70.100 / 58. 70.100
   libavformat    58. 38.101 / 58. 38.101
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 76.100 /  7. 76.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 [ac3 @ 000001efb31a8c00] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, ac3, from
 'H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\demo.ac3':
   Duration: 00:02:51.78, start: 0.000000, bitrate: 112 kb/s
     Stream #0:0: Audio: eac3, 44100 Hz, 2.1, fltp, 112 kb/s
 At least one output file must be specified

 H:\ffmpeg\bin>ffmpeg.exe -i
 H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\demo.ac3
 H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\ac3_file_that_sorta_fails_to_decode.wav
 ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 41.100 / 56. 41.100
   libavcodec     58. 70.100 / 58. 70.100
   libavformat    58. 38.101 / 58. 38.101
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 76.100 /  7. 76.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 [ac3 @ 0000022baf7f8f00] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, ac3, from
 'H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\demo.ac3':
   Duration: 00:02:51.78, start: 0.000000, bitrate: 112 kb/s
     Stream #0:0: Audio: eac3, 44100 Hz, 2.1, fltp, 112 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (eac3 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [eac3 @ 0000022baf806b00] Multiple frames in a packet.
 [eac3 @ 0000022baf806b00] incomplete frame
 H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\demo.ac3: corrupt
 decoded frame in stream 0
 Output #0, wav, to
 'H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\ac3_file_that_sorta_fails_to_decode.wav':
   Metadata:
     ISFT            : Lavf58.38.101
     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
 5.1(side), s16, 4608 kb/s
     Metadata:
       encoder         : Lavc58.70.100 pcm_s16le
 [eac3 @ 0000022baf806b00] new coupling strategy must be present in block 0
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] new snr offsets must be present in block 0
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] new coupling strategy must be present in block 0
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] new coupling strategy must be present in block 0
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] invalid coupling range (12 >= 11)
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] expacc 125 is out-of-range
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 [eac3 @ 0000022baf806b00] exponent -2 is out-of-range
 [eac3 @ 0000022baf806b00] error decoding the audio block
 Error while decoding stream #0:0: Error number -16976906 occurred
 size=    1296kB time=00:00:02.30 bitrate=4608.4kbits/s speed=21.1x
 video:0kB audio:1296kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.007686%
 }}}

 ffplay report:
 {{{
 H:\ffmpeg\bin>ffplay.exe -i
 H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\strangely_encoded_ac3_file.ac3
 ffplay version git-2020-02-16-8578433 Copyright (c) 2003-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 41.100 / 56. 41.100
   libavcodec     58. 70.100 / 58. 70.100
   libavformat    58. 38.101 / 58. 38.101
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 76.100 /  7. 76.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 [ac3 @ 00000271ee5a6f80] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, ac3, from
 'H:\pcsx2-v1.5.0-dev-3358-g6ef0e9452-windows-x86\logs\strangely_encoded_ac3_file.ac3':
   Duration: 00:02:51.78, start: 0.000000, bitrate: 112 kb/s
     Stream #0:0: Audio: eac3, 44100 Hz, 2.1, fltp, 112 kb/s
 SDL_OpenAudio (3 channels, 44100 Hz): Unsupported number of audio
 channels.
 [eac3 @ 00000271ee5b6c80] Multiple frames in a packet.
 [eac3 @ 00000271ee5b6c80] incomplete frame    0KB sq=    0B f=0/0
 [eac3 @ 00000271ee5b6c80] new coupling strategy must be present in block 0
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
 [eac3 @ 00000271ee5b6c80] new snr offsets must be present in block 0
 [eac3 @ 00000271ee5b6c80] error decoding the audio block 0B f=0/0
 [eac3 @ 00000271ee5b6c80] new coupling strategy must be present in block 0
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
 [eac3 @ 00000271ee5b6c80] new coupling strategy must be present in block 0
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
 [eac3 @ 00000271ee5b6c80] invalid coupling range (12 >= 11)
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
 [eac3 @ 00000271ee5b6c80] expacc 125 is out-of-range
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
 [eac3 @ 00000271ee5b6c80] exponent -2 is out-of-range    0B f=0/0
 [eac3 @ 00000271ee5b6c80] error decoding the audio block
    2.23 M-A:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8428#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list