DTS-HD passthru not working

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
xokia
Posts: 15
Joined: Wed Dec 23, 2020 9:50 pm

DTS-HD passthru not working

Post by xokia »

Description of problem or question:
Trying to pass DTS-HD
If I play the direct mkv rip using kodi DTS-HD plays using a 2nd gen Fire TV

If I encode using handbrake and choose DTS-HD passthrough both audio selections show up as 5.1 audio instead of 7.1 in kodi.



Steps to reproduce the problem (If Applicable):
I select DTS-HD passthrough for the first audio selection
I select AC3 5.1 for the second audio selection




HandBrake version (e.g., 1.0.0):
1.3.3(20020061300)



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
windows 10 professional 64 bit



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 16268 MB, 
GPU Information:
  NVIDIA GeForce GTX 650 - 26.21.14.3200
  Intel(R) HD Graphics 4600 - 20.19.15.4531
Screen: 3840x2160
Temp Dir: C:\Users\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[11:28:19] base preset: Amazon Fire 2160p60 4K HEVC Surround (Modified)
[23:28:19] hb_init: starting libhb thread
[23:28:19] Starting work at: Tue Dec 22 23:28:19 2020
[23:28:19] 1 job(s) to process
[23:28:19] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "ac3",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 7.1",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 640,
        "DRC": 0.0,
        "Encoder": "ac3",
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "K:\\movie\\1917.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "278",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "278",
          "height": "1604",
          "width": "3840"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 20
    },
    "Title": 1,
    "Path": "E:\\video_stream\\1917.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[23:28:19] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[23:28:19]  - Intel microarchitecture Haswell
[23:28:19]  - logical processor count: 8
[23:28:19] Intel Quick Sync Video support: yes
[23:28:19]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[23:28:19]  - H.264 encoder: yes
[23:28:19]     - preferred implementation: hardware (any) via D3D11
[23:28:19]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[23:28:19]  - H.265 encoder: no
[23:28:19] hb_scan: path=E:\video_stream\1917.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\video_stream\1917.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\video_stream\1917.mkv\) failed
[23:28:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[23:28:19] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\video_stream\1917.mkv':
  Metadata:
    title           : 1917
    encoder         : libmakemkv v1.15.4 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2020-12-18T02:36:53.000000Z
  Duration: 01:58:59.49, start: 0.000000, bitrate: 81658 kb/s
    Chapter #0:0: start 0.000000, end 300.341708
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 300.341708, end 500.291458
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 500.291458, end 807.515042
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 807.515042, end 999.581917
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 999.581917, end 1413.870792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1413.870792, end 1829.744583
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1829.744583, end 2135.424958
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2135.424958, end 2546.585708
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2546.585708, end 3094.841750
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3094.841750, end 3397.644250
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3397.644250, end 3749.829417
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3749.829417, end 3994.281958
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 3994.281958, end 4325.237583
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4325.237583, end 4785.947833
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 4785.947833, end 5328.531542
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5328.531542, end 5624.785833
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 5624.785833, end 5892.595042
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 5892.595042, end 6105.015583
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 6105.015583, end 6587.872958
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 6587.872958, end 7139.488000
    Metadata:
      title           : Chapter 20
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 77387579
      DURATION-eng    : 01:58:59.465666666
      NUMBER_OF_FRAMES-eng: 171176
      NUMBER_OF_BYTES-eng: 69063239469
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-18 02:36:53
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 3809685
      DURATION-eng    : 01:58:59.465833333
      NUMBER_OF_FRAMES-eng: 8567359
      NUMBER_OF_BYTES-eng: 3399889926
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-18 02:36:53
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 01:58:59.488000000
      NUMBER_OF_FRAMES-eng: 223109
      NUMBER_OF_BYTES-eng: 399811328
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-18 02:36:53
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[23:28:19] scan: decoding previews for title 1
[23:28:19] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[23:28:19] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[23:28:24] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 278/278/0/0, aspect 16:9, PAR 1:1
[23:28:24] scan: supported video decoders: avcodec qsv
[23:28:24] libhb: scan thread found 1 valid title(s)
[23:28:24] Skipping subtitle scan.  No suitable subtitle tracks.
[23:28:24] Starting Task: Encoding Pass
[23:28:24] work: mixdown not specified, track 1 setting mixdown 5.1 Channels
[23:28:24] work: bitrate not specified, track 1 setting bitrate 640 Kbps
[23:28:24] job configuration:
[23:28:24]  * source
[23:28:24]    + E:\video_stream\1917.mkv
[23:28:24]    + title 1, chapter(s) 1 to 20
[23:28:24]    + container: matroska,webm
[23:28:24]    + data rate: 81658 kbps
[23:28:24]  * destination
[23:28:24]    + K:\movie\1917.m4v
[23:28:24]    + container: MPEG-4 (libavformat)
[23:28:24]      + chapter markers
[23:28:24]  * video track
[23:28:24]    + decoder: hevc
[23:28:24]    + filters
[23:28:24]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[23:28:24]      + Decomb (mode=39)
[23:28:24]      + Framerate Shaper (mode=2:rate=27000000/450000)
[23:28:24]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[23:28:24]      + Crop and Scale (width=3840:height=1604:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0)
[23:28:24]        + source: 3840 * 2160, crop (278/278/0/0): 3840 * 1604, scale: 3840 * 1604
[23:28:24]    + Output geometry
[23:28:24]      + storage dimensions: 3840 x 1604
[23:28:24]      + pixel aspect ratio: 1 : 1
[23:28:24]      + display dimensions: 3840 x 1604
[23:28:24]    + encoder: H.265 10-bit (libx265)
[23:28:24]      + preset:  fast
[23:28:24]      + profile: auto
[23:28:24]      + level:   auto
[23:28:24]      + quality: 22.00 (RF)
[23:28:24]      + color profile: 9-16-9
[23:28:24]  * audio track 1
[23:28:24]    + name: Surround 7.1
[23:28:24]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[23:28:24]      + samplerate: 48000 Hz
[23:28:24]    + mixdown: 5.1 Channels
[23:28:24]    + dither: none
[23:28:24]    + encoder: AC3 (libavcodec)
[23:28:24]      + bitrate: 640 kbps, samplerate: 48000 Hz
[23:28:24]  * audio track 2
[23:28:24]    + name: Surround 5.1
[23:28:24]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 2, id 0x2)
[23:28:24]      + bitrate: 448 kbps, samplerate: 48000 Hz
[23:28:24]    + mixdown: 5.1 Channels
[23:28:24]    + dither: none
[23:28:24]    + encoder: AC3 (libavcodec)
[23:28:24]      + bitrate: 640 kbps, samplerate: 48000 Hz
[23:28:24] sync: expecting 171176 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-5 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(26 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=8 deblock sao
[23:28:24] sync: first pts audio 0x1 is 0
[23:28:24] sync: first pts audio 0x2 is 0
[23:28:25] sync: first pts video is 0
[23:28:25] sync: "Chapter 1" (1) at frame 1 time 0
[23:54:32] sync: "Chapter 2" (2) at frame 7202 time 27030753
[00:09:25] sync: "Chapter 3" (3) at frame 11999 time 45037492
[00:39:41] sync: "Chapter 4" (4) at frame 19365 time 72687615
[00:56:01] sync: "Chapter 5" (5) at frame 23967 time 89962372
[01:32:32] sync: "Chapter 6" (6) at frame 33900 time 127248371
[02:08:43] sync: "Chapter 7" (7) at frame 43871 time 164677012
[02:33:25] sync: "Chapter 8" (8) at frame 51200 time 192188246
[03:10:15] sync: "Chapter 9" (9) at frame 61058 time 229192713
[03:55:50] sync: "Chapter 10" (10) at frame 74203 time 278535757
[04:22:00] sync: "Chapter 11" (11) at frame 81466 time 305799243
[04:51:31] sync: "Chapter 12" (12) at frame 89910 time 337495908
[05:11:07] sync: "Chapter 13" (13) at frame 95768 time 359485376
[05:39:47] sync: "Chapter 14" (14) at frame 103703 time 389271382
[06:19:10] sync: "Chapter 15" (15) at frame 114749 time 430735305
[07:11:24] sync: "Chapter 16" (16) at frame 127758 time 479567838
[07:38:13] sync: "Chapter 17" (17) at frame 134861 time 506230725
[08:02:53] sync: "Chapter 18" (18) at frame 141285 time 530344815
[08:18:17] sync: "Chapter 19" (19) at frame 146375 time 549451402
[08:56:40] sync: "Chapter 20" (20) at frame 157952 time 592908566
[09:26:20] reader: done. 1 scr changes
[09:26:34] work: average encoding speed for job is 4.769994 fps
[09:26:34] comb detect: heavy 15074 | light 17219 | uncombed 138883 | total 171176
[09:26:34] decomb: deinterlaced 15074 | blended 17219 | unfiltered 138883 | total 171176
[09:26:34] vfr: 171176 frames output, 0 dropped and 0 duped for CFR/PFR
[09:26:34] vfr: lost time: 0 (0 frames)
[09:26:34] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:26:34] truehd-decoder done: 8567359 frames, 0 decoder errors
[09:26:34] ac3-decoder done: 223109 frames, 0 decoder errors
[09:26:34] hevc-decoder done: 171176 frames, 0 decoder errors
[09:26:34] sync: got 171176 frames, 171176 expected
[09:26:34] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:    786, Avg QP:20.83  kb/s: 26922.55
x265 [info]: frame P:  33619, Avg QP:22.19  kb/s: 11865.24
x265 [info]: frame B: 136771, Avg QP:26.95  kb/s: 2693.87
x265 [info]: Weighted P-Frames: Y:9.4% UV:7.3%
x265 [info]: consecutive B-frames: 0.5% 0.1% 0.1% 0.2% 99.2%
encoded 171176 frames in 35889.90s (4.77 fps), 4606.38 kb/s, Avg QP:25.99
[09:26:34] mux: track 0, 171176 frames, 4111571532 bytes, 4607.12 kbps, fifo 2048
[09:26:34] mux: track 1, 223108 frames, 571156480 bytes, 640.00 kbps, fifo 2048
[09:26:34] mux: track 2, 223109 frames, 571159040 bytes, 640.00 kbps, fifo 2048
[09:26:34] Finished work at: Wed Dec 23 09:26:34 2020
[09:26:34] libhb: work result = 0

# Encode Completed ...
User avatar
Rodeo
HandBrake Team
Posts: 12679
Joined: Tue Mar 03, 2009 8:55 pm

Re: DTS-HD passthru not working

Post by Rodeo »

Your source audio TrueHD. You cannot pass DTS-HD through since there is no DTS-HD in the input to begin with.
xokia
Posts: 15
Joined: Wed Dec 23, 2020 9:50 pm

Re: DTS-HD passthru not working

Post by xokia »

Rodeo wrote: Wed Dec 23, 2020 11:34 pm Your source audio TrueHD. You cannot pass DTS-HD through since there is no DTS-HD in the input to begin with.
hmmm....my Marantz head unit is processing that as DTS-HD if I play the MKV directly.

How do I get the TrueHD signal to pass through? That signal is going from 7.1 to 5.1 after handbrake
xokia
Posts: 15
Joined: Wed Dec 23, 2020 9:50 pm

Re: DTS-HD passthru not working

Post by xokia »

looking at the documentation here https://handbrake.fr/docs/en/latest/tec ... odecs.html

TrueHD is supposed to be a passthru option but it does not appear in the drop down list under codec.
User avatar
Rodeo
HandBrake Team
Posts: 12679
Joined: Tue Mar 03, 2009 8:55 pm

Re: DTS-HD passthru not working

Post by Rodeo »

You cannot put TrueHD audio in an MP4 container, so TrueHD Passthru is only available for MKV output.
xokia
Posts: 15
Joined: Wed Dec 23, 2020 9:50 pm

Re: DTS-HD passthru not working

Post by xokia »

Rodeo wrote: Wed Dec 23, 2020 11:53 pm You cannot put TrueHD audio in an MP4 container, so TrueHD Passthru is only available for MKV output.
ok good to know thank you I will re-encode. Is that true for some of the higher audio formats as well? If so I will just encode by default as mkv
xokia
Posts: 15
Joined: Wed Dec 23, 2020 9:50 pm

Re: DTS-HD passthru not working

Post by xokia »

its actually a m4v container but I assume same rule applies?
Woodstock
Veteran User
Posts: 3946
Joined: Tue Aug 27, 2013 6:39 am

Re: DTS-HD passthru not working

Post by Woodstock »

An M4V file is an MP4 file with its extension changed. The format is identical. Apple used to enable certain format extensions only when the extension was M4V, but that's history now.
Post Reply