Opened 2 years ago

Last modified 2 years ago

#5039 new defect

Incorrect TrueHD decoding

Reported by: cehoyos Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: thd
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/203994
A user uploaded a TrueHD sample that is supposed to only contain 0xFFFFFF but the two first channels of the output file always contain 0x01 or 0x02.

$ ffmpeg -i warnings_cut.thd -acodec pcm_s24le out.wav
ffmpeg version N-76844-g3885ef0 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.100 / 57. 16.100
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, truehd, from 'warnings_cut.thd':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: truehd, 48000 Hz, 7.1, s32 (24 bit)
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf57.19.100
    Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s32 (24 bit), 9216 kb/s
    Metadata:
      encoder         : Lavc57.16.100 pcm_s24le
Stream mapping:
  Stream #0:0 -> #0:0 (truehd (native) -> pcm_s24le (native))
Press [q] to stop, [?] for help
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 05.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 08.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0b.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 08.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0f.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 08.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0f.

...

...

[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0c.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 09.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0e.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0f.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 04.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 03.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0a.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 01.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 02.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 0a.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 09.
[truehd @ 0x2d32460] Lossless check failed - expected 00, calculated 05.
size=   56934kB time=00:00:50.60 bitrate=9216.0kbits/s
video:0kB audio:56933kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000175%

Attachments (1)

warnings_cut.thd (2.4 MB) - added by cehoyos 2 years ago.

Change History (2)

Changed 2 years ago by cehoyos

comment:1 Changed 2 years ago by marcusj0015

I'm actually the author of that post, and decided to post here as well.

Should I delete the post I just made for this bug?

and is there any way to subscribe to this ticket?

Last edited 2 years ago by marcusj0015 (previous) (diff)
Note: See TracTickets for help on using tickets.