Dolby Vision now possible through MP4 Mux.
-
- Posts: 22
- Joined: Sun May 15, 2022 4:23 am
Re: Dolby Vision now possible through MP4 Mux.
I got unique situation.
Usually Profile 5 need Dolby Vision proper detection with Dolby Vision TV or color will be strange, this is dvhe 05.09
example from dolby http://media.developer.dolby.com/DolbyV ... 00kbps.mp4
So if i convert to mkv, usually my TV false to detect Dolby vision, coloring it false as purple, AND also my SDR PC monitor got it wrong.
So it need to be muxed as mp4 with dolby mp4muxer, and played as mp4 in DV TV to get it detected right and coloring right.
I got sample dvhe Profile 05.06 color limited while it backwards....
I uploded 30s here https://1fichier.com/?gat31olgv9yjtn2iyc2o
The color on SDR PC is right.
While i remuxed to profile 5 with mp4muxer to enable Dolby Vision and Atmos detection, it colors wrong....purple..
1. What can be wrong with this? Its possible the encoder wrong? or just my DV tv is un-capable?
2. Does anyone has other 05.06 sample?
3. What if there is wrong profile typed when muxing ?
Usually Profile 5 need Dolby Vision proper detection with Dolby Vision TV or color will be strange, this is dvhe 05.09
example from dolby http://media.developer.dolby.com/DolbyV ... 00kbps.mp4
So if i convert to mkv, usually my TV false to detect Dolby vision, coloring it false as purple, AND also my SDR PC monitor got it wrong.
So it need to be muxed as mp4 with dolby mp4muxer, and played as mp4 in DV TV to get it detected right and coloring right.
I got sample dvhe Profile 05.06 color limited while it backwards....
I uploded 30s here https://1fichier.com/?gat31olgv9yjtn2iyc2o
The color on SDR PC is right.
While i remuxed to profile 5 with mp4muxer to enable Dolby Vision and Atmos detection, it colors wrong....purple..
1. What can be wrong with this? Its possible the encoder wrong? or just my DV tv is un-capable?
2. Does anyone has other 05.06 sample?
3. What if there is wrong profile typed when muxing ?
Dual layer FEL dolby vision to Apple compatible BL+RPU
First of all, thanks so much for quietvoid's and yusesope's amazing tool.
Sorry in advance if this has been posted or wrong.
I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
1. Extract bl.hevc and el.hevc from source
ffmpeg -i FEL_test_for_AVS.m2ts -c copy -map 0:0 bl.hevc -map 0:1 -c copy el.hevc
2. Mux and convert to P8 (it seems Apple indeed doesn't support FEL)
dovi_tool --edit-config fel_to_p81.json mux --bl bl.hevc --el el.hevc --discard
fel_to_p81.json
{
"mode": 2,
"remove_mapping": true
}
The result has similar RPU as in Apple's strange screensaver. (Thanks ValZapod)
According to quietvoid:
‘"remove_mapping" is useful for converting to profile 8.1 from FEL, where the video was preprocessed beforehand (like processing FEL).
Otherwise, the RPU would cause an additional mapping/processing on playback, so double the processing which is wrong.’
And without it, the result will end up with awful green screen.
https://user-images.githubusercontent.c ... 8510d9.PNG
3. Use mp4muxer from https://github.com/DolbyLaboratories
mp4muxer -i BL_RPU.hevc --dv-profile 5 --dvh1flag 0
This end up with a BL+RPU HDR10 based profile 5 mp4 just like their screensaver.
dvh1flag for Apple compatibility.
I know profile 5 shouldn't have HDR10 bl but it tricks Apple's native player to play dolby vision.
Sample mp4 as follow
https://drive.google.com/file/d/1kJTUMb ... sp=sharing
The birghtness around 28 and 40 second flicker, so it is dolby vision.
Original m2ts is from
https://www.avsforum.com/threads/dune-p ... t-60582530
Also Apple seems to ignore level 5 RPU data.
Do anyone know if there’s a better way to do it?
And can someone test the quality on iOS devices between FEL converted this way and proper streaming profile 5,thanks.
Sorry in advance if this has been posted or wrong.
I think it is possible to convert dual layer FEL to Apple compatible BL+RPU.
1. Extract bl.hevc and el.hevc from source
ffmpeg -i FEL_test_for_AVS.m2ts -c copy -map 0:0 bl.hevc -map 0:1 -c copy el.hevc
2. Mux and convert to P8 (it seems Apple indeed doesn't support FEL)
dovi_tool --edit-config fel_to_p81.json mux --bl bl.hevc --el el.hevc --discard
fel_to_p81.json
{
"mode": 2,
"remove_mapping": true
}
The result has similar RPU as in Apple's strange screensaver. (Thanks ValZapod)
According to quietvoid:
‘"remove_mapping" is useful for converting to profile 8.1 from FEL, where the video was preprocessed beforehand (like processing FEL).
Otherwise, the RPU would cause an additional mapping/processing on playback, so double the processing which is wrong.’
And without it, the result will end up with awful green screen.
https://user-images.githubusercontent.c ... 8510d9.PNG
3. Use mp4muxer from https://github.com/DolbyLaboratories
mp4muxer -i BL_RPU.hevc --dv-profile 5 --dvh1flag 0
This end up with a BL+RPU HDR10 based profile 5 mp4 just like their screensaver.
dvh1flag for Apple compatibility.
I know profile 5 shouldn't have HDR10 bl but it tricks Apple's native player to play dolby vision.
Sample mp4 as follow
https://drive.google.com/file/d/1kJTUMb ... sp=sharing
The birghtness around 28 and 40 second flicker, so it is dolby vision.
Original m2ts is from
https://www.avsforum.com/threads/dune-p ... t-60582530
Also Apple seems to ignore level 5 RPU data.
Do anyone know if there’s a better way to do it?
And can someone test the quality on iOS devices between FEL converted this way and proper streaming profile 5,thanks.
-
- Posts: 26
- Joined: Fri Apr 24, 2020 9:17 am
Re: Dolby Vision now possible through MP4 Mux.
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?
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?
- Attachments
-
- Mediainfo SVP TS.txt
- (5.04 KiB) Downloaded 285 times
-
- Mediainfo SVP MKV.txt
- (6.47 KiB) Downloaded 286 times
-
- Posts: 2082
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Well, I guess your AVR doesnt like the silent AC3 core TrueHD tracks. Very strange because I also have a Denon AVR and it plays those fine. Your file looks as it should.
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
Appletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
-
- Posts: 26
- Joined: Fri Apr 24, 2020 9:17 am
Re: Dolby Vision now possible through MP4 Mux.
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.RESET_9999 wrote: ↑Sun Jun 26, 2022 12:53 pmWell, I guess your AVR doesnt like the silent AC3 core TrueHD tracks. Very strange because I also have a Denon AVR and it plays those fine. Your file looks as it should.
you'll have to do the audio separately:
MODE.M ---> MODE.3 ---> Workflow 1 ( or 3 if your mkv doesnt have an ac3 track)
I have tried the TS-muxer version I downloaded myself, but also the version from the DOVI tools. Same result.
-
- Posts: 2082
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I ripped and watched Dune 2021 from the disc and had no issue with Atmos (old Denon X2300W)evilmatcher wrote: ↑Sun Jun 26, 2022 3:33 pmIs 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.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
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.evilmatcher wrote: ↑Sun Jun 26, 2022 11:57 amI 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?
Re: Dolby Vision now possible through MP4 Mux.
Well, i'm using ios device but i'm pretty sure it is playing dolby vision with dynamic brightness adjustment.RESET_9999 wrote: ↑Sun Jun 26, 2022 12:53 pmAppletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
Apple TV needs more test but I believe it will play properly.
Check Apple tv's screensaver, they are HDR10 based profile 5 with similar RPU just like my sample.RESET_9999 wrote: ↑Sun Jun 26, 2022 12:53 pmAppletv only support real profile 5 from streaming services which you cannot get from profile 7 rip.
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) 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.
-
- Posts: 2082
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
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)
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
You mean these files? Many thanks to quietvoid for providing them!RESET_9999 wrote: ↑Sun Jun 26, 2022 8:24 pmgo 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)
Those p8.1 HDR one work on iPad once I convert them to dvh1 p5.quietvoid wrote: ↑Wed Jun 08, 2022 1:51 amYou 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.
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.
https://support.apple.com/en-us/102570 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. 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 Sun Feb 04, 2024 3:29 pm, edited 4 times in total.
Re: Dolby Vision now possible through MP4 Mux.
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.
Someone with the Apple TV should be able to test if your files work in regular HDR Dolby Vision output.
Re: Dolby Vision now possible through MP4 Mux.
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.
Re: Dolby Vision now possible through MP4 Mux.
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.
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.
Re: Dolby Vision now possible through MP4 Mux.
Ah I get it!dcoke22 wrote: ↑Mon Jun 27, 2022 6:44 pmhttps://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.
Thank you so much for the explanation!
-
- Posts: 127
- Joined: Thu Oct 08, 2020 5:19 pm
Re: Dolby Vision now possible through MP4 Mux.
Hum,sw5163 wrote: ↑Mon Jun 27, 2022 1:50 amYou mean these files? Many thanks to quietvoid for providing them!RESET_9999 wrote: ↑Sun Jun 26, 2022 8:24 pmgo 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)Those p8.1 HDR one work on iPad once I convert them to dvh1 p5.quietvoid wrote: ↑Wed Jun 08, 2022 1:51 amYou 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.
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.
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 (537.83 KiB) Viewed 11760 times
-
- D990C790-7827-424A-BC47-031A453B9DB1.jpeg (477.98 KiB) Viewed 11760 times
-
- FF68EDF8-C07D-4403-BFBF-26E0DC2CE9B4.jpeg (989.04 KiB) Viewed 11779 times