Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
quietvoid
Posts: 371
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

I think L5 with 0 offsets even though there are letterbox bars is not as bad, though I haven't compared if it makes a difference in how the TV tone maps.
It's interesting how the C2 behaves. I don't really recommend using the internal player as there's a weird dither pattern in black.

Some difficult titles are those with variable aspect ratios. Especially when a scene has changing letterbox bars.
I think it should be set to the smallest size, otherwise it might crop out video.

But I've seen some titles do the opposite.
It's less likely to be noticeable when the AR transition is fast (5-10 frames).
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Wed Jul 06, 2022 12:45 pm
I think L5 with 0 offsets even though there are letterbox bars is not as bad, though I haven't compared if it makes a difference in how the TV tone maps.
right, as long as they don't lift the trims over 0.025
"Avoid using positive values over 0.025 on the LIFT trim control for letterboxed content. (Negative Lift values are acceptable on all versions). The
current implementation on Ultra HD Blu-ray devices apply the Trims to the entire image area, including the letterbox blanking area, to allow subtitles to
appear over them. If the scene contains positive Lift values over 0.025, this may cause the letterboxed area to have elevated black levels during playback.
An alternate way to achieve the desired result is to use a combination of GAIN and GAMMA trims more aggressively as these controls are
manipulating the tone curve to achieve a more lifted black effect without using Lift. You can also choose to go back and modify your original HDR
content to lift the blacks slightly and then re-analyze and trim without the need to have a positive value on the Lift trim over 0.025. If the active image
area matches the canvas aspect ratio, (i.e. there is no letterbox), positive Lift can be used."
staknhalo
Posts: 145
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Do we know (if able to) if this missing metadata is from the source (ie Apple/authored without it) missing, or missing as a result of capture/rip (cause I see BD with incorrect in the list), or just specific captures for specific releases, a combination of/title dependent, etc?
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

ragico wrote:
Tue Jul 05, 2022 9:28 pm
JoseTheBae wrote:
Tue Jul 05, 2022 2:32 pm
ragico wrote:
Fri Feb 26, 2021 12:45 am
With Ugoos AM6 plus/Kodi Matrix DV edition (thanks @Fandangos and @quietvoid) Saving Private Ryan (MKV DV) no flicKering like the m2ts on Sony X700.
This is the first time that a device (except Sony X700) does not flickers on this film.
I tried Firestick 4K, Shield 2019 and Google Chromecast with Google TV.
In Ugoos (latest firmware 0.40) also HD audio (True HD Atmos and DTS X) works in passtrough in Kodi.
My soundbar confirms.
Can you please share a link to that specific Kodi build that did not produce flickering for the opening of Saving Private Ryan? For some reason, I get flickering on my Ugoos AM6B Plus in Kodinerds, but not in Plex.
Here: https://forum.kodi.tv/showthread.php?tid=360018
Sorry, I no longer own the Ugoos. It was quite unstable.
I re-installed that Kodi build again and I still got flickering in the beginning of Saving Private Ryan. It's so odd, because Plex certainly does process the Full Enhancement Layer. At least, this build plays all files smoothly, including those with Dolby Vision and a FEL. The modified ExoPlayer APK stuttered a lot, to the point where it wasn't really watchable, even though it processed the FEL.
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

RESET_9999 wrote:
Tue Jul 05, 2022 6:43 pm
JoseTheBae wrote:
Tue Jul 05, 2022 3:46 pm
What Plex Client version was this on? I can't get Plex to output lossless audio on my Ugoos AM6B Plus.
no particular version. I was able to make it work about 3-4 times and it just seem to work randomly.
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

JoseTheBae wrote:
Wed Jul 06, 2022 7:44 pm
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
nop, I sold my ugoos a long time ago. I was using the Kodinerds built and it processed the FEL but there was micro stuttering and sometimes the movie would just freeze.

In my opinion, you are wasting your time/money with this device. If you want stable FEL playback get the Sony x700 or x800m2.
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

RESET_9999 wrote:
Wed Jul 06, 2022 7:55 pm
JoseTheBae wrote:
Wed Jul 06, 2022 7:44 pm
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
nop, I sold my ugoos a long time ago. I was using the Kodinerds built and it processed the FEL but there was micro stuttering and sometimes the movie would just freeze.

In my opinion, you are wasting your time/money with this device. If you want stable FEL playback get the Sony x700 or x800m2.
Oh, I see. It's so annoying, because I feel so close to achieving complete Dolby Vision playback. Plex can process the FEL and play it smoothly, but it doesn't have lossless audio on this device. As for Kodi, I have Dolby Vision playing smoothly with lossless audio on Fandango's build, just without the FEL. If only Plex got to supporting lossless audio on this device; then this would finally provide reliable playback for everything.
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

Hello,

I'm new to the forum and i'm trying to use the script but getting a lot of path errors and LAV Filter can't be loaded issues.

I'm using Windows 11 Pro.

This are the errors i currently get when trying to create DoVi from HDR10.

I tried option 4-4
And also option 7-1-6

Always same errors with paths and LAV Filter as follows:

Code: Select all

F:\TEMP\THD.mkv: No such file or directory
Error: Unknown mode 'F:\TEMP\_AC3.mkv'.
SMPTE ST 2086
Connecting LAV Splitter Source to LAV Video Decoder failed.
Parsing madVR measurement file...
Error: System can't find the file specified. (os error 2)
Also other errors:

Code: Select all

a02 Processed audio track: max 24 bits, average 19 bits, most common 16 bits.
Video track 1 contains 1303 frames.
eac3to processing took 2 seconds.
Done.
mkvmerge v67.0.0 ('Under Stars') 64-bit
Error: The file 'F:\TEMP\en.thd' could not be opened for reading: open file error.
mkvmerge v67.0.0 ('Under Stars') 64-bit
Error: The file 'F:\TEMP\en.dtsma' could not be opened for reading: open file error.
ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

dvfan wrote:
Wed Jul 06, 2022 8:36 pm
Hello,
Hi, did you install lavfilters?
https://www.videohelp.com/software/LAV-Filters

also dont forget to go in the tools/madvr folder and click (with admin rights) on the install.bat
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

Hello, yes i installed the LAV Filters twice just to be sure. All works, i run madvr and it works, with HDR and everything. I can see the info on screen just fine as well. With all measurements, but when i run the script it always shows error with connecting to LAV Filter - failed.

Code: Select all

Choice? [1,2,3,4,5]?1
                                         *********************
                                         * CHOOSE A WORKFLOW *
                                         *********************

1) Workflow.1= Convert 1 video + AUTO L5
2) Workflow.2= Convert 1 video + MANUAL L5
3) Workflow.3= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3 + DDP_1536kbps
4) Workflow.4= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3
5) Workflow.5= Convert 1 video + MANUAL L5 + DDP_1536kbps
6) Workflow.6= Convert 1 video + AUTO L5 + REMOVE HDR10plus (fire stick TV)
7) Workflow.7= Back to main menu

Choice? [1,2,3,4,5,6,7]?1
Folder Already exists F:\TEMP\.
----------------------------------------------------------------------------------------------------
--This workflow will convert an HDR10 or HDR10plus video to DoVi and set L5 automatically
--The black bars detection may not be perfectly accurate. It's maybe better to measure them manually
----------------------------------------------------------------------------------------------------
Drag and drop your HDR10 or HDR10plus MKV/MP4/TS file and press enter...F:\DoVi_Scripts\test1.mkv
Do you want to crop RPU... y or n ? (y when HDR10-BL is cropped) and/or press enter...n
Measuring the HDR10 video letterbox...
min: 0.0050 cd/m2, max: 1200 cd/m2
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'F:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
SMPTE ST 2086
HDR10plus metadata not present. Generating DoVi from HDR10 with madVR...
[b]Connecting LAV Splitter Source to LAV Video Decoder failed.[/b]
Parsing madVR measurement file...
Error: System can't find the file specified (os error 2)
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

dvfan wrote:
Wed Jul 06, 2022 9:49 pm
Hello, yes i installed the LAV Filters twice just to be sure. All works, i run madvr and it works, with HDR and everything. I can see the info on screen just fine as well. With all measurements, but when i run the script it always shows error with connecting to LAV Filter - failed.
I dont know. maybe try the nightly lavfilters ?

it's working on my end.

Code: Select all

1) MODE.1= HDR10(madVR) or HDR10plus to DoVi maker
2) MODE.2= Batch convert up to 13 HDR10plus videos to DoVi
3) MODE.3= Inject DV from existing measurement file
4) MODE.4= Batch measure a folder with mkv HDR10 files (credit to manni)
5) MODE.5= Back to main menu

Choice? [1,2,3,4,5]?1
                                         *********************
                                         * CHOOSE A WORKFLOW *
                                         *********************

1) Workflow.1= Convert 1 video + AUTO L5
2) Workflow.2= Convert 1 video + MANUAL L5
3) Workflow.3= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3 + DDP_1536kbps
4) Workflow.4= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3
5) Workflow.5= Convert 1 video + MANUAL L5 + DDP_1536kbps
6) Workflow.6= Convert 1 video + AUTO L5 + REMOVE HDR10plus (fire stick TV)
7) Workflow.7= Back to main menu

Choice? [1,2,3,4,5,6,7]?1
----------------------------------------------------------------------------------------------------
--This workflow will convert an HDR10 or HDR10plus video to DoVi and set L5 automatically
--The black bars detection may not be perfectly accurate. It's maybe better to measure them manually
----------------------------------------------------------------------------------------------------
Drag and drop your HDR10 or HDR10plus MKV/MP4/TS file and press enter...D:\samples\hdr10.mkv
Do you want to crop RPU... y or n ? (y when HDR10-BL is cropped) and/or press enter...
Measuring the HDR10 video letterbox...
min: 0.0001 cd/m2, max: 1000 cd/m2
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
SMPTE ST 2086
HDR10plus metadata not present. Generating DoVi from HDR10 with madVR...
Measuring video file "D:\samples\hdr10.mkv" using D3D11 (native)...
Metadata:
  Mastering display luminance: 0.0001/1000, gamut: 0.68 0.32, 0.15 0.06, 0.265 0.69, 0.3127 0.329
  MaxCLL: 0, MaxFALL: 0 nits
Measurements:
  Frames: 10274, MaxCLL 100%: 623, 99.9%: 598, MaxFALL: 250, AvgFALL: 44, AvgFMLL: 416 nits
Parsing madVR measurement file...
Generating metadata: Profile 8.1 (HDR10)...
Generated metadata for 10274 frames
Done.
EditConfig {
    mode: 0,
    remove_cmv4: false,
    remove_mapping: false,
    active_area: Some(
        ActiveArea {
            crop: false,
            drop_l5: None,
            presets: Some(
                [
                    ActiveAreaOffsets {
                        id: 0,
                        left: 0,
                        right: 0,
                        top: 276,
                        bottom: 276,
                    },
                ],
            ),
            edits: Some(
                {
                    "all": 0,
                },
            ),
        },
    ),
    remove: None,
    duplicate: None,
    min_pq: None,
    max_pq: None,
    level6: None,
    level9: None,
    level11: None,
}
Parsing RPU file...
Editing active area offsets...
Final metadata length: 10274
Writing RPU file...
EditConfig {
    mode: 0,
    remove_cmv4: false,
    remove_mapping: false,
    active_area: None,
    remove: None,
    duplicate: None,
    min_pq: None,
    max_pq: None,
    level6: Some(
        ExtMetadataBlockLevel6 {
            max_display_mastering_luminance: 1000,
            min_display_mastering_luminance: 1,
            max_content_light_level: 0,
            max_frame_average_light_level: 0,
        },
    ),
    level9: None,
    level11: None,
}
Parsing RPU file...
Final metadata length: 10274
Writing RPU file...
"left": 0
"right": 0
"top": 276
"bottom": 276
MDL.max: 1000
MDL.min: 1
Maxcll: 0
Maxfall: 0
Display P3
injecting RPU-L6-L5.bin ...
Parsing RPU file...
Processing input video for frame order info...

Warning: Input file already has RPUs, they will be replaced.
Rewriting file with interleaved RPU NALs..
        {
          "Level1": {
            "min_pq": 0,
            "max_pq": 2708,
            "avg_pq": 1141
          }
        },
        {
          "Level5": {
            "active_area_left_offset": 0,
            "active_area_right_offset": 0,
            "active_area_top_offset": 276,
            "active_area_bottom_offset": 276
          }
        },
        {
          "Level6": {
            "max_display_mastering_luminance": 1000,
            "min_display_mastering_luminance": 1,
            "max_content_light_level": 0,
            "max_frame_average_light_level": 0
          }
        }
      ]
    },
    "cmv40_metadata": {
      "num_ext_blocks": 3,
      "ext_metadata_blocks": [
        {
          "Level9": {
            "length": 1,
            "source_primary_index": 0
          }
        },
        {
          "Level11": {
            "content_type": 1,
            "whitepoint": 0,
            "reference_mode_flag": true,
            "reserved_byte2": 0,
            "reserved_byte3": 0
          }
        },
        {
          "Level254": {
            "dm_mode": 0,
            "dm_version_index": 2
          }
        }
      ]
    }
  },
  "rpu_data_crc32": 867262424
}
Parsing RPU file...

Summary:
  Frames: 10274
  Profile: 8
  DM version: 2 (CM v4.x)
  Scene/shot count: 177
"The script has completed."
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

RESET_9999 wrote:
Wed Jul 06, 2022 10:22 pm
dvfan wrote:
Wed Jul 06, 2022 9:49 pm
Hello, yes i installed the LAV Filters twice just to be sure. All works, i run madvr and it works, with HDR and everything. I can see the info on screen just fine as well. With all measurements, but when i run the script it always shows error with connecting to LAV Filter - failed.
I dont know. maybe try the nightly lavfilters ?

it's working on my end.

Code: Select all

1) MODE.1= HDR10(madVR) or HDR10plus to DoVi maker
2) MODE.2= Batch convert up to 13 HDR10plus videos to DoVi
3) MODE.3= Inject DV from existing measurement file
4) MODE.4= Batch measure a folder with mkv HDR10 files (credit to manni)
5) MODE.5= Back to main menu

Choice? [1,2,3,4,5]?1
                                         *********************
                                         * CHOOSE A WORKFLOW *
                                         *********************

1) Workflow.1= Convert 1 video + AUTO L5
2) Workflow.2= Convert 1 video + MANUAL L5
3) Workflow.3= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3 + DDP_1536kbps
4) Workflow.4= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3
5) Workflow.5= Convert 1 video + MANUAL L5 + DDP_1536kbps
6) Workflow.6= Convert 1 video + AUTO L5 + REMOVE HDR10plus (fire stick TV)
7) Workflow.7= Back to main menu

Choice? [1,2,3,4,5,6,7]?1
----------------------------------------------------------------------------------------------------
--This workflow will convert an HDR10 or HDR10plus video to DoVi and set L5 automatically
--The black bars detection may not be perfectly accurate. It's maybe better to measure them manually
----------------------------------------------------------------------------------------------------
Drag and drop your HDR10 or HDR10plus MKV/MP4/TS file and press enter...D:\samples\hdr10.mkv
Do you want to crop RPU... y or n ? (y when HDR10-BL is cropped) and/or press enter...
Measuring the HDR10 video letterbox...
min: 0.0001 cd/m2, max: 1000 cd/m2
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
SMPTE ST 2086
HDR10plus metadata not present. Generating DoVi from HDR10 with madVR...
Measuring video file "D:\samples\hdr10.mkv" using D3D11 (native)...
Metadata:
  Mastering display luminance: 0.0001/1000, gamut: 0.68 0.32, 0.15 0.06, 0.265 0.69, 0.3127 0.329
  MaxCLL: 0, MaxFALL: 0 nits
Measurements:
  Frames: 10274, MaxCLL 100%: 623, 99.9%: 598, MaxFALL: 250, AvgFALL: 44, AvgFMLL: 416 nits
Parsing madVR measurement file...
Generating metadata: Profile 8.1 (HDR10)...
Generated metadata for 10274 frames
Done.
EditConfig {
    mode: 0,
    remove_cmv4: false,
    remove_mapping: false,
    active_area: Some(
        ActiveArea {
            crop: false,
            drop_l5: None,
            presets: Some(
                [
                    ActiveAreaOffsets {
                        id: 0,
                        left: 0,
                        right: 0,
                        top: 276,
                        bottom: 276,
                    },
                ],
            ),
            edits: Some(
                {
                    "all": 0,
                },
            ),
        },
    ),
    remove: None,
    duplicate: None,
    min_pq: None,
    max_pq: None,
    level6: None,
    level9: None,
    level11: None,
}
Parsing RPU file...
Editing active area offsets...
Final metadata length: 10274
Writing RPU file...
EditConfig {
    mode: 0,
    remove_cmv4: false,
    remove_mapping: false,
    active_area: None,
    remove: None,
    duplicate: None,
    min_pq: None,
    max_pq: None,
    level6: Some(
        ExtMetadataBlockLevel6 {
            max_display_mastering_luminance: 1000,
            min_display_mastering_luminance: 1,
            max_content_light_level: 0,
            max_frame_average_light_level: 0,
        },
    ),
    level9: None,
    level11: None,
}
Parsing RPU file...
Final metadata length: 10274
Writing RPU file...
"left": 0
"right": 0
"top": 276
"bottom": 276
MDL.max: 1000
MDL.min: 1
Maxcll: 0
Maxfall: 0
Display P3
injecting RPU-L6-L5.bin ...
Parsing RPU file...
Processing input video for frame order info...

Warning: Input file already has RPUs, they will be replaced.
Rewriting file with interleaved RPU NALs..
        {
          "Level1": {
            "min_pq": 0,
            "max_pq": 2708,
            "avg_pq": 1141
          }
        },
        {
          "Level5": {
            "active_area_left_offset": 0,
            "active_area_right_offset": 0,
            "active_area_top_offset": 276,
            "active_area_bottom_offset": 276
          }
        },
        {
          "Level6": {
            "max_display_mastering_luminance": 1000,
            "min_display_mastering_luminance": 1,
            "max_content_light_level": 0,
            "max_frame_average_light_level": 0
          }
        }
      ]
    },
    "cmv40_metadata": {
      "num_ext_blocks": 3,
      "ext_metadata_blocks": [
        {
          "Level9": {
            "length": 1,
            "source_primary_index": 0
          }
        },
        {
          "Level11": {
            "content_type": 1,
            "whitepoint": 0,
            "reference_mode_flag": true,
            "reserved_byte2": 0,
            "reserved_byte3": 0
          }
        },
        {
          "Level254": {
            "dm_mode": 0,
            "dm_version_index": 2
          }
        }
      ]
    }
  },
  "rpu_data_crc32": 867262424
}
Parsing RPU file...

Summary:
  Frames: 10274
  Profile: 8
  DM version: 2 (CM v4.x)
  Scene/shot count: 177
"The script has completed."
Hello, i installed the folder into the C:\ instead. It was on F drive before.

Now it worked, somehow it had issues with other driver rather than system drive.

I have a question, is there any way to make the resulting MKV file to show the mastering display luminance/MaxFALL/MaxCLL and color mastering metadata , like when watching with MadVR and you hit Ctrl-F to show info? now it shows only BT. 2020 primaries and BT. 2020 color, nothing else there. It should show the nits mastering followed by the color mastering. Like: 1000 nits HDR - BT. 2020 > DCI-P3 .....
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

dvfan wrote:
Thu Jul 07, 2022 4:07 am
I have a question, is there any way to make the resulting MKV file to show the mastering display luminance/MaxFALL/MaxCLL and color mastering metadata , like when watching with MadVR and you hit Ctrl-F to show info? now it shows only BT. 2020 primaries and BT. 2020 color, nothing else there. It should show the nits mastering followed by the color mastering. Like: 1000 nits HDR - BT. 2020 > DCI-P3 .....
I'm not sure I understand but, the script cannot change/remove the static HDR10 metadata of the resulting MKV.
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

RESET_9999 wrote:
Thu Jul 07, 2022 12:37 pm
dvfan wrote:
Thu Jul 07, 2022 4:07 am
I have a question, is there any way to make the resulting MKV file to show the mastering display luminance/MaxFALL/MaxCLL and color mastering metadata , like when watching with MadVR and you hit Ctrl-F to show info? now it shows only BT. 2020 primaries and BT. 2020 color, nothing else there. It should show the nits mastering followed by the color mastering. Like: 1000 nits HDR - BT. 2020 > DCI-P3 .....
I'm not sure I understand but, the script cannot change/remove the static HDR10 metadata of the resulting MKV.
Yes, it's just the Metadata for the video track. Which in this case would be inside the DV Profile 8.

This is an example so you can understand.

Spider-Man NWH Dolby Vision Profile 8 - MadVR On-Screen INFO:

Image

It shows HDR 9978 nits, since the metadata is properly injected:

Image

You see the Mastering Display numbers at the bottom.

But this is how it ends up when using the Script ( From HDR10 video, which includes this metadata information, but it goes away in the resulting MKV with DV Profile 8 ) :

https://i.imgur.com/3XhJntC.jpg

You can check at the bottom the Mastering Display information metadata is lost.

I've always did this by additional commands to the MKVToolNixGUI. Though if i add these additional commands when muxing the DV Profile 8, it will show duplicate HDR10 metadata.

Like for example MediaInfo shows HDR10/HDR10

And in the detailed information it shows the added metadata for Mastering Display Nits/MaxFall/MaxCLL and Color "P3" though in MadVR won't show up.

Looks like this works kinda different when doing Dolby Vision muxing. It may be added in a future update for the muxing tools used.
RESET_9999
Posts: 1843
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

dvfan wrote:
Thu Jul 07, 2022 4:12 pm


But this is how it ends up when using the Script ( From HDR10 video, which includes this metadata information, but it goes away in the resulting MKV with DV Profile 8 ) :

https://i.imgur.com/3XhJntC.jpg

You can check at the bottom the Mastering Display information metadata is lost.

I've always did this by additional commands to the MKVToolNixGUI. Though if i add these additional commands when muxing the DV Profile 8, it will show duplicate HDR10 metadata.

Like for example MediaInfo shows HDR10/HDR10

And in the detailed information it shows the added metadata for Mastering Display Nits/MaxFall/MaxCLL and Color "P3" though in MadVR won't show up.

Looks like this works kinda different when doing Dolby Vision muxing. It may be added in a future update for the muxing tools used.
The script will not change/remove the original static hdr10. Custom metadata with mkvmerge cli is another story and I don't really care about it because I use TS container and those custom metadata are lost anyway when muxed in tsmuxer (and probably in the mp4muxer too) and there's nothing I can do about it. Plus it doesnt matter in DV.

my SM no way home using the script... clearly your picture isn't right .. even chroma type 2 is different... level 6.1 ? whatever you did to split that file broke it.

Code: Select all

Video
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 28 min
Bit rate                                 : 55.9 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.281
Stream size                              : 57.8 GiB (92%)
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 9978 cd/m2
Maximum Frame-Average Light Level        : 867 cd/m2
Post Reply