Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

#6886 Post by quietvoid » Sat Jul 16, 2022 7:29 pm

sw5163 wrote:
Sat Jul 16, 2022 7:14 pm
Sorry I’m a little confused, what do you mean by “dynamic metadata”?
The original post asked about HDR playback.

What you're talking about is the Windows app, which only outputs SDR.
That does dynamic tone mapping but no HDR output.

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6887 Post by sw5163 » Sat Jul 16, 2022 7:52 pm

quietvoid wrote:
Sat Jul 16, 2022 7:29 pm
The original post asked about HDR playback.

What you're talking about is the Windows app, which only outputs SDR.
That does dynamic tone mapping but no HDR output.
My bad. Sorry.

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6888 Post by sw5163 » Sun Jul 17, 2022 6:30 am

ragico wrote:
Sat Jul 16, 2022 5:09 pm
RESET_9999 wrote:
Sat Jul 16, 2022 4:45 pm
one last thing to try,
fake p5 mkv: https://drive.google.com/file/d/1H_edhc ... sp=sharing
The file cant be played in Plex.
Wait, there is something wrong with the file. Windows TV and Movie can't play it either.
I got an error message when demux it through ffmpeg.
Could you please re-upload that and give it a re-test?
Just for preciseness.

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#6889 Post by RESET_9999 » Sun Jul 17, 2022 12:24 pm

sw5163 wrote:
Sun Jul 17, 2022 6:30 am
Wait, there is something wrong with the file. Windows TV and Movie can't play it either.
I got an error message when demux it through ffmpeg.
Could you please re-upload that and give it a re-test?
Just for preciseness.
I don't know, it plays fine in MPC and MPV.
I tried with another fake p5 mkv and indeed, the Movies and TV app can't play it.

FYI, @ragico tested, LPCM, DTSHD, and TrueHD in a dvh1 MP4 container and the ATV fails the play the audio.
So the best we can get is EAC3 1536kbps.

script is almost ready:
Image
Last edited by RESET_9999 on Sun Jul 17, 2022 3:13 pm, edited 1 time in total.

Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#6890 Post by Manixx2020beyound » Sun Jul 17, 2022 2:59 pm

quietvoid wrote:
Sat Jul 16, 2022 6:03 pm
sofakng wrote:
Sat Jul 16, 2022 5:48 pm
Is it possible to decode and play Dolby Vision movies on a PC monitor?

For example, the Alienware AW3423DW (34" Ultrawide, QD-OLED, "HDR") doesn't support Dolby Vision but can software decode the Dolby Vision and display it instead of having the monitor decode it?
Not completely supported as if it was played in real Dolby Vision.
At best you can playback profile 5 in HDR10, with no extra dynamic tone mapping using the metadata.

mpv supports partial processing of profile 7/8 as well, but that might be inaccurate in comparison.
As the processing isn't complete (FEL, for example).
I use a dv tv as monitor & widows app this is the playback I get from windows app
This is probably as close to dv on a pc with mp4, pc is in hdr mode when dv kicks in.
https://drive.google.com/file/d/1bEHAjx ... p=drivesdk

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#6891 Post by RESET_9999 » Sun Jul 17, 2022 3:20 pm

Manixx2020beyound wrote:
Sun Jul 17, 2022 2:59 pm
I use a dv tv as monitor & widows app this is the playback I get from windows app
This is probably as close to dv on a pc with mp4, pc is in hdr mode when dv kicks in.
https://drive.google.com/file/d/1bEHAjx ... p=drivesdk
you forgot to mention that you have to use the Vertex to trick windows into thinking you have a DV monitor. :)

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#6892 Post by RESET_9999 » Sun Jul 17, 2022 3:23 pm

quietvoid wrote:
Sat Jul 16, 2022 7:29 pm
The original post asked about HDR playback.

What you're talking about is the Windows app, which only outputs SDR.
That does dynamic tone mapping but no HDR output.
actually, if you turn HDR on in the windows display settings, you get HDR10 output with the RPU being used for the Windows app. Works with MP4 only.
Last edited by RESET_9999 on Sun Jul 17, 2022 5:56 pm, edited 1 time in total.

Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#6893 Post by Manixx2020beyound » Sun Jul 17, 2022 5:21 pm

Monitor need to be seen as this
Monitor need to be seen as this
46246671-22CB-4053-B3AB-1F35A0450056.jpeg (1.91 MiB) Viewed 9821 times
RESET_9999 wrote:
Sun Jul 17, 2022 3:20 pm
Manixx2020beyound wrote:
Sun Jul 17, 2022 2:59 pm
I use a dv tv as monitor & widows app this is the playback I get from windows app
This is probably as close to dv on a pc with mp4, pc is in hdr mode when dv kicks in.
https://drive.google.com/file/d/1bEHAjx ... p=drivesdk
you forgot to mention that you have to use the Vertex to trick windows into thinking you have a DV monitor. :)
True lol

sergonnn111
Posts: 12
Joined: Sun Jul 17, 2022 7:32 pm

Re: Dolby Vision now possible through MP4 Mux.

#6894 Post by sergonnn111 » Sun Jul 17, 2022 7:36 pm

Hi guys how can i do dolby vision file for my LG OLED 2018 from mkv 8 profile hybrid dolby vision ?

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6895 Post by sw5163 » Sun Jul 17, 2022 8:33 pm

RESET_9999 wrote:
Sun Jul 17, 2022 12:24 pm
script is almost ready:
Thank you all for your guys' efforts! Excellent work!
RESET_9999 wrote:
Sun Jul 17, 2022 12:24 pm
I don't know, it plays fine in MPC and MPV.
I tried with another fake p5 mkv and indeed, the Movies and TV app can't play it.
Maybe mkvtoolnix did something wrong when remux fake p5 mkv?
I'm not familiar with mkvtoolnix.
RESET_9999 wrote:
Sun Jul 17, 2022 12:24 pm
FYI, @ragico tested, LPCM, DTSHD, and TrueHD in a dvh1 MP4 container and the ATV fails the play the audio.
So the best we can get is EAC3 1536kbps.
That is strange, Apple says it can play them.
The attachment 无标题.png is no longer available
TrueHD and DTS shouldn't work.
LPCM(7.1), flac(7.1), alac(6.1) all work fine on my iPad. But it would be impossible to tell if they are true loseless through the built-in speaker, lol.

I have some samples produced through my usually workflow. These could probably be the highest standards video on iOS devices for now. Feel free to test them:
https://drive.google.com/drive/folders/ ... sp=sharing

Those files are from Dolby demo disc "Core Universe". They are produced with the following command:
1. FLAC_7.1 (ffmpeg only encodes it in mp4)
ffmpeg -i 00003.m2ts -map 0:2 -c flac -strict -2 flac.mp4
2. ALAC_6.1 (ffmpeg only encodes 6.1)
ffmpeg -i 00003.m2ts -map 0:2 -c alac alac.mp4
3. PCM_7.1 (ffmpeg only encodes it in mov)
ffmpeg -i 00003.m2ts -map 0:2 -c pcm_s32le pcm.mov

And then muxed with BL_RPU.hevc by mp4box
mp4box -add BL_RPU.hevc -add audio.mp4 -new out.mp4

ALAC_6.1 sound channel is like this:
无标题.png
无标题.png (93.43 KiB) Viewed 9788 times
Also I would like to ask those pcm encoders in ffmpeg, cause there are so many of them.
pcm_(signed/unsigned/float)(16/32/64)bit(little-endian/big-endian), how can I know which is best to use?
I normally just use -c:a flac, it also saves some bandwidth.
Last edited by sw5163 on Sun Jul 17, 2022 10:42 pm, edited 1 time in total.

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6896 Post by sw5163 » Sun Jul 17, 2022 8:47 pm

RESET_9999 wrote:
Sun Jul 17, 2022 3:23 pm
actually, if you turn HDR on in the windows display settings, you get HDR10 output with the RPU being used for the Windows app. Works with MP4 only.
"with the RPU being used", like software decoding DV and lldv? or HDR10+? or just plain HDR10?
Samsung refuses to support DV.

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6897 Post by sw5163 » Sun Jul 17, 2022 9:20 pm

RESET_9999 wrote:
Sat Jul 16, 2022 4:22 pm
sw5163 wrote:
Sat Jul 16, 2022 4:19 pm
Do you have a file with a lot of cmv40 data?
According to saindriches, cmv4 seems to have a problem on Apple platform. I want to give it a test but I don't know what file is FEL with cmv40.
屏幕截图 2022-07-16 120548.png
you can check out the movie Hitman's Wife's Bodyguard. And I think you can remove cmv4.x with the dovi_tool
Update: This particular file seems fine to my eyes on SDR iPad. Hopefully apple can handle cmv4.x properly.

staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

#6898 Post by staknhalo » Sun Jul 17, 2022 9:39 pm

sw5163 wrote:
Sun Jul 17, 2022 8:47 pm
RESET_9999 wrote:
Sun Jul 17, 2022 3:23 pm
actually, if you turn HDR on in the windows display settings, you get HDR10 output with the RPU being used for the Windows app. Works with MP4 only.
"with the RPU being used", like software decoding DV and lldv? or HDR10+? or just plain HDR10?
Samsung refuses to support DV.
RPU effects are displayed in the Windows apps.

Has to be a Microsoft store app, not Win32 app and you need the Dolby Vision Extensions app from the store installed to make it work in store apps. Works with Microsoft Movies & TV app and new Media Player store app. Worked in the old Plex store app too but it's broken with collections introduction so not worth it IMO there for Plex. Has to be MP4 as stated.

It's how I verify any RPU misalignments myself when making the DV files on a Win10/11 computer for a while now.

Used to be able to watch too if you didn't care about pq inaccuracies but there's a bug lately on my end with Win 11 at least across reinstalls, DV file will cause video orientation to constantly switch upside down back again upside down again etc.

Playback/player probably tripping up parsing the Metadata, it's only on DV files it happens. Or they did something intentional to make you need more than we had so you go buy a licenced DV PC.

I just use my computer just to verify anyway like I said as my monitor has no local dimming so after 30 mins in HDR my eyes are bleeding anyway, oh well.
Last edited by staknhalo on Sun Jul 17, 2022 9:46 pm, edited 1 time in total.

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#6899 Post by RESET_9999 » Sun Jul 17, 2022 9:46 pm

sw5163 wrote:
Sun Jul 17, 2022 8:47 pm
RESET_9999 wrote:
Sun Jul 17, 2022 3:23 pm
actually, if you turn HDR on in the windows display settings, you get HDR10 output with the RPU being used for the Windows app. Works with MP4 only.
"with the RPU being used", like software decoding DV and lldv? or HDR10+? or just plain HDR10?
Samsung refuses to support DV.
it works just like LLDV but in HDR10 PQ with brightness ajdustments ...

see DV P8:
https://www.youtube.com/watch?v=lQFjyBm7ToA

HDR10 P8 Win 10 Movies&TV app:
https://www.youtube.com/watch?v=3m0M_Svn-xQ

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#6900 Post by sw5163 » Sun Jul 17, 2022 10:22 pm

RESET_9999 wrote:
Sun Jul 17, 2022 9:46 pm
sw5163 wrote:
Sun Jul 17, 2022 8:47 pm
RESET_9999 wrote:
Sun Jul 17, 2022 3:23 pm
actually, if you turn HDR on in the windows display settings, you get HDR10 output with the RPU being used for the Windows app. Works with MP4 only.
"with the RPU being used", like software decoding DV and lldv? or HDR10+? or just plain HDR10?
Samsung refuses to support DV.
it works just like LLDV but in HDR10 PQ with brightness ajdustments ...
Let me get this straight.
In theory, we can have BL+RPU(MEL) played through Windows app on non DV support display (like Samsung QD-OLED) as LLDV.
And if we can adapt that DV extension as decoder, theoretically we are using software to decode DV and completely disregard DV licence certification?
This seems a little unreal to me.
staknhalo wrote:
Sun Jul 17, 2022 9:39 pm
if you didn't care about pq inaccuracies
I think that is what DV intends to do, not having exactly pq accuracy.
Basically no device is capable of 4000 or 10000 nit brightness or 100% Bt.2020
The RPU records how filmmaker would like the video to be shown on 100nitSDR/600nit/1000nit/10000nit display.
So it is supposed to not follow the base HDR10 pq curve.
This is my understanding, please point out my mistake if there is something wrong.

Post Reply