Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
daicon
Posts: 7
Joined: Mon Jan 11, 2021 10:37 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by daicon » Mon Jan 11, 2021 10:54 pm

RESET_9999 wrote:
Wed Jan 06, 2021 1:35 am
Dolbybotdolbybone wrote:
Tue Jan 05, 2021 11:52 pm

Thanks! I have also had questions about Dolby Vision profiles for a while and I never get a straight answer. So, to my understanding, profile 7 is only available on ultra blue ray discs and contains an extra layer called the enhancement layer which allows the content to achieve 12-bit color. If this is true, is profile seven definitely higher quality than profile 5? Also, is there a way to have profile 7 content in a local file? If so, what tv's/receivers/top boxes are compatible with profile 7? One last thing is that I have heard Low Latency Dolby Vision only has a minimal enhancement layer and not a full enhancement layer. What profile is LLDV and is it worse quality than regular dolby vision?

For my previous question about my file, do I have to have a Dolby Vision compatible moniter, top box (shield), and HDMI cable for this to work or can I plug my DV compatible monitor straight into my 2018 macbook air? And are there other top-boxes compatible with DV profile 5 and 7? Sorry again for all the questions :).
fel vs mel vs streaming:
https://forum.blu-ray.com/showpost.php? ... tcount=119

yes, single layer p5 DV is only compatible with DV hardware. I would say most (if not all) DV hardware supports p5.
for dual layer p7, your playback options are more limited:

1-The shield can play p7 DV but has the famous red push issue: https://screenshotcomparison.com/comparison.php?id=9580 and probably does not support FEL
the shield is also not 100% perfect with p5 content, see:
shield vs LG C8: https://screenshotcomparison.com/comparison.php?id=9663
shield vs x700: https://screenshotcomparison.com/comparison.php?id=9662
x700 vs LG C8: https://screenshotcomparison.com/comparison.php?id=9661

2- The Oppo and Sony x700 /x800 can play p7 FEL with lossless audio/subs and have no colors issue.
3- FireStick TV, can play p7 but only MEL and has no color issue.
4- probably some other bluray players can play p7 FEL with lossy audio.


LLDV(player-led 422 12bits) is the player doing the tonemapping and regular DV (tv-led 8bit RGB) is the TV doing the work. Therefore, tv-led DV is superior to player-led DV.
Thank you very much for the information. Very useful.

I wanted to ask:
1- What are the chances that nvidia will solve your colour problem with the Nvidia Shield in DoVi? I've been waiting for months, and I'm giving it up :-(
2- Is there any other external player, which is compatible with FEL, and has a PLEX or Kodi interface? (I imagine that sony players do not....)
3- Is there a software option to add FEL support to the Fire Stick?



Translated with www.DeepL.com/Translator (free version)

DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin » Tue Jan 12, 2021 7:21 am

RESET_9999 wrote:
Mon Jan 11, 2021 12:06 pm
according to rtings:

C8 / C9 / CX

Image Image Image

peak brightness is better on C9 but overall the C8 seem brighter especially at 100%
Probably because the abl isn’t as aggressive, tbh I also have a C7 (same chip as C8 I believe) and it isn’t noticeably as bright as the C9 in HDR10, Dolby Vision is more comparable once dialled in correctly.
Anyway, have we sussed EL integration lol.

DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin » Tue Jan 12, 2021 7:25 am

Wanderlust3K wrote:
Mon Jan 11, 2021 2:49 pm
My findings with latest LG (CX) firmware (3:21.09)

1- Demux layers from a UHD remux (BL , EL+RPU, AC3 Audio*)

2- (OPTIONAL) Reencode the BL layer (ffmpeg x265 & NO CROP !!!)

Code: Select all

ffmpeg.exe -i UHDREMUX.mkv -c:v libx265 -x265-params "level=5.1:colorprim=bt2020:colormatrix=bt2020nc:transfer=smpte2084:chromaloc=2:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50):max-cll=636,103:keyint_min=25" -crf 17 -preset medium -an BL.hevc
3- Remux (MP4Muxer_64bits.exe v:1.0.0) Reencoded BL layer + EL-RPU + AC3 layers into .MP4 file

Code: Select all

mp4muxer_64bits.exe --dv-profile 7 -i BL.h265 -i EL.h265 --dv-input-es-mode comb -i Audio.ac3 -o OUTPUT.mp4 --mpeg4-comp-brand mp42,iso6,isom,msdh,dby1 --overwrite
NOTE: --dv-input-es-mode split DID NOT PRODUCE A WORKING FILE WITH A REENCODED BL layer, --dv-input-es-mode comb DID WORK.

NOTE: You can demux previously muxed .mp4 DV files using the MP4Demuxer.exe.
ie:

Code: Select all

mp4demuxer.exe --input-file INPUT.mp4

Congratulations, you won a working Dolby Vision .MP4 file, 15GB instead of 75GB (tested with LG internal Plex app).

NOTE: If you have plenty of HD storage or/and just want to keep the original quality, omit the Reencoding part (step 2).


ISSUES:

1- Seeking not working, probably due to reencoding BL? (keyint_min=25 param?)
Hi mate, I get the Wierd Science fascination into doing this, and we would all like a media player friendly back up solution... but Dolby Vision is about the quality, a 15gb file can not look as good as a75gb file unless you are watching on a 48” supermarket TV.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Tue Jan 12, 2021 5:22 pm

daicon wrote:
Mon Jan 11, 2021 10:54 pm
Thank you very much for the information. Very useful.
I wanted to ask:
1- What are the chances that nvidia will solve your colour problem with the Nvidia Shield in DoVi? I've been waiting for months, and I'm giving it up :-(
2- Is there any other external player, which is compatible with FEL, and has a PLEX or Kodi interface? (I imagine that sony players do not....)
3- Is there a software option to add FEL support to the Fire Stick?
1- at this point, I lost confidence in Nvidia competence. I don't think this will ever get fixed. (or maybe they just don't care)
2- I don't know any plex/kodi device capable of playing fel with lossless audio
3- The best you can do on the Firestick is to convert FEL to p8.1 + lossy audio. tools here: https://www.makemkv.com/forum/viewtopic ... 970#p96282
Last edited by RESET_9999 on Tue Jan 12, 2021 11:46 pm, edited 1 time in total.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Tue Jan 12, 2021 5:25 pm

DaMacFunkin wrote:
Tue Jan 12, 2021 7:25 am
Hi mate, I get the Wierd Science fascination into doing this, and we would all like a media player friendly back up solution... but Dolby Vision is about the quality, a 15gb file can not look as good as a75gb file unless you are watching on a 48” supermarket TV.
agreed, especially with those encode settings... --preset medium is not very high quality.

in order to encode and preserve quality you must use at least --preset slow or slower

Code: Select all

--crf 15 --preset slower --profile main10 --level-idc 5.1 --output-depth 10 --vbv-bufsize 160000 --vbv-maxrate 160000 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,50)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --max-luma 1023 --hdr10-opt --repeat-headers --hrd --aud --no-open-gop  --deblock -3:-3 --no-sao --no-strong-intra-smoothing --chromaloc 2
Last edited by RESET_9999 on Tue Jan 12, 2021 5:31 pm, edited 1 time in total.

lexyz
Posts: 120
Joined: Fri May 08, 2020 5:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by lexyz » Tue Jan 12, 2021 5:27 pm

RESET_9999 wrote:
Tue Jan 12, 2021 5:22 pm
daicon wrote:
Mon Jan 11, 2021 10:54 pm
Thank you very much for the information. Very useful.
I wanted to ask:
1- What are the chances that nvidia will solve your colour problem with the Nvidia Shield in DoVi? I've been waiting for months, and I'm giving it up :-(
2- Is there any other external player, which is compatible with FEL, and has a PLEX or Kodi interface? (I imagine that sony players do not....)
3- Is there a software option to add FEL support to the Fire Stick?
1- at this point, I lost confidence in Nvidia competence. I don't think this will ever get fixed. (or maybe they just don't care)
2- I don't know any plex/kodi device capable of playing fel with lossless audio
3- The best you can do on the Firestick is to convert FEL to MEL + lossy audio. tools here: https://www.makemkv.com/forum/viewtopic ... 970#p96282
1 - I think ball is on Dolby side since I doubt NV wrote it's own DV decoder. I suppose they use Dolby's code
3 - Convert to p8. This is the only right way. Convertion to MEL is pointless
Bravia XF90, Shield TV Pro'19, UBP-X700

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Tue Jan 12, 2021 5:35 pm

lexyz wrote:
Tue Jan 12, 2021 5:27 pm

1 - I think ball is on Dolby side since I doubt NV wrote it's own DV decoder. I suppose they use Dolby's code
3 - Convert to p8. This is the only right way. Convertion to MEL is pointless
1- Since the issue happens in both tv-led and player-led. I think it's caused by something before or after the file goes through the Dolby engine. (something similar to the bt2020 flag issue with RGB DV)
I don't believe at all that the Dolby SDK is any different than the one on the firestick TV.
3- well both formats will give the same quality, none of them is pointless ....

Wanderlust3K
Posts: 16
Joined: Tue Dec 08, 2020 1:06 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Wanderlust3K » Tue Jan 12, 2021 6:09 pm

DaMacFunkin wrote:
Tue Jan 12, 2021 7:25 am
Hi mate, I get the Wierd Science fascination into doing this, and we would all like a media player friendly back up solution... but Dolby Vision is about the quality, a 15gb file can not look as good as a75gb file unless you are watching on a 48” supermarket TV.
No worries, thats why i left an (Optional) comment.

I just was curious about the posibility to reduce the overall file size while maintaning the Dolby Vision metadata and im happy it works finally on the CX thanks to the new firmware.

I myself have both types, if it is something i like then i keep it in original quality, if its somethig meh then i may reencode, but im sure we both agree that posibilities and the ability to choose are good things and lower bitrate can come in handy in some scenarios (like streaming).
RESET_9999 wrote:
Tue Jan 12, 2021 5:25 pm

agreed, especially with those encode settings... --preset medium is not very high quality.

in order to encode and preserve quality you must use at least --preset slow or slower
Great thing about ffmpeg is you can choose the desired settings to suit your needs.
Yes, those are meh settings meant for meh content i want to encode fast and dont care much about fidelity, its just an example...

lexyz
Posts: 120
Joined: Fri May 08, 2020 5:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by lexyz » Tue Jan 12, 2021 6:36 pm

RESET_9999 wrote:
Tue Jan 12, 2021 5:35 pm
3- well both formats will give the same quality, none of them is pointless ....
FEL to MEL convertion keeps redundant NLQ values in RPU which is used for FEL
If the goal to strip EL and keep final stream as close as possible to Dolby specs - convert to p8
Bravia XF90, Shield TV Pro'19, UBP-X700

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Tue Jan 12, 2021 6:49 pm

lexyz wrote:
Tue Jan 12, 2021 6:36 pm
RESET_9999 wrote:
Tue Jan 12, 2021 5:35 pm
3- well both formats will give the same quality, none of them is pointless ....
FEL to MEL convertion keeps redundant NLQ values in RPU which is used for FEL
If the goal to strip EL and keep final stream as close as possible to Dolby specs - convert to p8
ha, you're right... I forgot that the fel to mel conversion kept the original filesize of the FEL.

AndreasT
Posts: 21
Joined: Tue Dec 15, 2020 7:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by AndreasT » Wed Jan 13, 2021 7:15 am

Wanderlust3K wrote:
Mon Jan 11, 2021 2:49 pm
My findings with latest LG (CX) firmware (3:21.09)

1- Demux layers from a UHD remux (BL , EL+RPU, AC3 Audio*)

2- (OPTIONAL) Reencode the BL layer (ffmpeg x265 & NO CROP !!!)

Code: Select all

ffmpeg.exe -i UHDREMUX.mkv -c:v libx265 -x265-params "level=5.1:colorprim=bt2020:colormatrix=bt2020nc:transfer=smpte2084:chromaloc=2:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50):max-cll=636,103:keyint_min=25" -crf 17 -preset medium -an BL.hevc
3- Remux (MP4Muxer_64bits.exe v:1.0.0) Reencoded BL layer + EL-RPU + AC3 layers into .MP4 file

Code: Select all

mp4muxer_64bits.exe --dv-profile 7 -i BL.h265 -i EL.h265 --dv-input-es-mode comb -i Audio.ac3 -o OUTPUT.mp4 --mpeg4-comp-brand mp42,iso6,isom,msdh,dby1 --overwrite
NOTE: --dv-input-es-mode split DID NOT PRODUCE A WORKING FILE WITH A REENCODED BL layer, --dv-input-es-mode comb DID WORK.

NOTE: You can demux previously muxed .mp4 DV files using the MP4Demuxer.exe.
ie:

Code: Select all

mp4demuxer.exe --input-file INPUT.mp4
Congratulations, you won a working Dolby Vision .MP4 file, 15GB instead of 75GB (tested with LG internal Plex app).

NOTE: If you have plenty of HD storage or/and just want to keep the original quality, omit the Reencoding part (step 2).


ISSUES:

1- Seeking not working, probably due to reencoding BL? (keyint_min=25 param?)
I used my Top Gun UHD disc (FEL) as the source, and de-muxed 2 min test snippets of the BL and EL+RPU tracks directly from the m2ts file. I then skipped the encoding step. Sure enough the resulting dual track dual layer mp4 file is played by Plex on my LG CX triggering Dolby Vision, but the colors are wrong. The picture is way too dark to be ok. It is like the enhancement layer is used to darken instead of brightening the picture.

If I do a FEL to MEL conversion, and use the converted EL+RPU file when creating a dual track dual layer mp4 as above, then it triggers DV and the picture seems what I would expect to see.

So when you say your process above gives a file that plays fine on you CX, is your source FEL or MEL? Does the resulting file play ok if you ignore step 2?

One thing that made a difference to get a dual track dual layer mp4 to even start playing for me was using v1.0.0 instead of v1.0.1 of mp4muxer. If I look with MediaInfo, the mp4 created with v1.0.1 has the BL track marked as being "Default : Yes", and both tracks have an additional "Alternate group : 1". Either those are maybe set incorrectly, or the TV can't handle them. Anyone knows what they mean/are used?

Wanderlust3K
Posts: 16
Joined: Tue Dec 08, 2020 1:06 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Wanderlust3K » Wed Jan 13, 2021 12:08 pm

AndreasT wrote:
Wed Jan 13, 2021 7:15 am

I used my Top Gun UHD disc (FEL) as the source, and de-muxed 2 min test snippets of the BL and EL+RPU tracks directly from the m2ts file. I then skipped the encoding step. Sure enough the resulting dual track dual layer mp4 file is played by Plex on my LG CX triggering Dolby Vision, but the colors are wrong. The picture is way too dark to be ok. It is like the enhancement layer is used to darken instead of brightening the picture.

If I do a FEL to MEL conversion, and use the converted EL+RPU file when creating a dual track dual layer mp4 as above, then it triggers DV and the picture seems what I would expect to see.

So when you say your process above gives a file that plays fine on you CX, is your source FEL or MEL? Does the resulting file play ok if you ignore step 2?

One thing that made a difference to get a dual track dual layer mp4 to even start playing for me was using v1.0.0 instead of v1.0.1 of mp4muxer. If I look with MediaInfo, the mp4 created with v1.0.1 has the BL track marked as being "Default : Yes", and both tracks have an additional "Alternate group : 1". Either those are maybe set incorrectly, or the TV can't handle them. Anyone knows what they mean/are used?
I tested with Lord of Rings UHD disc, colors look fine to me, not sure if its FEL or MEL, but now that you mention it there seems to be reports of some darkening on the latest firmware, i just turned PeakBrigtness option to Low.

Dont you lose data when converting FEL to MEL?

Yes, mp4muxer v1.0.1 does not work for me when creating DTDL, only v1.0.0 works.

Infact, if you type mp4muxer.exe -h theres no mention to allow 2 video tracks as input, only a BL+EL+RPU.h265 file so even tougth v1.0.1 will mux 2 video tracks and produce a DTDL file it wont play.
I believe v1.0.1 is only meant for muxing STDL files like the ones produced with MakeMKV, will test that and see if it works, i need an MP4 container since LG Plex internal app has no DV MKV support yet.
Last edited by Wanderlust3K on Thu Jan 14, 2021 10:59 pm, edited 1 time in total.

AndreasT
Posts: 21
Joined: Tue Dec 15, 2020 7:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by AndreasT » Wed Jan 13, 2021 12:33 pm

Wanderlust3K wrote:
Wed Jan 13, 2021 12:08 pm
AndreasT wrote:
Wed Jan 13, 2021 7:15 am

I used my Top Gun UHD disc (FEL) as the source, and de-muxed 2 min test snippets of the BL and EL+RPU tracks directly from the m2ts file. I then skipped the encoding step. Sure enough the resulting dual track dual layer mp4 file is played by Plex on my LG CX triggering Dolby Vision, but the colors are wrong. The picture is way too dark to be ok. It is like the enhancement layer is used to darken instead of brightening the picture.

If I do a FEL to MEL conversion, and use the converted EL+RPU file when creating a dual track dual layer mp4 as above, then it triggers DV and the picture seems what I would expect to see.

So when you say your process above gives a file that plays fine on you CX, is your source FEL or MEL? Does the resulting file play ok if you ignore step 2?

One thing that made a difference to get a dual track dual layer mp4 to even start playing for me was using v1.0.0 instead of v1.0.1 of mp4muxer. If I look with MediaInfo, the mp4 created with v1.0.1 has the BL track marked as being "Default : Yes", and both tracks have an additional "Alternate group : 1". Either those are maybe set incorrectly, or the TV can't handle them. Anyone knows what they mean/are used?
I tested with Lord of Rings UHD disc, colors look fine to me, not sure if its FEL or MEL, but now that you mention it there seems to be reports of some darkening on the latest firmware, i just turned PeakBrigtness option to Low.

Dont you lose data when converting FEL to MEL?

Yes, mp4muxer v1.0.1 does not work for me when creating DTDL, only v1.0.0 works and only without the "split" option.

Infact, if you type mp4muxer.exe -h theres no mention to allow 2 video tracks as input, only a BL+EL+RPU.h265 file so even tougth v1.0.1 will mux 2 video tracks and produce a DTDL file it wont play.
I believe v1.0.1 is only meant for muxing STDL files like the ones produced with MakeMKV, will test that and see if it works, i need an MP4 container since LG Plex internal app has no DV MKV support yet.
According to the list here https://forum.blu-ray.com/showthread.php?t=276448, Lord of the rings is a MEL release. That explains why it plays triggering DV with proper colors for you with just the outlined steps.

In my case, as mentioned, I have a FEL release (you can see Top Gun in the same forum post), in which case I get this darkening of colors when played back, even if DV is triggered. To get the proper colors I have to convert to MEL using the tool mentioned here https://www.makemkv.com/forum/viewtopic ... 970#p96282.

I checked the code of mp4muxer, and there is no indication something changed not allowing you to have multiple input video files. What changed between v1.0.0 and v1.0.1 is that some flags are set in the mp4 file with v1.0.1. I don't know yet what these flags mean, but apparently they make the TV not like the resulting mp4 file from that version.

HEMAN
Posts: 4
Joined: Wed Jan 13, 2021 6:50 am

Re: Dolby Vision now possible through MP4 Mux.

Post by HEMAN » Wed Jan 13, 2021 12:34 pm

Nevermind, my previous post made a copy on second attempt that triggers Dolby Vision on my LG UJ752T. Will check later on my CX.

daicon
Posts: 7
Joined: Mon Jan 11, 2021 10:37 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by daicon » Wed Jan 13, 2021 2:57 pm

RESET_9999 wrote:
Tue Jan 12, 2021 5:22 pm
daicon wrote:
Mon Jan 11, 2021 10:54 pm
Thank you very much for the information. Very useful.
I wanted to ask:
1- What are the chances that nvidia will solve your colour problem with the Nvidia Shield in DoVi? I've been waiting for months, and I'm giving it up :-(
2- Is there any other external player, which is compatible with FEL, and has a PLEX or Kodi interface? (I imagine that sony players do not....)
3- Is there a software option to add FEL support to the Fire Stick?
1- at this point, I lost confidence in Nvidia competence. I don't think this will ever get fixed. (or maybe they just don't care)
2- I don't know any plex/kodi device capable of playing fel with lossless audio
3- The best you can do on the Firestick is to convert FEL to p8.1 + lossy audio. tools here: https://www.makemkv.com/forum/viewtopic ... 970#p96282
Thank you very much for your response.
Interesting, but it raises some new questions for me.

1- :-(, but I hope that you are wrong and they end up solving it, je

2-If there is no external device that plays FEL without audio loss (Is there expected to be?) Why then is this new process used to create the mkv? (many private trackers already use it)

Is there a "non-external" device that plays it?


3- I followed the manual, and managed to convert it correctly to play firestick 4k. But don't I lose the quality of FEL, when switching to MEL?
On the other hand... I have no audio... xDDD
How do I do it with audio?

Translated with www.DeepL.com/Translator (free version)

Post Reply