Dolby Vision now possible through MP4 Mux.
-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Except that it is not a true P7/P8 to P5 conversion. It is newly generated metadata and all the artistic trims are gone. Basically the same as generating DV from madvr.
In order to get the same DV, the dovi_tool would need to be able to convert RPU to XML (same structure as resolve XML). Then we could import the metadata in resolve and encode it to P5.
Will be useful to convert all my HDR10 patterns to Profile 5 though.
In order to get the same DV, the dovi_tool would need to be able to convert RPU to XML (same structure as resolve XML). Then we could import the metadata in resolve and encode it to P5.
Will be useful to convert all my HDR10 patterns to Profile 5 though.
Re: Dolby Vision now possible through MP4 Mux.
It would heavily depend on a file.rkjnsn wrote: ↑Tue May 24, 2022 11:44 pmFor movies with neither a Dolby Vision track nor HDR10+ metadata to convert, how much of a difference am I likely to notice on an LG C1 between auto-generating shot-by-shot metadata versus just playing it back with static metadata? Is it more likely to make a difference in a brighter room (so Dolby Vision IQ can do its thing) than a fully dark room?
Not everybody fills full static metadata, some are using incorrect metadata that ruins tone mapping for OLED tvs without good DTM (LG)
For example, iTunes, ATV and Disney content (including disks) contains MaxCLL value way above what you can actually see in the actual movie. And if it goes above your TV's maximum brightness it will skew the EOTF target and increase brightness roll off. So 500 nits image will be presented in 350 nits. Warner brothers does the same stupid shit, when their logo is about 900 nits bright and the entire movie is 150-200 nits MaxFALL.
Famously, new Spider-Man has MaxCLL of 10000 nits even though it was graded on Sony OLED with maximum brightness of 1000 nits. It also scales up MaxFALL value so it messess up all the tone mapping in the film. Thankfully most of those fucked up movies come with Dolby Vision.
Now in this particular example, if the movie is only available in HDR10 (like Batman v Superman) MadVR DV would help alot as it will allow your TV work to its best potential and it will exclude that one 10000 nits frame from everything else in the content.
-
Manixx2020beyound
- Posts: 127
- Joined: Thu Oct 08, 2020 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
Also a p5 encoded from a master MxF that already has been made with Dolbyvision meta retains all the artistic intent in the conversion to p5 tested that as well.RESET_9999 wrote: ↑Wed May 25, 2022 2:29 pmExcept that it is not a true P7/P8 to P5 conversion. It is newly generated metadata and all the artistic trims are gone. Basically the same as generating DV from madvr.
In order to get the same DV, the dovi_tool would need to be able to convert RPU to XML (same structure as resolve XML). Then we could import the metadata in resolve and encode it to P5.
Will be useful to convert all my HDR10 patterns to Profile 5 though.
Yep Rpu to xml would put the icing on the cake..
-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
So @manix converted the "mutli pattern" to profile 5 and as expected, no more colorspace conversion/clipping issues on the Shield. No blue banding as well.
We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
no color issues:
P5 pattern : https://drive.google.com/file/d/1gFrasF ... sp=sharing
P8.1 pattern (DV MP4 straight from resolve) : https://drive.google.com/file/d/1fCjcMH ... sp=sharing
color issues:
P8.1 pattern (dovi_tool XML from resolve) :https://drive.google.com/file/d/1Aq3v03 ... sp=sharing
P8.1 pattern (dovi_tool madvr) : https://drive.google.com/file/d/1NbXM2p ... sp=sharing
We are going to make a P8.1 of Doctor Sleep in resolve, I bet there's no more red push...
We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
no color issues:
P5 pattern : https://drive.google.com/file/d/1gFrasF ... sp=sharing
P8.1 pattern (DV MP4 straight from resolve) : https://drive.google.com/file/d/1fCjcMH ... sp=sharing
color issues:
P8.1 pattern (dovi_tool XML from resolve) :https://drive.google.com/file/d/1Aq3v03 ... sp=sharing
P8.1 pattern (dovi_tool madvr) : https://drive.google.com/file/d/1NbXM2p ... sp=sharing
We are going to make a P8.1 of Doctor Sleep in resolve, I bet there's no more red push...
Re: Dolby Vision now possible through MP4 Mux.
This has to be one of the biggest news in this thread in a while. Hopefully the difference can be reverse engineered (looks hopeful at @quietvoid). I really thought we’d need to wait for a complete new SoC to maybe one day get DV (at least MEL)+Passthrough Audio in a device to simply stream like the Shield.
Shield TV 2017 -> LG DSN10YG Soundbar with SPK8 Rears -> LG B1 OLED
Re: Dolby Vision now possible through MP4 Mux.
The encoded files aren't comparable.RESET_9999 wrote: ↑Wed May 25, 2022 11:02 pmWe discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
Resolve: BT.2020 mastering display, 10000/256 CLL, chroma location center.
Other: DCI-P3 mastering display, 1000/400 CLL, chroma location top-left.
And in the RPU, L6 and L9 are different (Resolve matches BT.2020 primaries, dovi_tool uses DCI-P3 by default).
I doubt L11 makes a difference unless the display supports CM v4.x.
Finally, Resolve doesn't support shot based metadata, so every frame carries "scene_refresh_flag": 1.
Those should obviously be matched first before jumping to conclusions.
MakeMKV shouldn't be doing anything different, as the source isn't modified.
Also, these MP4 files are missing the proper compatibility ID for 8.1.
After that, what you can try:
- Adding a default 100 nits L2 trim
- Copying the L3
- Copying the L4
-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
the spears and munsill pattern is encoded with maxcll/fall 1000/400 but resolve and madvr measure it 10 000nitsquietvoid wrote: ↑Thu May 26, 2022 12:39 amThe encoded files aren't comparable.RESET_9999 wrote: ↑Wed May 25, 2022 11:02 pmWe discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
Resolve: BT.2020 mastering display, 10000/256 CLL, chroma location center.
Other: DCI-P3 mastering display, 1000/400 CLL, chroma location top-left.
And in the RPU, L6 and L9 are different (Resolve matches BT.2020 primaries, dovi_tool uses DCI-P3 by default).
I doubt L11 makes a difference unless the display supports CM v4.x.
Finally, Resolve doesn't support shot based metadata, so every frame carries "scene_refresh_flag": 1.
Those should obviously be matched first before jumping to conclusions.
MakeMKV shouldn't be doing anything different, as the source isn't modified.
Also, these MP4 files are missing the proper compatibility ID for 8.1.
Resolve automatically calculated a new maxcll/fall at delivery, same for L6. It defaults to chroma type 1 as well, i dont think we can change that.
I'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
correct me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)Also, these MP4 files are missing the proper compatibility ID for 8.1.
Re: Dolby Vision now possible through MP4 Mux.
L9 needs to be matched too.RESET_9999 wrote: ↑Thu May 26, 2022 12:53 amI'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
I think the latest version of mp4muxer doesn't work only on LG TV internal player?RESET_9999 wrote: ↑Thu May 26, 2022 12:53 amcorrect me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)
So you can use latest version for the Shield, or tsmuxer.
If I can find time I'll try reencoding the pattern with my suggestions.
Maybe this weekend.
-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
thanks , that would be great because i have no idea how to do L3,L4
Re: Dolby Vision now possible through MP4 Mux.
It's pretty simple. Run dovi_tool info on the Resolve RPU, copy paste the blocks into the generate config.RESET_9999 wrote: ↑Thu May 26, 2022 1:06 amthanks , that would be great because i have no idea how to do L3,L4
Example: https://github.com/quietvoid/dovi_tool/ ... e.json#L16
Also, can you clarify which bug is fixed with the Resolve file on the Shield?
The red push or also the blue banding?
-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
the red push , i dont know yet.
The blue banding and colorspace conversion/clipping are fixed. It looks perfect like the C8 and X700/X800m2
reference (dovitool version): https://slow.pics/c/ga3ytybR
resolve version (not same camera settings as the old comparison):

-
RESET_9999
- Posts: 2416
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
red push is still present with the resolve files 
re-injecting the same rpu doesnt trigger the bug but reinjecting it to the other video does so the injecting part is fine.
Why does the bug happen with madvr generated RPU as well and only on the shield? I guess just editing L5/L6 for madvr is not enough. very strange...
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
re-injecting the same rpu doesnt trigger the bug but reinjecting it to the other video does so the injecting part is fine.
Why does the bug happen with madvr generated RPU as well and only on the shield? I guess just editing L5/L6 for madvr is not enough. very strange...
EDIT: it happens only when the BL is BT2020 MD. so yeah it's a colorspace mismatch but it only causes problems on the shield.
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
Last edited by RESET_9999 on Thu May 26, 2022 11:19 am, edited 2 times in total.
-
realbabilu
- Posts: 22
- Joined: Sun May 15, 2022 4:23 am
Re: Dolby Vision now possible through MP4 Mux.
my android hisense tv works with mp4muxer mp4 pc / m4v subler mac for p5 p7 p8.1, it support atmos too.quietvoid wrote: ↑Thu May 26, 2022 1:03 amL9 needs to be matched too.RESET_9999 wrote: ↑Thu May 26, 2022 12:53 amI'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
I think the latest version of mp4muxer doesn't work only on LG TV internal player?RESET_9999 wrote: ↑Thu May 26, 2022 12:53 amcorrect me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)
So you can use latest version for the Shield, or tsmuxer.
If I can find time I'll try reencoding the pattern with my suggestions.
Maybe this weekend.
except playing p7 fel single layer (somehow jitter...), and lazy cannot play subtitle inside mp4/m4v
any p7 double layer fel that converted to p8.1 will downgraded to HDR10 with DVtool.
Any TSmuxer converted will have sync issue, may the subtitles hdv alone, or out of sync audio.
I definitely suggest subler muxer for any Apple devices, may including ATV perhaps, not tested on that.
So basically mp4muxer has more compatibility in my internal tv player, except that doesnt have delay audio offset. it will outsync when the audio have offset.
My question:
what is --dv-bl-compatible-id option did on mp4muxer? especially for p8 profile, that is said must have.
can mp4box fix outsync offset from mp4muxer?
Re: Dolby Vision now possible through MP4 Mux.
Now it worked like a charm! Thank you!RESET_9999 wrote: ↑Mon May 23, 2022 2:25 amyou remuxed as bluray folder and tried to play the m2ts ? that's the problem.
You have to mux your BD straight to TS or M2TS.
Re: Dolby Vision now possible through MP4 Mux.
Use this for BT.2020:RESET_9999 wrote: ↑Thu May 26, 2022 3:33 amEDIT: it happens only when the BL is BT2020 MD. so yeah it's a colorspace mismatch but it only causes problems on the shield.
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
Code: Select all
{
"Level9": {
"length": 1,
"source_primary_index": 2
}
}If so there's really nothing we can do. Most titles are mastered in DCI-P3.
The original pattern you shared as "multi pattern DV P8.ts" is BT.2020, though. It didn't have L9 metadata.