HB Changes DolbyVision Profile and Duplicates SMPTE info

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

Description of problem or question:
When encoding a DolbyVision file (sourced from output from MakeMKV, the DolbyVision profile changes and the HDR SMPTE info is duplicated.
Examples (MediaInfo)

MakeMkv output file:
HDR format : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible

Handbrake H265 10-bit VS v1.7.3 output file from MakeMKV source:
HDR format : Dolby Vision, Version 1.0, Profile 8.1, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible

The Handbrake output is not recognized as Dolby Vision on my media players. The MakeMKV files play just fine. So far, to retain DolbyVision playback, I have to skip Handbrake and just use the MakeMKV output - this doubles or triples the storage space required.

Steps to reproduce the problem (If Applicable):
Encode a MakeMKV output file with Dolby Vision using Handbrake H265 10-bit with PassThru metadata, Encoder Tune = None; Encoder Profile and Encoder Level = Auto

HandBrake version (e.g., 1.0.0):
1.7.3 (1.7.1 does the same thing).

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Edition: Windows 11 Pro
Version: 23H2
OS build: 22631.3296

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

Code: Select all

HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.22631.0
CPU: AMD Ryzen 9 5950X 16-Core Processor            
Ram: 32676 MB, 
GPU Information:
  NVIDIA GeForce RTX 3080 Ti - 31.0.15.3742
Screen: 3440x1440
Temp Dir: C:\Users\wylie\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\wylie\AppData\Roaming\HandBrake
 
-------------------------------------------
 
 # Starting Encode ...
 
[11:58:31] base preset: H265-BD-18Sr-NO (Modified)
[11:58:31] Remote Process started with Process ID: 35784 using port: 8037. Max Allowed Instances: 1
[11:58:31] Worker: Starting HandBrake Engine ...
[11:58:31] Worker: Parent Process Id 27460
[11:58:31] Worker: Starting Web Server on port 8037 ...
[11:58:31] Worker: Starting Listener: 1
[11:58:31] Worker: Server Started
[11:58:31] Worker: Disconnected worker monitoring enabled!
[11:58:31] Compile-time hardening features are enabled
[11:58:31] nvenc: version 12.1 is available
[11:58:31] nvdec: is available
[11:58:32] CUDA Version: 8.6
[11:58:32] vcn: not available on this system
[11:58:32] qsv: not available on this system
[11:58:32] hb_init: starting libhb thread
[11:58:32] Starting work at: Sat Mar 23 11:58:32 2024
[11:58:32] 1 job(s) to process
[11:58:32] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:truehd",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 7.1",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:mp3",
      "copy:truehd",
      "copy:flac",
      "copy:eac3"
    ],
    "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"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      },
      {
        "Name": "Chapter 34"
      },
      {
        "Name": "Chapter 35"
      },
      {
        "Name": "Chapter 36"
      },
      {
        "Name": "Chapter 37"
      },
      {
        "Name": "Chapter 38"
      },
      {
        "Name": "Chapter 39"
      },
      {
        "Name": "Chapter 40"
      },
      {
        "Name": "Chapter 41"
      },
      {
        "Name": "Chapter 42"
      },
      {
        "Name": "Chapter 43"
      },
      {
        "Name": "Chapter 44"
      },
      {
        "Name": "Chapter 45"
      },
      {
        "Name": "Chapter 46"
      },
      {
        "Name": "Chapter 47"
      },
      {
        "Name": "Chapter 48"
      },
      {
        "Name": "Chapter 49"
      },
      {
        "Name": "Chapter 50"
      },
      {
        "Name": "Chapter 51"
      },
      {
        "Name": "Chapter 52"
      },
      {
        "Name": "Chapter 53"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "I:\\BD-DVD_Process_I-SSD\\8 - Transfer\\ABYSS_THE_4K_SE_18F-NO_Ch1-2.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 19,
        "Settings": {
          "crop-bottom": "278",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "278",
          "height": "1604",
          "width": "3840"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Name": "THE ABYSS"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 2
    },
    "Title": 1,
    "Path": "F:\\F-BD_Rips\\4K_ISO\\ABYSS_THE_4K_SE_Sbt1FO.mkv",
    "HWDecode": 4
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 18,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[11:58:32] CPU: AMD Ryzen 9 5950X 16-Core Processor
[11:58:32]  - logical processor count: 32
[11:58:32] Intel Quick Sync Video support: no
[11:58:32] hb_scan: path=F:\F-BD_Rips\4K_ISO\ABYSS_THE_4K_SE_Sbt1FO.mkv, title_index=1
Input #0, matroska,webm, from 'F:\F-BD_Rips\4K_ISO\ABYSS_THE_4K_SE_Sbt1FO.mkv':
  Metadata:
    title           : THE ABYSS
    encoder         : libmakemkv v1.17.4 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2024-03-19T02:45:09.000000Z
  Duration: 02:51:01.29, start: 0.000000, bitrate: 47228 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 58.099708
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 58.099708, end 315.064750
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 315.064750, end 430.221458
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 430.221458, end 641.474167
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 641.474167, end 741.949542
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 741.949542, end 907.072833
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 907.072833, end 1023.397375
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1023.397375, end 1184.099583
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 1184.099583, end 1308.640667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 1308.640667, end 1459.374583
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 1459.374583, end 1587.586000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 1587.586000, end 1699.280917
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 1699.280917, end 2032.864167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 2032.864167, end 2277.358417
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 2277.358417, end 2592.798542
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 2592.798542, end 2758.130375
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 2758.130375, end 2898.145250
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 2898.145250, end 3084.372958
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 3084.372958, end 3342.339000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 3342.339000, end 3529.817958
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 3529.817958, end 3674.003667
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 3674.003667, end 3883.296083
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 3883.296083, end 3958.621333
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 3958.621333, end 4067.730333
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 4067.730333, end 4331.243583
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 4331.243583, end 4541.954083
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 4541.954083, end 4659.613292
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 4659.613292, end 4762.174083
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 4762.174083, end 4985.730750
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 4985.730750, end 5091.044292
      Metadata:
        title           : Chapter 30
    Chapter #0:30: start 5091.044292, end 5433.636542
      Metadata:
        title           : Chapter 31
    Chapter #0:31: start 5433.636542, end 5581.867958
      Metadata:
        title           : Chapter 32
    Chapter #0:32: start 5581.867958, end 5726.721000
      Metadata:
        title           : Chapter 33
    Chapter #0:33: start 5726.721000, end 5942.895292
      Metadata:
        title           : Chapter 34
    Chapter #0:34: start 5942.895292, end 6092.169417
      Metadata:
        title           : Chapter 35
    Chapter #0:35: start 6092.169417, end 6417.869792
      Metadata:
        title           : Chapter 36
    Chapter #0:36: start 6417.869792, end 6588.331750
      Metadata:
        title           : Chapter 37
    Chapter #0:37: start 6588.331750, end 6859.894708
      Metadata:
        title           : Chapter 38
    Chapter #0:38: start 6859.894708, end 7246.989750
      Metadata:
        title           : Chapter 39
    Chapter #0:39: start 7246.989750, end 7634.585292
      Metadata:
        title           : Chapter 40
    Chapter #0:40: start 7634.585292, end 7884.418208
      Metadata:
        title           : Chapter 41
    Chapter #0:41: start 7884.418208, end 8206.448250
      Metadata:
        title           : Chapter 42
    Chapter #0:42: start 8206.448250, end 8401.976917
      Metadata:
        title           : Chapter 43
    Chapter #0:43: start 8401.976917, end 8652.352042
      Metadata:
        title           : Chapter 44
    Chapter #0:44: start 8652.352042, end 8952.443500
      Metadata:
        title           : Chapter 45
    Chapter #0:45: start 8952.443500, end 9137.878750
      Metadata:
        title           : Chapter 46
    Chapter #0:46: start 9137.878750, end 9264.129875
      Metadata:
        title           : Chapter 47
    Chapter #0:47: start 9264.129875, end 9364.688667
      Metadata:
        title           : Chapter 48
    Chapter #0:48: start 9364.688667, end 9394.259875
      Metadata:
        title           : Chapter 49
    Chapter #0:49: start 9394.259875, end 9516.131625
      Metadata:
        title           : Chapter 50
    Chapter #0:50: start 9516.131625, end 9672.746417
      Metadata:
        title           : Chapter 51
    Chapter #0:51: start 9672.746417, end 9802.501042
      Metadata:
        title           : Chapter 52
    Chapter #0:52: start 9802.501042, end 10261.292708
      Metadata:
        title           : Chapter 53
  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
    Metadata:
      BPS-eng         : 43097853
      DURATION-eng    : 02:51:01.292708333
      NUMBER_OF_FRAMES-eng: 246025
      NUMBER_OF_BYTES-eng: 55279957560
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-03-19 02:45:09
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      DOVI configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
  Stream #0:1(eng): Audio: truehd (Dolby TrueHD + Dolby Atmos), 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4118018
      DURATION-eng    : 02:51:01.294166666
      NUMBER_OF_FRAMES-eng: 12313553
      NUMBER_OF_BYTES-eng: 5282024858
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2024-03-19 02:45:09
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[11:58:32] scan: decoding previews for title 1
[11:58:32] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (Dolby TrueHD + Dolby Atmos, 7.1 ch)
[11:58:32] using container PAR 1:1
[11:58:32] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 278/278/0/0, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: topleft
[11:58:32] scan: mastering display metadata: r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.000100, max_luminance=1000.000000
[11:58:32] scan: content light level: max_cll=783, max_fall=59
[11:58:32] scan: dolby vision configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
[11:58:32] scan: supported video decoders: avcodec hwaccel
[11:58:32] libhb: scan thread found 1 valid title(s)
[11:58:32] Skipping subtitle scan.  No suitable subtitle tracks.
[11:58:32] Starting Task: Encoding Pass
[11:58:32] job configuration:
[11:58:32]  * source
[11:58:32]    + F:\F-BD_Rips\4K_ISO\ABYSS_THE_4K_SE_Sbt1FO.mkv
[11:58:32]    + title 1, chapter(s) 1 to 2
[11:58:32]    + container: matroska,webm
[11:58:32]    + data rate: 47228 kbps
[11:58:32]  * destination
[11:58:32]    + I:\BD-DVD_Process_I-SSD\8 - Transfer\ABYSS_THE_4K_SE_18F-NO_Ch1-2.mkv
[11:58:32]    + container: Matroska (libavformat)
[11:58:32]      + chapter markers
[11:58:32]  * video track
[11:58:32]    + decoder: hevc 10-bit (yuv420p10le)
[11:58:32]    + filters
[11:58:32]      + Framerate Shaper (mode=1)
[11:58:32]        + frame rate: 23.976 fps -> constant 23.976 fps
[11:58:32]      + Crop and Scale (width=3840:height=1604:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0)
[11:58:32]        + source: 3840 * 2160, crop (278/278/0/0): 3840 * 1604, scale: 3840 * 1604
[11:58:32]      + RPU converter (mode=3:scale-factor-x=1.000000:scale-factor-y=1.000000:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0:pad-top=0:pad-bottom=0:pad-left=0:pad-right=0)
[11:58:32]    + Output geometry
[11:58:32]      + storage dimensions: 3840 x 1604
[11:58:32]      + pixel aspect ratio: 1 : 1
[11:58:32]      + display dimensions: 3840 x 1604
[11:58:32]    + encoder: H.265 10-bit (libx265)
[11:58:32]      + preset:  fast
[11:58:32]      + profile: auto
[11:58:32]      + level:   auto
[11:58:32]      + quality: 18.00 (RF)
[11:58:32]      + color profile: 9-16-9
[11:58:32]      + chroma location: topleft
[11:58:32]      + mastering display metadata: r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.000100, max_luminance=1000.000000
[11:58:32]      + content light level: max_cll=783, max_fall=59
[11:58:32]      + dolby vision configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
[11:58:32]  * audio track 1
[11:58:32]    + name: Surround 7.1
[11:58:32]    + decoder: English (Dolby TrueHD + Dolby Atmos, 7.1 ch) (track 1, id 0x1)
[11:58:32]      + samplerate: 48000 Hz
[11:58:32]    + TrueHD Passthru
[11:58:32] sync: expecting 7553 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Windows][GCC 13.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: Turning on repeat-headers for HDR compatibility
x265 [info]: Main 10 profile, Level-5.1 (Main tier)
x265 [info]: Thread pool created using 32 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 5 / 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-18.0 / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init    : 25600 / 25600 / 0.900
x265 [info]: tools: rd=2 psy-rd=2.00 rskip mode=1 signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=8 deblock sao
[11:58:32] sync: first pts audio 0x1 is 0
[11:58:33] sync: first pts video is 0
[11:58:33] sync: "Chapter 1" (1) at frame 1 time 0
[11:59:10] sync: "Chapter 2" (2) at frame 1394 time 5228973
[12:03:13] reader: end of chapter 2 (media 2) reached at media chapter 3
[12:03:13] reader: done. 1 scr changes
[12:03:15] sync: "Chapter 3" (3) at frame 7555 time 28355827
[12:03:19] work: average encoding speed for job is 26.652857 fps
[12:03:19] vfr: 7555 frames output, 0 dropped and 0 duped for CFR/PFR
[12:03:19] vfr: lost time: 0 (0 frames)
[12:03:19] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:03:20] truehd-decoder done: 378078 frames, 0 decoder errors
[12:03:20] hevc-decoder done: 7555 frames, 0 decoder errors
[12:03:20] sync: got 7555 frames, 7553 expected
[12:03:20] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:     56, Avg QP:20.82  kb/s: 24468.84
x265 [info]: frame P:   1497, Avg QP:21.72  kb/s: 12558.58
x265 [info]: frame B:   6002, Avg QP:24.45  kb/s: 5773.27
x265 [info]: Weighted P-Frames: Y:21.6% UV:13.7%
encoded 7555 frames in 287.21s (26.30 fps), 7256.33 kb/s, Avg QP:23.88
[12:03:20] mux: track 0, 7555 frames, 287555773 bytes, 7300.54 kbps, fifo 512
[12:03:20] mux: track 1, 378078 frames, 150529660 bytes, 3821.68 kbps, fifo 32768
[12:03:20] Finished work at: Sat Mar 23 12:03:20 2024
[12:03:20] libhb: work result = 0
 
 # Job Completed!
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by mduell »

wyliec2 wrote: Sat Mar 23, 2024 6:14 pmWhen encoding a DolbyVision file (sourced from output from MakeMKV, the DolbyVision profile changes
Just like the documentation says it will: Dolby Vision is supported only when using the x265 10-bit encoder, the following Dolby Vision profiles and cross compatibility IDs are supported: - 5.0 - 7.6 (base layer only, converted to 8.1) - 8.1 - 8.4
wyliec2 wrote: Sat Mar 23, 2024 6:14 pmThe Handbrake output is not recognized as Dolby Vision on my media players.
Sounds like a broken player.
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

I'm not sure whether the problem is the Dolby Vision version or the SMPTE data being duplicated.

Thanks for clarifying the version question!

Any thoughts on the duplicate SMPTE data?? I see another person (posted in the General questions) reported issues with the duplicated SMPTE data but never received any response.
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by Ritsuka »

HDR10 metadata and the color tag are written both in the container and in the video bitstream. If you think it's the cause of your issue, mkvtoolnix header editor can be used to remove them.
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

Thanks for your reply!

Unfortunately, it seems mkvtoolnix does not display nor allow editing of the HDR tag.

I've spent a couple of hours searching and not finding any way of editing the HDR information.
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by Ritsuka »

It is, open the mkvtoolnix gui, select the "header editor" tab, and check the Video track "Color information" and "Color mastering meta information".
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

Ritsuka wrote: Sun Mar 24, 2024 6:47 pm It is, open the mkvtoolnix gui, select the "header editor" tab, and check the Video track "Color information" and "Color mastering meta information".
I have downloaded the latest MKVToolNix version (v83.0)
Open the file in Header editor --> Video Track 1 (only one present) --> Color mastering meta information

What I get is 6 Video chromacity values - X & Y each for red, green and blue
2 White point values X & Y
Video maximum luminance
Video minimum luminance

Thanks for your replies - concurrent with this discussion, I posted on the MKVToolNix community. I checked just before hitting submit here and it was confirmed MKVToolNix will only show binary DV data (Block addition ID extra data) and it cannot be edited.
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by Ritsuka »

Right, but you were talking about the "duplicated" HDR10 mastering metadata, not the Dolby Vision data.
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

Ritsuka wrote: Mon Mar 25, 2024 7:18 am Right, but you were talking about the "duplicated" HDR10 mastering metadata, not the Dolby Vision data.
True, however, I was just noting differences between files that played correctly as Dolby Vision on my players and the files with duplicate SMPTE info that are not recognized as Dolby Vision content.

I have confirmed that the duplicate SMPTE data is, for whatever reason, the problem with my players recognizing Handbrake output files as Dolby Vision. My players are Dune devices which provide full BD menu with ISO files along with handling native SACD file formats.

I posted this anomaly on the Reddit MakeMKV sub and received a suggestion to run the HB output back through MakeMKV - MakeMKV isn't doing anything other than copying the content but it appears to create new header info without the duplication and these files play correctly.

So my workflow will be:
1) Source data processed through MakeMKV
HDR format : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
These output files play correctly but are very large.

2) Process MakeMKV output with Handbrake
HDR format : Dolby Vision, Version 1.0, Profile 8.1, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
The HB output files are significantly smaller even with very conservative CRF value of 18, however, my players do not recognize Dolby Vision.

3) Run HB output back through MakeMKV
HDR format : Dolby Vision, Version 1.0, Profile 8.6, dvhe.08.06, BL+RPU, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
This final output file eliminates the duplicate SMPTE, retains the reduced HB filesize and plays appropriately on my players.

The extra step is easily worth the effort since the final result is 30-60 GB smaller per file. For the MakeMKV steps, no processing is occurring so the only impact is the data transfer time - input and output is from/to NVMe gen 4 SSDs and only takes a couple of minutes at most.
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by Ritsuka »

It would be a good thing to report that issue to the Dune device maker so they can fix their software.
wyliec2
Posts: 47
Joined: Sat Apr 11, 2020 3:06 pm

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by wyliec2 »

Ritsuka wrote: Mon Mar 25, 2024 8:10 pm It would be a good thing to report that issue to the Dune device maker so they can fix their software.
To be honest, I'm just glad to have found a resolution that allows me to save space using Handbrake and still properly see Dolby Vision content.

If I understand you correctly, you're saying the duplicate SMPTE tags shouldn't be a problem and it must be a failure on the Dune manufacturer - I'm in no position knowledge-wise to question that.

What I find somewhat interesting is:
1) There's another user that has posted in the General Questions section essentially the identical issue with different players which was also resolved by elimination of the header info duplication.
2) Handbrake only produces the HDR header duplication on Dolby Vision files. I've looked at numerous other 4K non-DV files that I've processed through Handbrake and none of them have the duplicate SMPTE tags.

It does seem that Handbrake is doing something different with Dolby Vision files that it doesn't do with non-DV content and what it does with DV content causes some players problems. Whether that's on the player manufacturers or what is beyond my expertise - I posted here to see if there were suggestions and now just reporting factual observations and an easy workaround.

Again, appreciate all of the replies and info here - constantly learning!!
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: HB Changes DolbyVision Profile and Duplicates SMPTE info

Post by Ritsuka »

A lot of these players are the same device rebranded and sold by a different companies, so it's no wonder they have the same bugs.
Post Reply