Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

Manixx2020beyound wrote:
Tue Oct 12, 2021 12:33 pm
Be interesting to find out what mad Vr considers as the active area.
Did anyone try a movie without black bars to see if the min values changed?
Current behavior is hardcoded to min_pq=0 for both HDR10+ and madVR generate.
madVR only provides the luminance histogram, which includes the letterbox bars. So it's complicated to figure out the actual minimum of the active area.

RESET_9999 wrote:
Tue Oct 12, 2021 12:54 pm
I don't really know but Dolby clearly says that min 0 for all the scenes is incorrect.
When I get home, I'll do the analysis with the HDR10plus algorithm and see if I get a different min pq for that clip.
At best the min would be the same as source_min_pq for all the shots, instead of 0.
I don't think this is the case of most content, though. I've seen 0 used.

It's just to have accurate L1, but I don't think the value 0 is wrong itself.
chros
Posts: 51
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

quietvoid wrote:
Tue Oct 12, 2021 11:44 am
In playback, you'd have to figure out what the TV says it can output, this might be the same peak as in the Dolby Vision configuration files used for calibration.
This is why I set multiple blocks to the same values in my L2 test sample.
So, do we know what happens when only 1 L2 block is present? I mean do we have to specify all of them or it will use the only one for all?
Also, what nit number do these correspond to? 2081, 2851, 3079
quietvoid wrote:
Tue Oct 12, 2021 11:44 am
You're asking for L2 but min_pq is L1 metadata.
Technically it could be added to the editor but I don't really see a good use case for it..
My bad, sorry, L1. No worries, editing json is fine.
Manixx2020beyound wrote:
Tue Oct 12, 2021 12:33 pm
Be interesting to find out what mad Vr considers as the active area. Did anyone try a movie without black bars to see if the min values changed?
It's not that, but the binary measurement file doesn't have any data about this.
Manixx2020beyound wrote:
Tue Oct 12, 2021 12:39 pm
I don’t think anyone needs l2/l8 trims if the creators intent is already within the source
U can select to bypass trim pass for l2 which won’t produce any l2 meta in resolve.
Good point.
Manixx2020beyound wrote:
Tue Oct 12, 2021 12:39 pm
Plus isn’t l2 for mapping trims to 709
L8 trims maps to 1000/600nits dv which we have no acess to without a license which is blacked out in resolve
According to the manual L8 is for secondary trim controls only in v4.0 (and not backward compatible with v2.9)
RESET_9999 wrote:
Tue Oct 12, 2021 12:54 pm
I don't really know but Dolby clearly says that min 0 for all the scenes is incorrect.
When I get home, I'll do the analysis with the HDR10plus algorithm and see if I get a different min pq for that clip.
Yes, that's why I asked it. But this is a good point that then we have to use active area as well (otherwise it will be incorrect this time :) )
RESET_9999 wrote:
Tue Oct 12, 2021 12:54 pm
chros wrote:
Tue Oct 12, 2021 9:43 am
It's Amazon hdr10+. Thanks for the test, measurement results are pretty close indeed (apart from the first avg value, where it's double), really interesting:
1- Resolve L6 maxCLL is set to 1680, but it measure more than 3000 nits? what's the unit of the values on the image, nits or PQ?
- - interestingly that's the measurement summary from madvr: MaxCLL 100%: 1680, 99.9%: 1545, MaxFALL: 58, AvgFALL: 9, AvgFMLL: 524 nits
2- Resolve set some L2 trim properties (that obviously dovi_tool doesn't by default), why is that? Did you set it or is it automatic?
3- Resolve has 3 blocks of L2 metadata, why is that? (target_max_pq: 2081, 2851, 3079; dovi_tool has just 1: 3079) Which one is used during playback?

Thanks, my question is what the effect of min_pq value is in reality.
1- the L6 metadata is edited manually, I just took the numbers from your post: viewtopic.php?p=113519#p113519
2- this is the resolve default trim passes adjustments for each target display. You need a license to modify them in resolve but everything else is available and free to use.
3- As Quietvoid said.
1- Oh, I see :)
2 - interesting, thanks
quietvoid
Posts: 171
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Tue Oct 12, 2021 1:34 pm
So, do we know what happens when only 1 L2 block is present? I mean do we have to specify all of them or it will use the only one for all?
Also, what nit number do these correspond to? 2081, 2851, 3079
I haven't tested, but I'd assume Dolby interpolates between targets on playback.
Or at least uses the trims for the closest target.

The value is PQ code, so 2081/4095 is the PQ code for 100 nits.
2851 = 600, 3079 = 1000, etc.

Some movies only have trims for 100 nits, but most include at least 600 as well.

chros wrote:
Tue Oct 12, 2021 1:34 pm
My bad, sorry, L1. No worries, editing json is fine.
I don't even think the exported JSON can be made back into a binary RPU..
PlatypusW
Posts: 43
Joined: Mon Aug 03, 2020 2:14 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by PlatypusW »

Infuse on Apple TV just got updated to support profile 5 in mkv. Don’t know if that’s a reasonable alternative to shield for p5 mkv files now?
Lack of lossless audio is still an issue but most profile 5 files won’t have lossless audio anyway.
NiCE77
Posts: 44
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

PlatypusW wrote:
Tue Oct 12, 2021 5:33 pm
Infuse on Apple TV just got updated to support profile 5 in mkv. Don’t know if that’s a reasonable alternative to shield for p5 mkv files now?
Lack of lossless audio is still an issue but most profile 5 files won’t have lossless audio anyway.
All P5 files are webrip, so there are not too many movies uploaded in this version, the P8 support would be much better.
jesper1994
Posts: 16
Joined: Fri Oct 25, 2019 12:53 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jesper1994 »

daddy wrote:
Sat Sep 18, 2021 8:59 am
KoshIreland wrote:
Fri Sep 17, 2021 9:34 am
Hi. Sorry to ask something already covered in this thread, but I haven't been able to figure out the latest/best info.

Back in Dec 2020, I started using scripts from this thread to convert Dolby Vision UHD discs (Game of Thrones) to DV MP4, but I never finished the process.

What's the best option currently to convert these discs to a DV file that will play on AppleTV with LG C8 — or using LG C8 built-in player?
GoT episodes are in FEL.
On C7, C8, C9, the best option is to make DV dual layers mp4 files (dvhe.07.06) and to play them directly with the LG built-in player.
For each episode, extract BL, EL and audio files with tsmuxer, then mux the mp4 file with mp4muxer.
The result is almost 1.8 TB for 98 files (mp4 + srt files)
Do we still need to add the audio with mp4box or can we use mp4muxer?
daddy
Posts: 68
Joined: Sat Jul 06, 2019 8:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by daddy »

jesper1994 wrote:
Wed Oct 13, 2021 9:20 am
daddy wrote:
Sat Sep 18, 2021 8:59 am
KoshIreland wrote:
Fri Sep 17, 2021 9:34 am
Hi. Sorry to ask something already covered in this thread, but I haven't been able to figure out the latest/best info.

Back in Dec 2020, I started using scripts from this thread to convert Dolby Vision UHD discs (Game of Thrones) to DV MP4, but I never finished the process.

What's the best option currently to convert these discs to a DV file that will play on AppleTV with LG C8 — or using LG C8 built-in player?
GoT episodes are in FEL.
On C7, C8, C9, the best option is to make DV dual layers mp4 files (dvhe.07.06) and to play them directly with the LG built-in player.
For each episode, extract BL, EL and audio files with tsmuxer, then mux the mp4 file with mp4muxer.
The result is almost 1.8 TB for 98 files (mp4 + srt files)
Do we still need to add the audio with mp4box or can we use mp4muxer?
When the audio is in ac3 or eac3 you can mux it directly with the BL and EL with mp4muxer.
When the audio is in dts or dts-hd you have to mux BL and EL with mp4muxer, and then add the audio to the mp4 with mp4box
staknhalo
Posts: 40
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

BTW I posted about this elsewhere before but can't remember if I posted it here

In case anyone is unaware, install this Win Store plugin: https://www.microsoft.com/en-us/p/app/9 ... verviewtab

It will allow playback of DV 5 & 8 in mp4 container ***NOT MKV CONTAINER*** Windows 10 & 11 ***FOR STORE APPS ONLY SUCH AS MICROSOFT MOVIES & TV APP - NOT WIN32 APPS*** it appears to be player led DV playback entirely within the given app as the entirety of player + display if that makes any sense (HDR must be on before, display won't kick into DV mode at all, the RPU is processed and video output altered within the app window only)

This is separate from having a Dolby Vision certified computer which has DV plugins/files installed through Dolby Access - for all I know that might be for Profile 7/UHD/ FEL playback on a PC or something but don't have it/a DV certified computer so can't test that

Here's the test file quietvoid posted in mp4 format I used to verify

https://mega.nz/file/hDggyRpJ#1GDdqVWh3 ... l5EKAF716U

If you playback the test file in the Microsoft Movies & TV app without the DV plugin installed, you will see no visual shifts when metadata changes in test file, once the DV plugin is installed the DV metadata be applied - VLC Win Store app doesn't work with DV even with this DV plugin installed, old Plex Win Store app does work with DV when that's installed though
Last edited by staknhalo on Thu Oct 14, 2021 3:57 pm, edited 2 times in total.
FubbAyH
Posts: 24
Joined: Wed Jan 02, 2019 7:06 am

Re: Dolby Vision now possible through MP4 Mux.

Post by FubbAyH »

This is interesting stuff!
staknhalo wrote:
Thu Oct 14, 2021 3:35 pm
it appears to be DV player led playback entirely within the given app (display won't kick into DV mode, the RPU is processed and video output altered by the given Win Store video-playback app itself)
So would it be fair to say that it's basically automatically converting/downgrading the DV source to SDR/HDR10?
Manixx2020beyound
Posts: 97
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

FubbAyH wrote:
Thu Oct 14, 2021 3:50 pm
This is interesting stuff!
staknhalo wrote:
Thu Oct 14, 2021 3:35 pm
it appears to be DV player led playback entirely within the given app (display won't kick into DV mode, the RPU is processed and video output altered by the given Win Store video-playback app itself)
So would it be fair to say that it's basically automatically converting/downgrading the DV source to SDR/HDR10?
It’s sdr as far as I know.
But better sdr than mad vr from what I’m told.
staknhalo
Posts: 40
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Manixx2020beyound wrote:
Thu Oct 14, 2021 3:53 pm
FubbAyH wrote:
Thu Oct 14, 2021 3:50 pm
This is interesting stuff!
staknhalo wrote:
Thu Oct 14, 2021 3:35 pm
it appears to be DV player led playback entirely within the given app (display won't kick into DV mode, the RPU is processed and video output altered by the given Win Store video-playback app itself)
So would it be fair to say that it's basically automatically converting/downgrading the DV source to SDR/HDR10?
It’s sdr as far as I know.
But better sdr than mad vr from what I’m told.
It puts out HDR brightness/levels (by eye not measurement) when the DV file has an HDR10 base (P8) on my end if that's what you mean? HDR has to be on beforehand on Windows for HDR media/gaming though - even with a TV instead of monitor - it doesn't kick into HDR for you like TVs/TV devices do
RESET_9999
Posts: 604
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

that is old news.... the dolby extension will allow DV P5 playback for certified DV PC and will fallback in HDR10 or SDR for the non-certified pc..
I tested it a while ago, both the HDR10 and SDR tonemapping sucks.

Also, you need the HEVC extension which isn't free anymore ( thanks Micro$oft)
Please forgive my English.
Sony x700 ----> Denon AVR ----> LG OLED C8
FIX the x700/x800m2/oppo DT-DL TS bug with this file
staknhalo
Posts: 40
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Thu Oct 14, 2021 4:07 pm
that is old news.... the dolby extension will allow DV P5 playback for certified DV PC and will fallback in HDR10 or SDR for the non-certified pc..
I tested it a while ago, both the HDR10 and SDR tonemapping sucks.

Also, you need the HEVC extension which isn't free anymore ( thanks Micro$oft)
But on profile 8 files as confirmed with that test file it's processing and displaying the changes in the DV RPU metadata when playing back - so it's not just 'HDR/SDR only' output on non-certified (mine) PCs, it's the dynamic DV metadata output/DV playback as well for uncertified PCs
RESET_9999
Posts: 604
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Thu Oct 14, 2021 4:12 pm
RESET_9999 wrote:
Thu Oct 14, 2021 4:07 pm
that is old news.... the dolby extension will allow DV P5 playback for certified DV PC and will fallback in HDR10 or SDR for the non-certified pc..
I tested it a while ago, both the HDR10 and SDR tonemapping sucks.

Also, you need the HEVC extension which isn't free anymore ( thanks Micro$oft)
But on profile 8 files as confirmed with that test file it's processing and displaying the changes in the DV RPU metadata when playing back - so it's not just 'HDR/SDR only' output on non-certified (mine) PCs, it's the dynamic DV metadata output/DV playback as well for uncertified PCs
wait what ? you are triggering DV from a non-certified DV PC ?
Please forgive my English.
Sony x700 ----> Denon AVR ----> LG OLED C8
FIX the x700/x800m2/oppo DT-DL TS bug with this file
staknhalo
Posts: 40
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Thu Oct 14, 2021 4:17 pm
staknhalo wrote:
Thu Oct 14, 2021 4:12 pm
RESET_9999 wrote:
Thu Oct 14, 2021 4:07 pm
that is old news.... the dolby extension will allow DV P5 playback for certified DV PC and will fallback in HDR10 or SDR for the non-certified pc..
I tested it a while ago, both the HDR10 and SDR tonemapping sucks.

Also, you need the HEVC extension which isn't free anymore ( thanks Micro$oft)
But on profile 8 files as confirmed with that test file it's processing and displaying the changes in the DV RPU metadata when playing back - so it's not just 'HDR/SDR only' output on non-certified (mine) PCs, it's the dynamic DV metadata output/DV playback as well for uncertified PCs
wait what ? you are triggering DV from a non-certified DV PC ?
yes my pc is all self built not store bought and not DV certified at all - my PC monitor is HDR10 only not DV (my TV though is)

with that dolby vision windows plugin installed rpu changes in dv8 files which that test file demonstrates - display correctly on my computer/computer monitor and playback with the RPU changes applied/displayed/apparent when watching - uninstall the DV plugin and the video plays back without any changes being apparent even though the text in the test video indicates you should be seeing visual changes

profile 5 files also play back in correct colors for me only when that plugin is installed, in HDR brightness levels (again by eye not measurement) and I'm assuming RPU metadata too like p8 but no p5 file to test for RPU that like as with the p8 test file
Post Reply