Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 1183
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

evilmatcher wrote:
Sun Jun 26, 2022 3:33 pm
Is it possible that it is the TS-muxer that f.cks up? I have ripped Dune (2021) today from the disc (backup from disc and remux to TS) and exactly same happens. Dolby vision is fine, but the audio track is suddenly DD+. The mediainfo on the TS-file is Dolby TrueHD Atmos though.

I have tried the TS-muxer version I downloaded myself, but also the version from the DOVI tools. Same result.
I ripped and watched Dune 2021 from the disc and had no issue with Atmos (old Denon X2300W)
Please forgive my English.
Sony x800m2 ----> Denon AVR ----> LG OLED C2 77"
Dolby Vision Stuff
dwalme
Posts: 26
Joined: Sat Dec 10, 2011 2:38 am

Re: Dolby Vision now possible through MP4 Mux.

Post by dwalme »

evilmatcher wrote:
Sun Jun 26, 2022 11:57 am
I need some help on converting my copy of Saving Private Ryan ST-DL MKV (made with Makemkv 1.16.3) to DT-DL .ts format to play in my x800m2.

The video part works fine on the x800m2 and triggers DV on my TV and plays as it should, but I have no sound.

I have used the RESET_9999 script v.1.3.8 with Mode p7 --> Mode.3 --> workflow.1 and 2 and put the pieces back together in a TS-container with TSmuxer with same result.

My Denon receiver shows Atmos with the MKV-version, but I have no sound when played from the x800m2.

The mediainfo on both the MKV and TS version shows an Atmos True HD audiotrack. Please see the attached txt-files. When i press Info on my LG TV, it shows the DV video and a Dolby Digital+ 5.1 audiotrack.

Any suggestions to what i have missed?
I just recently did the same thing and I tested my copy with my X800M2 after I read this. I have a silent core and have no issues with TrueHD/Atmos playing properly.
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

RESET_9999 wrote:
Sun Jun 26, 2022 12:53 pm
sw5163 wrote:
Sat Jun 25, 2022 7:51 am
I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
Appletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
Well, i'm using ios device but i'm pretty sure it is playing dolby vision with dynamic brightness adjustment.
Apple TV needs more test but I believe it will play properly.
RESET_9999 wrote:
Sun Jun 26, 2022 12:53 pm
Appletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
Check Apple tv's screensaver, they are HDR10 based profile 5 with similar RPU just like my sample.
https://sylvan.apple.com/Aerials/2x/Vid ... R_HEVC.mov
https://sylvan.apple.com/Aerials/2x/entries.json

dolby vision(left) looks very different from base HDR10 one(right)
GL.PNG
GL.PNG (1.65 MiB) Viewed 2153 times
The use of profile 5 is just to get 'dvh1' flag and trick Apple's player to play proper dolby vision p8.1.

mp4box with following command can also get dolby vision to work:
mp4box -add BL_RPU.hevc -new p5.dvh1.mp4 (recommend)
mp4box -add BL_RPU.hevc:dv-profile=8.1 -new p8.hvc1.mp4(this doesn't work, it's a SMB bug)
mp4box -add BL_RPU.hevc:dv-profile=f8.1 -new p8.dvh1.mp4
But may stutter when fast-forward, so I prefer mp4muxer.
Last edited by sw5163 on Mon Aug 01, 2022 2:19 pm, edited 2 times in total.
RESET_9999
Posts: 1183
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

go read the past weeks in this thread, all the test have been done and confirmed that the appletv only support genuine p5 DV. ( i dont know about other apple devices)
Please forgive my English.
Sony x800m2 ----> Denon AVR ----> LG OLED C2 77"
Dolby Vision Stuff
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

RESET_9999 wrote:
Sun Jun 26, 2022 8:24 pm
go read the past weeks in this thread, all the test have been done and confirmed that the appletv only support genuine p5 DV. ( i dont know about other apple devices)
You mean these files? Many thanks to quietvoid for providing them!
quietvoid wrote:
Wed Jun 08, 2022 1:51 am
You can try the files here: https://mega.nz/file/xNcAVQhJ#ldoifbK6D ... dXkzw2HYgs

On a DM v1 (CM v2.9) supporting display/device: p81_cmv29_tests, p84_cmv29_tests.
On a DM v2 (CM v4.x) supporting display/device: p81_cmv40_tests, p84_cmv40_tests

LG C2:
- CM v2.9: L1, L2 works
- CM v4.x: L1 works, L2 alone doesn't work. L3 works, L8 works up to clip_trim, the rest makes no difference.

FireTV Stick 4K Max:
- CM v2.9: L1, L2 works
- CM v4.x: L1, L2 works, L3 and L8 don't.

CM v4.x L8 trims are also very different to L2.

There's a bug with the first 3s for HLG since I forgot to add the reshaping.
Those p8.1 HDR one work on iPad once I convert them to dvh1 p5.
Don't much like HLG, maybe I will test HLG later.
Maybe im wrong but it makes no sense iOS devices can play them yet Apple TV can't.
Im using this Apple's "file app" smb video from my computer instead of INFUSE. Not sure if that's what it's called.
The attachment fileapp.png is no longer available
CM v2.9 test result:
https://drive.google.com/file/d/1ojAXiv ... sp=sharing
L1 works
L2 works except ms_weight, can't see a difference.

CM v4.0 test result:
https://drive.google.com/file/d/18uibAw ... sp=sharing
L1 works
L2 some works
L3 works
L8 some works

Those screenshots can stand for what I have seen.
Now im 99% sure I found the way to play p8.1 on iOS devices.
original.PNG
original.PNG (1.84 MiB) Viewed 2125 times
l8_trim_offset_0.75.PNG
l8_trim_offset_0.75.PNG (1.8 MiB) Viewed 2125 times
Converted p8.1 sample:
https://drive.google.com/drive/folders/ ... sp=sharing
Anyone can make this with the following command:
ffmpeg -i p81_cmv29_tests.mkv -c copy cmv29.hevc
mp4muxer -i cmv29.hevc --dv-profile 5 --dvh1flag 0 -o cmv29.mp4

update:
Now im 100% sure since iPhone can play the sample link directly in safari and have dolby vision.
Anyone with Apple tv feel free to test.
HLG also works on iOS device.
mp4muxer -i hlg.hevc --dv-profile 5 --dvh1flag 0 -o p5_dvh1_8.4_HLG.mp4
mp4muxer -i hlg.hevc --dv-profile 8 --dv-bl-compatible-id 4 --hvc1flag 0 -o p8.4_dvh1_8.4_HLG.mp4
Both work to some extent.

Can't believe I got both cmv2.9 and cmv4.0 to work on 5 years ago iPad.
Credit goes to quietvoid and yusesope and their amazing tool!
Thanks again for everyone's help!

aside:
When converting "real" streaming profile 5 dvhe->dvh1 (for iOS native player compatibility)
mp4muxer results in black screen, mp4box works fine. They have exact same RPU.
Infuse shouldn't have this problem since it doesn't even need the conversion.
Last edited by sw5163 on Tue Jun 28, 2022 6:58 pm, edited 3 times in total.
quietvoid
Posts: 292
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

Well it's interesting but the output is definitely SDR on your iPad.
Someone with the Apple TV should be able to test if your files work in regular HDR Dolby Vision output.
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

quietvoid wrote:
Mon Jun 27, 2022 1:32 pm
Well it's interesting but the output is definitely SDR on your iPad.
Someone with the Apple TV should be able to test if your files work in regular HDR Dolby Vision output.
Im excited already to get them working on iOS devices!
And sorry for being stupid, but will there be a difference between hdr tonemapping and sdr tonemapping apart from peak brightness?
Tried to google that, most answer seem quite ambiguous to me.

For example if I have a 600 nit SDR monitor, a 600 nit HDR one, and a 1000 nit HDR one.
None of them is capable of reaching 4000 nit target dolby vision brightness.

To my understanding, they are all tonemapped based on the RPU, separately.
I always thought 600 nit SDR require software to provide tonemapping algorithm, and 600 nit HDR has hardware to do tonemapping in itself, maybe?
And if the tonemapping algorithm is same (in this case provided by the RPU), will there be a difference?

This dolby vision thing got me really confused.
Any explanation or reference website is very much appreciated.
Thanks in advance.
Last edited by sw5163 on Tue Jun 28, 2022 7:29 am, edited 1 time in total.
dcoke22
Posts: 1366
Joined: Wed Jul 22, 2020 11:25 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dcoke22 »

https://www.rtings.com/tv/learn/hdr-vs-sdr

As a short summary, most HDR capable TVs also support a wider color gamut than a SDR TV.

Most formats that can bring you HDR video can also bring you wider color gamut video.

So, most of the time, the tone mapping between HDR and SDR is more than just brightness, it is also mapping between a wider color gamut and a smaller one. But, it depends on the specific movie and on your TV & playback device's capabilities.
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

dcoke22 wrote:
Mon Jun 27, 2022 6:44 pm
https://www.rtings.com/tv/learn/hdr-vs-sdr

As a short summary, most HDR capable TVs also support a wider color gamut than a SDR TV.

Most formats that can bring you HDR video can also bring you wider color gamut video.

So, most of the time, the tone mapping between HDR and SDR is more than just brightness, it is also mapping between a wider color gamut and a smaller one. But, it depends on the specific movie and on your TV & playback device's capabilities.
Ah I get it!
Thank you so much for the explanation!
Manixx2020beyound
Posts: 125
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

sw5163 wrote:
Mon Jun 27, 2022 1:50 am
RESET_9999 wrote:
Sun Jun 26, 2022 8:24 pm
go read the past weeks in this thread, all the test have been done and confirmed that the appletv only support genuine p5 DV. ( i dont know about other apple devices)
You mean these files? Many thanks to quietvoid for providing them!
quietvoid wrote:
Wed Jun 08, 2022 1:51 am
You can try the files here: https://mega.nz/file/xNcAVQhJ#ldoifbK6D ... dXkzw2HYgs

On a DM v1 (CM v2.9) supporting display/device: p81_cmv29_tests, p84_cmv29_tests.
On a DM v2 (CM v4.x) supporting display/device: p81_cmv40_tests, p84_cmv40_tests

LG C2:
- CM v2.9: L1, L2 works
- CM v4.x: L1 works, L2 alone doesn't work. L3 works, L8 works up to clip_trim, the rest makes no difference.

FireTV Stick 4K Max:
- CM v2.9: L1, L2 works
- CM v4.x: L1, L2 works, L3 and L8 don't.

CM v4.x L8 trims are also very different to L2.

There's a bug with the first 3s for HLG since I forgot to add the reshaping.
Those p8.1 HDR one work on iPad once I convert them to dvh1 p5.
Don't much like HLG, maybe I will test HLG later.
Maybe im wrong but it makes no sense iOS devices can play them yet Apple TV can't.
Im using this Apple's "file app" smb video from my computer instead of INFUSE. Not sure if that's what it's called.
fileapp.png
CM v2.9 test result:
https://drive.google.com/file/d/1ojAXiv ... sp=sharing
L1 works
L2 works except ms_weight, can't see a difference.

CM v4.0 test result:
https://drive.google.com/file/d/18uibAw ... sp=sharing
L1 works
L2 some works
L3 works
L8 some works

Those screenshots can stand for what I have seen.
Now im 99% sure I found the way to play p8.1 on iOS devices.
original.PNGl8_trim_offset_0.75.PNG

Converted p8.1 sample:
https://drive.google.com/drive/folders/ ... sp=sharing
Anyone can make this with the following command:
ffmpeg -i p81_cmv29_tests.mkv -c copy cmv29.hevc
mp4muxer -i cmv29.hevc --dv-profile 5 --dvh1flag 0 -o cmv29.mp4

update:
Now im 100% sure since iPhone can play the sample link directly in safari and have dolby vision.
Anyone with Apple tv feel free to test.
HLG also works on iOS device.
mp4muxer -i hlg.hevc --dv-profile 5 --dvh1flag 0 -o p5_dvh1_8.4_HLG.mp4
mp4muxer -i hlg.hevc --dv-profile 8 --dv-bl-compatible-id 4 --hvc1flag 0 -o p8.4_dvh1_8.4_HLG.mp4
Both work to some extent.

Can't believe I got both cmv2.9 and cmv4.0 to work on 5 years ago iPad.
Credit goes to quietvoid and yusesope and their amazing tool!
Thanks again for everyone's help!

aside:
When converting "real" streaming profile 5 dvhe->dvh1 (for iOS native player compatibility)
mp4muxer results in black screen, mp4box works fine. They have exact same RPU.
Infuse shouldn't have this problem since it doesn't even need the conversion.
Hum,
We’ll it plays doblyvision on my pc all trims as well & triggers pc dv.
Are the colors correct is a good question doe.
But I’ll test it on my appletv but I would say it should play on appletv.

Yes it plays on appletv & all the l/trims
And u can upload that to your apple tv library
Stream it from Mac m1 to Apple TV
Stream it form pc to Apple TV works
Attachments
7FE14411-4531-47ED-842D-62ADD980CAC9.jpeg
7FE14411-4531-47ED-842D-62ADD980CAC9.jpeg (537.83 KiB) Viewed 1982 times
D990C790-7827-424A-BC47-031A453B9DB1.jpeg
D990C790-7827-424A-BC47-031A453B9DB1.jpeg (477.98 KiB) Viewed 1982 times
FF68EDF8-C07D-4403-BFBF-26E0DC2CE9B4.jpeg
FF68EDF8-C07D-4403-BFBF-26E0DC2CE9B4.jpeg (989.04 KiB) Viewed 2001 times
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

Manixx2020beyound wrote:
Mon Jun 27, 2022 8:39 pm
Hum,
We’ll it plays doblyvision on my pc all trims as well & triggers pc dv.
Are the colors correct is a good question doe.
But I’ll test it on my appletv but I would say it should play on appletv.
Nice it works!
I thought they have no reason to not work on apple tv.
So BL+RPU can now play on iPhone, iPad, apple tv.
How interesting we can play Bluray MEL in phones, lol.
Sorry I can't figure it out sooner.

Im guessing you are using this dolby vision decoder in windows store
https://apps.microsoft.com/store/detail ... n-us&gl=US

In mp4 container:
P8.1 cmv29 works
P8.1 cmv40 works
Don't want to test HLG.
profile doesn't matter as long it's not p7 and it's single track in mp4.

In contrary to Apple, avoid using 'hvc1'.
dolby vision also works on uncertified monitor, even SDR ones, just without the logo.

This decoder might supposed to work with Movies and TV.
However, in theory, it can be used as plugin decoder in potplayer.
But potplayer is too complicate for me to use.
Last edited by sw5163 on Tue Jun 28, 2022 7:03 am, edited 3 times in total.
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

Manixx2020beyound wrote:
Mon Jun 27, 2022 8:39 pm
Stream it from Mac m1 to Apple TV
Stream it form pc to Apple TV works
Sorry to bother, but could you please tell me how did you stream video from pc(windows?) to Apple?
Im currently using file sharing through SMB, but I don't know if there is a better way.
Manixx2020beyound
Posts: 125
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

sw5163 wrote:
Mon Jun 27, 2022 11:04 pm
Manixx2020beyound wrote:
Mon Jun 27, 2022 8:39 pm
Stream it from Mac m1 to Apple TV
Stream it form pc to Apple TV works
Sorry to bother, but could you please tell me how did you stream video from pc(windows?) to Apple?
Im currently using file sharing through SMB, but I don't know if there is a better way.
Infuse
Plex
sw5163
Posts: 116
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

Manixx2020beyound wrote:
Mon Jun 27, 2022 11:17 pm
sw5163 wrote:
Mon Jun 27, 2022 11:04 pm
Manixx2020beyound wrote:
Mon Jun 27, 2022 8:39 pm
Stream it from Mac m1 to Apple TV
Stream it form pc to Apple TV works
Sorry to bother, but could you please tell me how did you stream video from pc(windows?) to Apple?
Im currently using file sharing through SMB, but I don't know if there is a better way.
Infuse
Plex
okay, I can't even download plex in China, lol.
Thanks anyway.
Last edited by sw5163 on Tue Jun 28, 2022 6:04 am, edited 1 time in total.
evilmatcher
Posts: 25
Joined: Fri Apr 24, 2020 9:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by evilmatcher »

dwalme wrote:
Sun Jun 26, 2022 4:36 pm
I just recently did the same thing and I tested my copy with my X800M2 after I read this. I have a silent core and have no issues with TrueHD/Atmos playing properly.
I have tried with the copies I made last week of Back to the Future 1 + 2 with the same TS-muxer version from the DOVI-scripts (Feb 22) as i did last week. When i make a new TS-version of those backups it also fails - no sound on the x800m2. When I play all the ones currently on my NAS on the x800m2, all of them works. When using the Feb 22 TS-muxer version i now get an error message stating "Warning: PGS might not work without HDMV descriptors." I am quite certain that i didn't got those with all the ones that currently works.

I have tried with the latest nightly build. Here i get the Atmos track - but no Dolby Vision. Here i don't get any error message.

Is it possible that the TS-muxer can be corrupted somehow? The files appear unchanged. Properties on the files say they were last changed on Feb 22.
Post Reply