Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
sw5163
Posts: 139
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: 2534
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: 139
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: 127
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 7639 times
D990C790-7827-424A-BC47-031A453B9DB1.jpeg
D990C790-7827-424A-BC47-031A453B9DB1.jpeg (477.98 KiB) Viewed 7639 times
FF68EDF8-C07D-4403-BFBF-26E0DC2CE9B4.jpeg
FF68EDF8-C07D-4403-BFBF-26E0DC2CE9B4.jpeg (989.04 KiB) Viewed 7658 times
sw5163
Posts: 139
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: 139
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: 127
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: 139
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.
rouhsss
Posts: 1
Joined: Tue Jun 28, 2022 10:08 am

Re: Dolby Vision now possible through MP4 Mux.

Post by rouhsss »

One question. What fully plays MKV UHD remux with DV (profile 7) in 2022? Lg c1, nvidia shield etc...?
dwalme
Posts: 28
Joined: Sat Dec 10, 2011 2:38 am

Re: Dolby Vision now possible through MP4 Mux.

Post by dwalme »

evilmatcher wrote:
Tue Jun 28, 2022 5:34 am
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.
On the General tab of tsMuxeR select the option "Generate HDMV compatible TS". That will fix your issue.
evilmatcher
Posts: 25
Joined: Fri Apr 24, 2020 9:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by evilmatcher »

dwalme wrote:
Tue Jun 28, 2022 3:53 pm
On the General tab of tsMuxeR select the option "Generate HDMV compatible TS". That will fix your issue.
You're a star. It fixed my struggles. I have no idea on how that has been disabled. I have not done it intentional.
dwalme
Posts: 28
Joined: Sat Dec 10, 2011 2:38 am

Re: Dolby Vision now possible through MP4 Mux.

Post by dwalme »

evilmatcher wrote:
Tue Jun 28, 2022 6:20 pm
dwalme wrote:
Tue Jun 28, 2022 3:53 pm
On the General tab of tsMuxeR select the option "Generate HDMV compatible TS". That will fix your issue.
You're a star. It fixed my struggles. I have no idea on how that has been disabled. I have not done it intentional.
If you select m2ts or any other option and then select ts as output that option will be unchecked.

I stumbled upon it myself the same way. The warning message was a clue but the inconsistent behavior of the option being selected or not was confusing.
realbabilu
Posts: 22
Joined: Sun May 15, 2022 4:23 am

Re: Dolby Vision now possible through MP4 Mux.

Post by realbabilu »

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)
Finally i got one sample working perfectly that coming with Profile 05.06.
I compare DV test remux with Dovi_Script mp4muxer+mp4box and Subler for mac with subtitles.
The Dovi_Script with mp4box last subtitles muxing detect DV but can't detect the Dolby Atmos (only Dolby Audio DD+). The TV will detect Atmos if it use only mp4muxer (no integrated subtitles mux).
The Subler for mac integrated subtitles but my TV can detect the Dolby Atmos and Dolby Vision. It mux faster then mp4muxer.
Just share my experience.
thetoad
Posts: 232
Joined: Thu Jul 28, 2016 4:18 am

Re: Dolby Vision now possible through MP4 Mux.

Post by thetoad »

Q, has there been any work done for colorspace conversion for DV profile 5 to HDR10 or SDR? There's plenty of work on tonemapping HDR10 to SDR, but wondering about for DV content on non DV devices.
Post Reply