Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

RESET_9999 wrote:
Fri Oct 08, 2021 12:23 am
I don't know why you're quiet about it but you should scream out loud that you updated your DV tools to generate DV metadata for ANY HDR10 MOVIE using madVR measurements lol
+1 , amazing work, just generated a profile 08.06 from an HDR10 sample, plays fine with internal Plex app: 04-2160p_23fps_dovi_p81-l_s02e01_cyan_error.ts

madvr output:

Code: Select all

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: 999, MaxFALL: 678 nits
Measurements:
  Frames: 2160, MaxCLL 100%: 1680, 99.9%: 1545, MaxFALL: 58, AvgFALL: 9, AvgFMLL: 524 nits
generator_madvr.json:

Code: Select all

{
    "length": 1000,
    "level2": [
        {
            "target_nits": 1000
        }
    ],
    "level6": {
        "max_display_mastering_luminance": 1000,
        "min_display_mastering_luminance": 1,
        "max_content_light_level": 1000,
        "max_frame_average_light_level": 58
    }
}
process:

Code: Select all

# run madvr madmeasure on the mkv file
# generate RPU from madmeasure bin file
dovi_tool.exe generate -j generator_madvr.json --madvr-file l_0201.bin -o RPU_from_madVR.bin
# extract hevc video and audio with mkvextract
# inject the generated RPU into stream
dovi_tool.exe inject-rpu -i video.hevc --rpu-in RPU_from_madVR.bin -o injected_output.hevc
# mux together with tsmuxer
quietvoid wrote:
Thu Oct 07, 2021 10:59 pm
Tested some files on the new FireTV Stick 4K Max.
Still has trouble with HDR10+ ending up with a black screen when Dolby Vision is triggered.
quietvoid wrote:
Sat Oct 09, 2021 2:57 am
Just noticed the new Firestick 4K Max has grey letterbox bars with cropped Dolby Vision content.
Not cool, since it can also mean L2 is ignored.
Is this with from official apps as well (ATV+, Disney+, etc)?
That's a problem, probably never will be fixed :)
quietvoid wrote:
Fri Oct 08, 2021 4:03 pm
By the way, since now the Firestick 4K Max allows disabling HDR.
Playing profile 5 files results in proper SDR colors.
What do you mean about this? Does it do DoVi HDR to SDR tonemapping?

Edit: what happens with the "min_pq" L1 metadata during madmeasure2RPU generation? Will it be always 0? (I don't think that madvr's bin file has any info about it.)
Edit2: sample uploaded
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Sat Oct 09, 2021 8:44 am
quietvoid wrote:
Thu Oct 07, 2021 10:59 pm
Tested some files on the new FireTV Stick 4K Max.
Still has trouble with HDR10+ ending up with a black screen when Dolby Vision is triggered.
quietvoid wrote:
Sat Oct 09, 2021 2:57 am
Just noticed the new Firestick 4K Max has grey letterbox bars with cropped Dolby Vision content.
Not cool, since it can also mean L2 is ignored.
Is this with from official apps as well (ATV+, Disney+, etc)?
That's a problem, probably never will be fixed :)
I don't know since I'm not subscribed to ATV+ currently. Disney+ does not crop their video.
What's interesting though is that Hulu serves both HDR10+ and DoVi together and there were no complaints.

chros wrote:
Sat Oct 09, 2021 8:44 am
quietvoid wrote:
Fri Oct 08, 2021 4:03 pm
By the way, since now the Firestick 4K Max allows disabling HDR.
Playing profile 5 files results in proper SDR colors.
What do you mean about this? Does it do DoVi HDR to SDR tonemapping?
Yes, profile 5 files get tonemapped to SDR and look fine.

chros wrote:
Sat Oct 09, 2021 8:44 am
Edit: what happens with the "min_pq" L1 metadata during madmeasure2RPU generation? Will it be always 0? (I don't think that madvr's bin file has any info about it.)
min_pq is always set to 0. This is the same behavior as the HDR10+ derived generation.

edit: I just tested the L2 and it's not ignored at least..
Last edited by quietvoid on Sat Oct 09, 2021 1:53 pm, edited 1 time in total.
TickTock
Posts: 29
Joined: Fri Apr 17, 2020 2:39 am

Re: Dolby Vision now possible through MP4 Mux.

Post by TickTock »

mamelem wrote:
Sat Oct 09, 2021 7:13 am
Ok, I tried this route and now x800m2 can successfully switch to DV.

However, after pressing “Display”, it shows that the output resolution is only 1080p and not 4K (even though x800m2 list the source as 4K DV). When testing the original UHD, x800m2 can successfully output 4K.

I’m confused on what went wrong. From my understanding, since UHD DV are dual layers, I included the 1080p layer when remuxing into a new m2ts when using tsmuxeR.
What version of tsmuxer are you using? At one stage only nightly versions worked, I don't know if that has changed but here's the version I've been using:

https://easyupload.io/vsxlud

Have you tried playing the newly created files off a drive?
You're right, both layers should be left as is.
mamelem
Posts: 5
Joined: Fri Oct 08, 2021 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mamelem »

TickTock wrote:
Sat Oct 09, 2021 1:44 pm
mamelem wrote:
Sat Oct 09, 2021 7:13 am
Ok, I tried this route and now x800m2 can successfully switch to DV.

However, after pressing “Display”, it shows that the output resolution is only 1080p and not 4K (even though x800m2 list the source as 4K DV). When testing the original UHD, x800m2 can successfully output 4K.

I’m confused on what went wrong. From my understanding, since UHD DV are dual layers, I included the 1080p layer when remuxing into a new m2ts when using tsmuxeR.
What version of tsmuxer are you using? At one stage only nightly versions worked, I don't know if that has changed but here's the version I've been using:

https://easyupload.io/vsxlud

Have you tried playing the newly created files off a drive?
You're right, both layers should be left as is.
Connected x800m2 directly to TV instead of receiver fixed the issue. Guess it’s a bandwidth issue? Interesting that remuxed m2ts apparently takes up more bandwidth than UHD.
TickTock
Posts: 29
Joined: Fri Apr 17, 2020 2:39 am

Re: Dolby Vision now possible through MP4 Mux.

Post by TickTock »

mamelem wrote:
Sat Oct 09, 2021 1:52 pm
TickTock wrote:
Sat Oct 09, 2021 1:44 pm
mamelem wrote:
Sat Oct 09, 2021 7:13 am
Ok, I tried this route and now x800m2 can successfully switch to DV.

However, after pressing “Display”, it shows that the output resolution is only 1080p and not 4K (even though x800m2 list the source as 4K DV). When testing the original UHD, x800m2 can successfully output 4K.

I’m confused on what went wrong. From my understanding, since UHD DV are dual layers, I included the 1080p layer when remuxing into a new m2ts when using tsmuxeR.
What version of tsmuxer are you using? At one stage only nightly versions worked, I don't know if that has changed but here's the version I've been using:

https://easyupload.io/vsxlud

Have you tried playing the newly created files off a drive?
You're right, both layers should be left as is.
Connected x800m2 directly to TV instead of receiver fixed the issue. Guess it’s a bandwidth issue? Interesting that remuxed m2ts apparently takes up more bandwidth than UHD.
Do you have a "4K Signal Format" setting on your AVR? If so, is it set to "Enhanced"?
mamelem
Posts: 5
Joined: Fri Oct 08, 2021 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mamelem »

TickTock wrote:
Sat Oct 09, 2021 2:59 pm
mamelem wrote:
Sat Oct 09, 2021 1:52 pm
TickTock wrote:
Sat Oct 09, 2021 1:44 pm


What version of tsmuxer are you using? At one stage only nightly versions worked, I don't know if that has changed but here's the version I've been using:

https://easyupload.io/vsxlud

Have you tried playing the newly created files off a drive?
You're right, both layers should be left as is.
Connected x800m2 directly to TV instead of receiver fixed the issue. Guess it’s a bandwidth issue? Interesting that remuxed m2ts apparently takes up more bandwidth than UHD.
Do you have a "4K Signal Format" setting on your AVR? If so, is it set to "Enhanced"?
Oh wow, that’s it. Thanks!
These AV hardware keeps surprising me with important settings buried in menus lol.
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Sat Oct 09, 2021 1:23 pm

I don't know since I'm not subscribed to ATV+ currently. Disney+ does not crop their video.
What's interesting though is that Hulu serves both HDR10+ and DoVi together and there were no complaints.
wow, so they removed the ability to play properly DV cropped content on the new Firestick, that is a really stupid move since everything on iTunes or Prime is cropped.
The last time I checked , HULU content is not cropped as well. (they have ridiculously low bitrate though )
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Sat Oct 09, 2021 3:16 pm
wow, so they removed the ability to play properly DV cropped content on the new Firestick, that is a really stupid move since everything on iTunes or Prime is cropped.
The last time I checked , HULU content is not cropped as well. (they have ridiculously low bitrate though )
Yeah, I'm not sure if I'll bother switching to the 2018 model though. I only noticed the grey bars with fades to black.

Anyways, it made me create a cropped test sample for the important metadata: https://mega.nz/file/8YsRRKJa#_g_vX2voc ... raveYPpiIA
With this everything seems to work fine otherwise.

credits to FF.de for the original HDR10+ test sample, from which I used the different L1 metadata.
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Sat Oct 09, 2021 3:45 pm
Yeah, I'm not sure if I'll bother switching to the 2018 model though. I only noticed the grey bars with fades to black.
haha, trust me you will.
Having this exact problem with my x700, I just can't stand the grey black bars(especially the 1600px content). I even prefer my Shield with the red push for p8 cropped content(no red push with p5).
quietvoid wrote:
Sat Oct 09, 2021 3:45 pm
Anyways, it made me create a cropped test sample for the important metadata: https://mega.nz/file/8YsRRKJa#_g_vX2voc ... raveYPpiIA
With this everything seems to work fine otherwise.

credits to FF.de for the original HDR10+ test sample, from which I used the different L1 metadata.
interesting thanks... will try on my x700.
that sample has very small black bars though
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
FubbAyH
Posts: 55
Joined: Wed Jan 02, 2019 7:06 am

Re: Dolby Vision now possible through MP4 Mux.

Post by FubbAyH »

That's a great sample @quietvoid. It's very interesting to see examples of all the DV adjustments, because until now I've always been a little bit vague about exactly what the DV metadata can do.
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

quietvoid wrote:
Fri Oct 08, 2021 1:12 am
FubbAyH wrote:
Fri Oct 08, 2021 12:16 am
Would you be able to try one of the titles where the FEL is obvious (e.g. Power Rangers or Total Recall) to see if it is being used?
RESET_9999 wrote:
Fri Oct 08, 2021 12:23 am
that's because I did those samples with tsmuxer and it breaks something in the RPU when you split the file. I didn't know about that back then.
As @FubbAyH said, the ending credits of Power Ranger is a better way to verify if FEL is processed.
The credits are grey like HDR10, so nothing new.
And what about the Fire TV Cube (2019)? The Amlogic S922 SoC is able to decoding FEL.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

NiCE77 wrote:
Sun Oct 10, 2021 11:10 am
And what about the Fire TV Cube (2019)? The Amlogic S922 SoC is able to decoding FEL.
I don't know, I don't own a FireTV Cube.
ragico
Posts: 265
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

@quietvoid

Thanks for your Great work on Dovi.
Have you compiled an update Kodi version for the Firestick 4k (original not the Max)?
I am using the version available in Fandango's Matrix 19 Final
juzer7
Posts: 7
Joined: Sat Mar 06, 2021 2:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by juzer7 »

Guys, question.

I'm re-encoding some of my UHD Remuxes. I wanto to inject then RPU into re-encoded BL.
This way I can easily create MKV files with Dolby Vision Profile 8. Playing flawlessly on my Shield 2019 Pro.

But what if I wanted to create a file that I could play directly on different TVs? I just used mp4muxer to create DoVi Profile 8 mp4. However it plays well on my Shield but not on my LG OLED B9. (which I did not expcted as this TV is able to play MP4 Profile 7)

So what container and DoVi Profile should I choose if I want to create a file being able to be playd directly on TVs? At leat on LG OLED we are using in our family?
MP4? TS? M2TS? What profile?
I want this file to be able to be played on TV, Shield and Android mobile devices. If there is no DoVi compatibility then it would be good if the file is played as HDR. That's why I think the only format BL+RPU with HDR compatibility is Profile 8?

Maybe I can mux them into Profile 7 with some "fake" EL layer? :lol: Profile 7 MP4s play fine on my LG OLED and Android mobile devices.

Thx for help.
Last edited by juzer7 on Sun Oct 10, 2021 1:52 pm, edited 1 time in total.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

ragico wrote:
Sun Oct 10, 2021 1:39 pm
Have you compiled an update Kodi version for the Firestick 4k (original not the Max)?
I am using the version available in Fandango's Matrix 19 Final
I build my own but it's running Kodi 20 Nexus, and doesn't include all binary addons.
You can find it here: https://mega.nz/file/4BVTTAoI#KBpPwfQZ1 ... cjlh62Bh-s
The code branch is this https://github.com/quietvoid/xbmc/tree/ ... oska_build

I think Maven's builds might be better for you though, from here: https://www.kodinerds.net/index.php/Thr ... ür-Android
Both are probably a different package name.
Post Reply