Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
jayper
Posts: 316
Joined: Sat Sep 29, 2012 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jayper »

Coopervid wrote:
Sun Jan 30, 2022 10:31 pm
How? There is a small chance to run then the resulting TS through BDRebuilder. Only a theory.
Use TSMuxer, select 'TS Muxing' as the output.
nekno
Posts: 56
Joined: Tue Jun 23, 2020 4:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by nekno »

Robert89 wrote:
Sun Jan 30, 2022 8:00 am
no is what happens when I try to convert an appletv + web-dl.
in sum to explain myself better ... the first step.

Code: Select all

dovi_tool -m 3 convert --discard dolby.hevc
OK, so you want to convert P5 to P8 but Apple is using an odd "max_display_mastering_luminance".

If you check the file with MediaInfo, or check the file properties in a player like MPC-BE or MPC-HC, can you see if it has "Mastering display luminance" values?

For example, here's a random HDR10 file. If I play it in MPC-BE, right-click > Properties > MediaInfo tab, it shows:

Code: Select all

Mastering display luminance    : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level    : 1000 cd/m2
Maximum Frame-Average Light Le : 293 cd/m2
Then make a json file with those values.

Using the example file above, MaxCLL is 1000 and MaxFALL is 293. If you don't have those values I believe you can leave them as 0 in your json file and they won't be changed.

If you can't find Mastering display luminance values, using 1000 and 50 should be safe value.

Make the file and save it as L6.json:

Code: Select all

{
    "cm_version": "V29",
    "length": 0,
    "level6": {
        "max_display_mastering_luminance": 1000,
        "min_display_mastering_luminance": 50,
        "max_content_light_level": 1000,
        "max_frame_average_light_level": 293 
    }
}
Then you need to create a separate json file to set edit mode 3 to convert to P8.

Make the file and save it as mode3.json:

Code: Select all

{
    "mode": 3
 }
 
Then you need to extract the RPU, edit it the json file to set the L6 metadata, edit it again with the json file to convert it to P8, and then re-inject it.

Code: Select all

dovi_tool extract-rpu dolby.hevc
dovi_tool editor -i RPU.bin -j L6.json -o RPU_L6.bin
dovi_tool editor -i RPU_L6.bin -j mode3.json -o RPU_p8.bin
dovi_tool inject-rpu -i dolby.hevc --rpu-in RPU_p8.bin -o dolby_p8.hevc
Last edited by nekno on Mon Jan 31, 2022 1:54 am, edited 1 time in total.
nekno
Posts: 56
Joined: Tue Jun 23, 2020 4:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by nekno »

powdeau wrote:
Sun Jan 30, 2022 4:55 pm
Is there a way to convert HLG into HDR10 in order to convert it into DV?
DV supports both HLG and HDR10 with different profile compatibility IDs.

DV P8.1 is P8 with an HDR10 base layer.

DV 8.4 is P8 with an HLG base layer.

So you don't necessarily need to convert from HLG to HDR10 to get DV, it just depends on your playback device.

The latest iPhones, iPads, and Apple TV, for example, support DV P8.4 with an HLG BL. I haven't seen if, e.g., Infuse is working with P8.4 properly yet.

A lot of variables depending on where you're trying to play a file.
nekno
Posts: 56
Joined: Tue Jun 23, 2020 4:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by nekno »

jayper wrote:
Sun Jan 30, 2022 7:53 pm
Is it possible to create BDMV folders or ISO files with Dolby Vision Profile 8 files and have them properly play back on a UHD Disc player, like an Oppo? Or is profile 8 not supported by the BD player spec?

I am asking, as I only have an Nvidia Shield, x700 and an Oppo 203 clone, and from what I have gathered, the Shield does not have accurate coloring for Profile 8 DV.
I don't know about the other players, but the X700 wouldn't play P8 in BDMV format in my testing. It locked up the player with a black screen.

The only DV profile supported by UHD BD is P7, with either FEL or MEL.

The best combo of DV P8 + lossless audio + subtitles + FF/RW support on the X700 is to use tsMuxer to create m2ts files.

I also asked about this a week or so back, and to use BDMV format, we'd need a legitimate EL with the same frame types in the same order as each frame in the BL in order to carry the RPU. P7 doesn't support BL+RPU, it needs BL+EL+RPU.

I haven't seen anyone successfully accomplish that yet.

quietvoid mentioned he might think about adding support for generating an MEL to dovi_tool, which would make P8 or P5 conversions to P7 possible.
jayper
Posts: 316
Joined: Sat Sep 29, 2012 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jayper »

Thanks very much, appreciate all the insight.
powdeau
Posts: 45
Joined: Sat Jan 12, 2019 1:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by powdeau »

nekno wrote:
Mon Jan 31, 2022 1:12 am
powdeau wrote:
Sun Jan 30, 2022 4:55 pm
Is there a way to convert HLG into HDR10 in order to convert it into DV?
DV supports both HLG and HDR10 with different profile compatibility IDs.

DV P8.1 is P8 with an HDR10 base layer.

DV 8.4 is P8 with an HLG base layer.

So you don't necessarily need to convert from HLG to HDR10 to get DV, it just depends on your playback device.

The latest iPhones, iPads, and Apple TV, for example, support DV P8.4 with an HLG BL. I haven't seen if, e.g., Infuse is working with P8.4 properly yet.

A lot of variables depending on where you're trying to play a file.
Thanks, I will play it on C7 or x700 but the problem is that madVR (madMeasureHDR) doesn't measure HLG video.
looun
Posts: 4
Joined: Tue Feb 18, 2020 11:38 am

Re: Dolby Vision now possible through MP4 Mux.

Post by looun »

Should it be possible to create DV P4 or P8.2 (SDR compatibly ) from madVR HDR measurements?

i have tried Dynamic.HDR.Optimizer.exe with target nits 100 and --use-custom-targets parameters, but i don't see lot of change.

Can be very usell using Dynamic.HDR.Optimizer. + DV as dynamic tone mapping as madvr for projector, like or better than tips Dolby Vision/DTM with HDFury .


thanks.
quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

looun wrote:
Tue Feb 01, 2022 10:01 am
Should it be possible to create DV P4 or P8.2 (SDR compatibly ) from madVR HDR measurements?
No, only profile 8.1 with HDR10 backwards compatibility is supported.
looun
Posts: 4
Joined: Tue Feb 18, 2020 11:38 am

Re: Dolby Vision now possible through MP4 Mux.

Post by looun »

ok , which is th best way to use Dynamic.HDR.Optimizer.exe with "target nits" and dovi_tool.exe with --use-custom-targets ?
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

RESET_9999 wrote:
Thu Dec 30, 2021 7:42 pm
yes but the file has the 8.1 rpu from @quietvoid L1L2 HDR10 BL test file.
I'll try to edit the original HLG 8.4 footage.
Did you succeed?
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

NiCE77 wrote:
Thu Feb 03, 2022 8:35 am
RESET_9999 wrote:
Thu Dec 30, 2021 7:42 pm
yes but the file has the 8.1 rpu from @quietvoid L1L2 HDR10 BL test file.
I'll try to edit the original HLG 8.4 footage.
Did you succeed?
no :(
mtotheb
Posts: 37
Joined: Wed Jan 27, 2021 12:18 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mtotheb »

So after ups and downs with the delivery company I received my Xiaomi Mi TV 4K and can report on its capabilities.

Things that work:
- HEVC (high bitrate too) / AV1
- DTS (HD*) 5.1 & 7.1
— My Soundbar only shows “DTS Audio” for HD and compressed but by playing back the 5.1/7.1 HD Test files the channels are mapped correctly and it is highly likely passing through the right format using OMX.amlogic.audio.decoder.dtshd
- In the settings switching between TV-Led and Source-Led Dolby Vision
- DV MEL DT DL // DV 5 / 8.1 RPU

(Edit2)
- OTG Support with powered micro usb hub: 1TB External hard drive and ethernet. (around 120mbps)

EDIT: Things that don’t work now confirmed:
- DV (FEL DT DL)
— Tested with “black level pattern mp4/ts” & “RPU-FEL Test DT DL p7”, somebody please tell me what to look for in the last one. @Reset_9999 ?

Things that don’t work:
- TrueHD (any) +Atmos
- DTS:X
- The “Dolby Vision FEL Test p7.06 Dual Layer.mp4” I’m assuming it’s because it’s missing rpu? It plays until the 23 frame and then gets stuck.
- Any Single Layer Dual Track DV files
Last edited by mtotheb on Thu Feb 03, 2022 10:53 pm, edited 2 times in total.
Shield TV 2017 -> LG DSN10YG Soundbar with SPK8 Rears -> LG B1 OLED
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

mtotheb wrote:
Thu Feb 03, 2022 8:35 pm
— Tested with “RPU-FEL Test DT DL p7”, somebody please tell me what to look for in the last one. @Reset_9999 ?
You will see a video from another movie over the orange picture if FEL is used and a couple of flashes if the RPU is used.
mtotheb
Posts: 37
Joined: Wed Jan 27, 2021 12:18 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mtotheb »

RESET_9999 wrote:
Thu Feb 03, 2022 8:52 pm
mtotheb wrote:
Thu Feb 03, 2022 8:35 pm
— Tested with “RPU-FEL Test DT DL p7”, somebody please tell me what to look for in the last one. @Reset_9999 ?
You will see a video from another movie over the orange picture if FEL is used and a couple of flashes if the RPU is used.
Is there a reference image for that?
I have Blank red until ~26sec then I get the Warner Bros over the red part, a stanley… over the blue part then clockwork over red switching to a movie scene at ~45
Shield TV 2017 -> LG DSN10YG Soundbar with SPK8 Rears -> LG B1 OLED
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

mtotheb wrote:
Thu Feb 03, 2022 9:06 pm
Is there a reference image for that?
I have Blank red until ~26sec then I get the Warner Bros over the red part, a stanley… over the blue part then clockwork over red switching to a movie scene at ~45
If you only see a blank red picture, it means FEL is not processed. I'll try to take a picture when I get home.

Do you see the flashes though?
Post Reply