Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

yusesope wrote:
Thu Sep 24, 2020 11:07 am
There are multiple reasons why the FEL structure is intact in my MEL files.
This is not the important thing.
What matters, in my opinion, are the NALu RPU. Imagine the latter as an orchestra conductor. With the right changes I can explain to the Decoder that it does not have to start a second decoding session (as happens in FEL files) but to use "a static image" as substrate (as happens with MEL files) regardless of the presence of FEL data.
This is the goal.
Hey yusecope, so I went back and reread the FAQ posted here: https://forum.blu-ray.com/showpost.php? ... tcount=119 again just to better understand what the conversion is doing in the big picture. Referring to the image snippet of the dolby docs in that post, lets take for example some FEL content that was mastered on a 4000-nit display and then split up into a 1000-nit base layer and an EL that’s required to reconstruct the original picture. When converting to MEL, am I correct to understand that your tool is not actually converting the base layer to 4000 nits with information from the EL, but instead modifying the RPU so that it can tell the decoder later during playback that no extra picture information exists on the EL, thus treating the entire file as MEL? So in a sense, this is a more sophisticated version of your previous -mode 2 conversion?
iamTa
Posts: 13
Joined: Sat Sep 19, 2020 10:13 am

Re: Dolby Vision now possible through MP4 Mux.

Post by iamTa »

PapitaHD wrote:
Sat Sep 26, 2020 12:55 pm
I've created a few mkv's with the method yusesope described (converting to MEL with method2, creating ISO with tsMuxeR then remux it with MakeMKV), so others can test them, unfortunately I don't own a device which would be able to play DV-mkv.
Saving Private Ryan is among them, would be interesting to see whether it flickers in an mkv container too or not.
Gladiator & Kick-Ass: https://we.tl/t-eDu4zjnQj0
Apocalypse Now: https://we.tl/t-SJaD5a4ExL
Transformers 4: https://we.tl/t-z6Oos2hHxy
Saving Private Ryan: https://we.tl/t-IgV2cbcSuY

I checked all of them and only Saving Private Ryan flickers.
These all played perfectly in DV with no flickering on a LG C9 with an Nvidia Shield and the modded Exoplayer.
badrobot
Posts: 21
Joined: Wed Mar 25, 2020 4:14 am

Re: Dolby Vision now possible through MP4 Mux.

Post by badrobot »

@jcdr428

With the nightly build version of TsMuxeR on Sept 25th, If I choose the TS output format, Plex Server can not detect the TrueHD sound track, only an AC3-5.1 sound track. Plex on Shield TV Pro 2019 can not play the ts file, the picture freezes.

If I choose the M2TS output format, everything is OK.
I have tested 2 movies, got the same result.
Plex Server and Plex Android App are both the latest version.

These are my steps:
1. Use FFMPEG to split BL and EL layer from the UHD Bluray Disk.
2. Use the Mux python script by yusesope to get BL_EL_RPU.hevc.
3. Use TsMuxeR GUI to mux the final TS or M2TS, all the TsMuxeR GUI options are default. Only 2 tracks are selected to mux.

————————————————

Code: Select all

 MUXOPT --no-pcr-on-video-pid --vbr  --vbv-len=500
#V_MPEGH/ISO/HEVC, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", track=4113
#V_MPEGH/ISO/HEVC, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", track=4117
#A_DTS, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", track=4352, lang=deu
A_AC3, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", track=4353, lang=eng
#A_DTS, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", track=4354, lang=und
#S_HDMV/PGS, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", fps=24, track=4768, lang=deu
#S_HDMV/PGS, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", fps=24, track=4769, lang=eng
#S_HDMV/PGS, "D:\Downloads\Leon.The.Professional.1994.MULTi.COMPLETE.UHD.BLURAY-MONUMENT\BDMV\STREAM\00023.m2ts", fps=24, track=4770, lang=deu
V_MPEGH/ISO/HEVC, "D:\tmp\BL_EL_RPU.hevc"
Image
Image
Last edited by badrobot on Mon Sep 28, 2020 12:40 am, edited 6 times in total.
I am not a native English speaker.
Sorry for my bad English.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

PapitaHD wrote:
Sat Sep 26, 2020 12:55 pm
I checked all of them and only Saving Private Ryan flickers.
It is a good sign :D !
Thanks for the files!

RESET_9999 wrote:
Sat Sep 26, 2020 3:46 pm
Because I have a another DV TV with an appleTV in another room.
I see. Profile 5 only? No profile 8?
RESET_9999 wrote:
Sat Sep 26, 2020 3:46 pm
But i do get that in order to obtain a new/proper profile 5 file, encoding is required.
I think so too. Also because all the examples you mentioned occur during the decoding phase, using the previously encoded information.


shawnc22 wrote:
Sat Sep 26, 2020 4:46 pm
this is a more sophisticated version of your previous -mode 2 conversion?
The concept of "-mode 2" should remain associated with those profiles (5/8) in which the EL is completely absent (and the RPUs have a different structure). In this case I'm trying to mimic the behavior of a MEL file.
shawnc22 wrote:
Sat Sep 26, 2020 4:46 pm
When converting to MEL, am I correct to understand that your tool is not actually converting the base layer to 4000 nits with information from the EL, but instead modifying the RPU so that it can tell the decoder later during playback that no extra picture information exists on the EL, thus treating the entire file as MEL?
During decoding, the image generated by the data present in EL represents a residue (difference) of the original video content compared to the image obtained by processing the data present in BL.
EL is a 10-bit video bitstream that carries the residual between the mezzanine source and the base layer and the dynamic metadata for Dolby Vision.
By modifying the RPU the idea is to tell the decoder that the residual signal is equal to zero and that it should not bother to "read" the content.
The rest of the information, both static (eg, MaxFALL and MaxCLL) and dynamic (eg, min, max and avg luminance of each shot) remain unchanged.
By giving up the process of decoding the data in EL, I think it is normal that it is no longer possible to generate the 12bit signal as it was mastered by the creators (using monitors up to 10000 nits).
Keep also in mind that current consumer displays rarely exceed 2000 nits (LCD). OLEDs peak at 600-700 nits, and few home projectors are lucky enough to hit 150 nits. When the signal exceeds the capability of the TV, tone mapping is activated by reducing the luminance as the signal approaches the clipping point of the display (following a Perceptual Quantizer (PQ) curve, remaps luminance from the source values to the lower values the display can support)
Decidueye
Posts: 9
Joined: Sun Sep 27, 2020 9:47 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Decidueye »

Hello everyone first post here complete newbie. I wanted to try if Dolby Vision playback with Mission Impossible movies is possible with my LG C9

First tried with Ghost Protocol. I followed the instructions on the first post and double checked, the new mp4 is successfully created but it doesn't work. The TV cannot read the file and says it is not supported.

Is there something I did incorrectly or is it because of the file or my TV?
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

PapitaHD wrote:
Sat Sep 26, 2020 12:55 pm
Gladiator & Kick-Ass: https://we.tl/t-eDu4zjnQj0
Apocalypse Now: https://we.tl/t-SJaD5a4ExL
Transformers 4: https://we.tl/t-z6Oos2hHxy
Saving Private Ryan: https://we.tl/t-IgV2cbcSuY

I checked all of them and only Saving Private Ryan flickers.
Everything played perfectly. May I ask how did you convert from FEL to MEL?
thank you very much
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

yusesope wrote:
Thu Sep 17, 2020 5:54 pm
quietvoid wrote:
Thu Sep 17, 2020 4:19 pm
Just tried this and it works on the FireTV Stick 4K...On archlinux...And it plays in Dolby Vision with ExoPlayer. :)
It always warms the heart to see "archlinux" written somewhere :D . Thanks for your feedback.
pitrako wrote:
Thu Sep 17, 2020 5:17 pm
I need some .dll or something? MUX.bat works but MUX_AND_CONVERT_TO_MEL.bat doesn't work, It shows the error I posted above.
PapitaHD wrote:
Thu Sep 17, 2020 5:31 pm
Same error for me. I'm trying to convert/remux Gemini Man from a full UHD BluRay backup. Officially it's a FEL title, although it has about the lowest bitrare a FEL can have.
Later I'll try Saving Private Ryan.
Yes you are right. Your Windows needs THESE libraries (unpack the archive and place the two dll files where there are the files MUX.bat, DEMUX.bat, etc ...). It's not an elegant solution but it should at least work for these days of testing.
Let me know!
jcdr428 wrote:
Thu Sep 17, 2020 5:12 pm
Hi @yusesope, so you need tsMuxer to register profile 6 as profile 4 to be read by ExoPlayer, is this correct?
The files that are created by this latest version have as VUI:
0,9,16,9,2 for the Base layer
0,9,16,9,2 for the Enhancement layer.
The correct profile should therefore be 7.
Now I don't remember well but it seems to me that TsMuxeR currently generates files with profile 6 (but, I repeat myself, I could be wrong). If my tool proves to work, in my opinion, we should try to mark the ts files with profile 7 (and not 6).
shawnc22 wrote:
Thu Sep 17, 2020 5:39 pm
I think yusecope is suggesting that what tsmuxer is currently registering as profile 6 should go back to being registered as profile 7
Yep, Exactly!
unfortunately the link does not work :(
DaMacFunkin
Posts: 312
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

Decidueye wrote:
Sun Sep 27, 2020 9:52 am
Hello everyone first post here complete newbie. I wanted to try if Dolby Vision playback with Mission Impossible movies is possible with my LG C9

First tried with Ghost Protocol. I followed the instructions on the first post and double checked, the new mp4 is successfully created but it doesn't work. The TV cannot read the file and says it is not supported.

Is there something I did incorrectly or is it because of the file or my TV?
What audio file did you create for your mp4?
Your LG won’t play an mp4 if the audio is True-HD.
ktibor69
Posts: 3
Joined: Mon Sep 28, 2020 7:11 am
Location: Hungary

Re: Dolby Vision now possible through MP4 Mux.

Post by ktibor69 »

Hi,

Is there a way to convert dvhe.07.06, EL+RPU.mp4 file to Dolby Vision, Version 1.0, dvhe.04.06, BL+EL+RPU or dvhe.05.06, BL+RPU profiles?
Unfortunately my LG OLED TV plays the dvhe.07.06, EL+RPU.mp4 file in "Green screen":
Image
ktibor69
Posts: 3
Joined: Mon Sep 28, 2020 7:11 am
Location: Hungary

Re: Dolby Vision now possible through MP4 Mux.

Post by ktibor69 »

DaMacFunkin wrote:
Mon Sep 28, 2020 6:08 am
Decidueye wrote:
Sun Sep 27, 2020 9:52 am
Hello everyone first post here complete newbie. I wanted to try if Dolby Vision playback with Mission Impossible movies is possible with my LG C9

First tried with Ghost Protocol. I followed the instructions on the first post and double checked, the new mp4 is successfully created but it doesn't work. The TV cannot read the file and says it is not supported.

Is there something I did incorrectly or is it because of the file or my TV?
What audio file did you create for your mp4?
Your LG won’t play an mp4 if the audio is True-HD.
Try to set the True-HD audio track to the second audio track in the mp4 file.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

iamTa wrote:
Sat Sep 26, 2020 12:41 pm
I've just tested this and it works perfectly on an Nvidia Shield!
Thanks for the feedback

Tomas wrote:
Sun Sep 27, 2020 7:40 pm
unfortunately the link does not work :(
With my second upload I should have solved the missing libraries problem.
Refer to THIS post (ignore the red line).
Keep in mind that you are in the middle of a testing phase (FEL -> MEL, read HERE an HERE).
To create unmodified files, just use "MUX.bat" and "DEMUX.bat" (following the same logic of the instructions of the first linked post)
Decidueye
Posts: 9
Joined: Sun Sep 27, 2020 9:47 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Decidueye »

DaMacFunkin wrote:
Mon Sep 28, 2020 6:08 am
Decidueye wrote:
Sun Sep 27, 2020 9:52 am
Hello everyone first post here complete newbie. I wanted to try if Dolby Vision playback with Mission Impossible movies is possible with my LG C9

First tried with Ghost Protocol. I followed the instructions on the first post and double checked, the new mp4 is successfully created but it doesn't work. The TV cannot read the file and says it is not supported.

Is there something I did incorrectly or is it because of the file or my TV?
What audio file did you create for your mp4?
Your LG won’t play an mp4 if the audio is True-HD.
Yes, I did not use the TrueHD audio. I used the AC3 one for testing purposes. I also do not have dedicated streaming devices like the Shield.

Only tried playing it back through DLNA (through a Windows 10 PC) and USB drive using LG's WebOS app / internal player. Also the error message is "File is not recognized". But it should work since the OP used his USB drive as well?
mirror88
Posts: 1
Joined: Mon Sep 28, 2020 10:13 am

Re: Dolby Vision now possible through MP4 Mux.

Post by mirror88 »

Thank you for your great works. If you like, I can provide a zidoo z9x media player for your test. It does not require a special version of exoplayer to be installed. DV Mel MKV files can be played directly.
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

yusesope wrote:
Mon Sep 28, 2020 7:39 am
iamTa wrote:
Sat Sep 26, 2020 12:41 pm
I've just tested this and it works perfectly on an Nvidia Shield!
Thanks for the feedback

Tomas wrote:
Sun Sep 27, 2020 7:40 pm
unfortunately the link does not work :(
With my second upload I should have solved the missing libraries problem.
Refer to THIS post (ignore the red line).
Keep in mind that you are in the middle of a testing phase (FEL -> MEL, read HERE an HERE).
To create unmodified files, just use "MUX.bat" and "DEMUX.bat" (following the same logic of the instructions of the first linked post)
My Windows download link doesn't work.
iamTa
Posts: 13
Joined: Sat Sep 19, 2020 10:13 am

Re: Dolby Vision now possible through MP4 Mux.

Post by iamTa »

Tomas wrote:
Sun Sep 27, 2020 5:39 pm
Everything played perfectly. May I ask how did you convert from FEL to MEL?
thank you very much
So these are the steps I take to convert FEL to MEL and remux with TrueHD/Atmos into an MKV:
  • Extract hevc streams with ffmpeg: ffmpeg.exe -i X:\BDMV\STREAM\XXXXX.m2ts -map 0:0 -c copy X:\BL.hevc -map 0:1 -c copy X:\EL.hevc
  • Feed both hevc files from step 1 into MUX_AND_CONVERT_TO_MEL.bat
  • Feed single hevc file from step 2 into DEMUX.bat
  • Use latest tsMuxeR nightly, add both hevc files from step 3 into input along with X:\BDMV\STREAM\XXXXX.m2ts from step 1, remove duplicate video tracks and output to ISO
  • Use MakeMKV to convert ISO to MKV
These MKVs can then be played back using the modded ExoPlayer and potentially the latest Emby beta (I've not tested Emby).

I've converted and tested a few full length movies and the above method works flawlessly.

Thank you yusesope for all your hard work.
Post Reply