Opened 4 years ago

Last modified 7 months 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 4 years ago.

Change History (3)

Changed 4 years ago by cehoyos

comment:1 Changed 4 years ago by marcusj0015

I'm actually the author of that post, and decide 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?

Version 0, edited 4 years ago by marcusj0015 (next)

comment:2 Changed 7 months ago by Sami32

Similar issue here i guess.
So in case it could be of some help, here a user report log extract and sample:

DEBUG 2018-11-20 15:31:12.147 [ffmpeg-16-2] [truehd @ 0x7f86348bdc00] Lossless check failed - expected 00, calculated e4.
DEBUG 2018-11-20 15:31:12.528 [ffmpeg-16-2] size=    5544kB time=00:01:01.08 bitrate= 743.5kbits/s speed=30.5x    
TRACE 2018-11-20 15:31:12.533 [ffmpeg-16-Timer] buffered: 5,691,700 bytes / inputs: 0
DEBUG 2018-11-20 15:31:12.799 [ffmpeg-16-2] [truehd @ 0x7f86348bdc00] End of stream indicated.
DEBUG 2018-11-20 15:31:12.799 [ffmpeg-16-2] [truehd @ 0x7f86348bdc00] Lossless check failed - expected b5, calculated 6a.
DEBUG 2018-11-20 15:31:13.028 [ffmpeg-16-2] size=    6932kB time=00:01:16.37 bitrate= 743.5kbits/s speed=30.6x

Sample used by this user: (audio track n° )
https://katcr.co/torrent/627042/incredibles-2-2018-2160p-uhd-bluray-x265-10bit-hdr-truehd-7-1-atmos-iamable.html#

Note: See TracTickets for help on using tickets.