Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

danbez wrote:
Fri May 12, 2023 5:40 pm
What would be a good FFMPEG command line to create the new base layer with as close to lossless quality as possible? I am playing with two at the moment, but not sure if those are the best options if I want to focus on quality.

ffmpeg -i "example.avs" -c:v libaom-av1 -crf 23 -pix_fmt yuv444p12le av1_test.mkv --> AV1 output

ffmpeg -i "example.avs" -x265-params "hdr10-opt=1:chromaloc=2:range=limited:output-depth=10:profile=main10:level-idc=5.1:colorprim=bt2020:colormatrix=bt2020nc:transfer=smpte2084:hdr10=1:max-cll=0,0:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" "out10.hevc"
I don't know but you need to stick with HEVC if you want to reinject the RPU.
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

quietvoid wrote:
Fri May 12, 2023 11:03 am
NiCE77 wrote:
Fri May 12, 2023 10:55 am
Thanks, but I found this comment: https://github.com/erazortt/DoViBaker/i ... 1259843741
So the result will not be good if we inject the RPU because double processing. But then I don't really understand what this tool is for?
Reinjecting the *original* RPU is wrong. When converted to profile 8.1 it is fine.
As long as you don't tonemap using the trims in DoViBaker.

DoViBaker uses the mapping metadata and NLQ metadata to reconstruct the FEL image.
All this metadata is removed by profile 8.1 conversion (for FEL).
If the device will play Profile 7 MEL, would there be an advantage to choosing mode 1 (converts the RPU to be MEL compatible)?
Will this also remove the mapping metadata and NLQ? If not, how will the end result still be good?

Another question:
Dune / Zidoo / Zappiti will also play the Profile 7 FEL files with the EL skipped, but I see RPU response in the test file (blinking colors). Is this also the wrong method used by these vendors?
quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

NiCE77 wrote:
Sat May 13, 2023 5:22 am
If the device will play Profile 7 MEL, would there be an advantage to choosing mode 1 (converts the RPU to be MEL compatible)?
Will this also remove the mapping metadata and NLQ? If not, how will the end result still be good?
Conversion to MEL doesn't remove anything.
So if the title is FEL the result can be wrong.
NiCE77 wrote:
Sat May 13, 2023 5:22 am
Another question:
Dune / Zidoo / Zappiti will also play the Profile 7 FEL files with the EL skipped, but I see RPU response in the test file (blinking colors). Is this also the wrong method used by these vendors?
Probably.
It's only an issue when FEL has mapping metadata that affects the image a lot, because the intermediate image is not correct without the EL.
Roadwarrior980
Posts: 7
Joined: Sun Sep 18, 2022 2:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Roadwarrior980 »

Is the FEL issue with Saving Private Ryan limited to just the US release or does it impact all the other regions (like UK, Australia, Canada)? Curious if trying another disc from a different country would produce similar results
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

quietvoid wrote:
Sat May 13, 2023 2:12 pm
NiCE77 wrote:
Sat May 13, 2023 5:22 am
If the device will play Profile 7 MEL, would there be an advantage to choosing mode 1 (converts the RPU to be MEL compatible)?
Will this also remove the mapping metadata and NLQ? If not, how will the end result still be good?
Conversion to MEL doesn't remove anything.
So if the title is FEL the result can be wrong.
NiCE77 wrote:
Sat May 13, 2023 5:22 am
Another question:
Dune / Zidoo / Zappiti will also play the Profile 7 FEL files with the EL skipped, but I see RPU response in the test file (blinking colors). Is this also the wrong method used by these vendors?
Probably.
It's only an issue when FEL has mapping metadata that affects the image a lot, because the intermediate image is not correct without the EL.
Thank you, can you give me some movie titles where FEL has mapping metadata?
quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

NiCE77 wrote:
Mon May 15, 2023 5:22 am
Thank you, can you give me some movie titles where FEL has mapping metadata?
Not sure, you can look at the FEL required list RESET_9999 made.
valington
Posts: 40
Joined: Tue May 02, 2023 1:39 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by valington »

RESET_9999 wrote:
Mon May 08, 2023 1:58 am
9700PRO wrote:
Sun May 07, 2023 11:13 pm
I did as you said. Disabled mux in bat.
Image
I want to generate dolby vision from remux HDR10 to remux dolby vision with your scripts and tools , is it good idea or this is not good at all and better not to be done ?
RESET_9999
Posts: 2080
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

valington wrote:
Mon May 15, 2023 7:46 pm
I want to generate dolby vision from remux HDR10 to remux dolby vision with your scripts and tools , is it good idea or this is not good at all and better not to be done ?
3-1 for that but I recommend generating DV in Resolve which use the official Dolby algo. There's a tutorial video link somewhere in my signature link.
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

TheEqualizer wrote:
Fri May 05, 2023 8:29 pm
This problem is observed only on Disney+ and Netflix web-dl and only when playing over the network (NAS or DLNA PC), if run via usb, everything will work. If RESET_9999 knows the treatment method, it will be great, but as far as I know, when building mp4box, it will not be possible to make a working version, you need to build using ffmpeg
Hi, I've found what the issue is with Disney+ (at least with ffmepg), it's the presence of chapters in mkv file (which get copied to mp4).
-map_chapters -1 does the trick with ffmpeg.

This is the full command i used:

Code: Select all

ffmpeg -i "video.mkv" -map 0:v -map 0:a -map 0:s:0 -map_chapters -1 -c:v copy -c:a copy -c:s mov_text -strict unofficial "video.mp4"
This will work for every non profile 7 video on LG TVs (have to try with profile 7 FEL's, but if I remember correctly, it won't work).
Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Trees »

Can anyone provide me a screenshot or picture of what it looks like when the RPU doesn't match the HDR10(+) stream?

I'm both curious and looking for a reference as I think I'm having trouble lining up an RPU with the HDR10+ stream.

I'm in the process of adding Dolby Vision to an existing HDR10+ stream (Ford v Ferrari by WilDCAT). Assuming both would be the same, I got the following message:
Warning: mismatched lengths. video 219511, RPU 219471
Metadata will be duplicated at the end to match video length
I let the process finish and watched with my C2s internal player (M2TS, DV logo triggers) and saw nothing out of the ordinary.

After a bit of comparing between the files, it turns out the HDR10+ starts 40 black frames earlier than the RPU I have.

I delayed the RPU by 40 frames with this JSON:

Code: Select all

{
	"duplicate": [
		{
			"source": 1,
			"offset": 1,
			"length": 40
		}
	]
}
However, when playing it with my C2s internal player, I'm not seeing any difference between this and the previous file when it was 100% misaligned by 40 frames. Did my version of Dovi Tools (2.0.2) automatically align the two the first time I injected the RPU or am I doing something wrong?

P.S.: I do not have Windows (I have Linux) so I'm using the old-skool method of manually creating a JSON and injecting that into the RPU instead of working with the more user friendly DoVi Scripts workflow.
RESET_9999
Posts: 2080
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Trees wrote:
Thu May 18, 2023 2:51 pm
an existing HDR10+ stream (Ford v Ferrari by WilDCAT)
I wouldn't trust any WilDCAT HDR10plus source. This guy uses outdated tools to inject metadata.
And there's an official DV webdl source for this movie, here's the RPU already in sync: https://drive.google.com/file/d/1abh85Y ... share_link
Can anyone provide me a screenshot or picture of what it looks like when the RPU doesn't match the HDR10(+) stream?
You cant really miss it when the RPU is misaligned, you will see some brightness change between shots like in this video:

https://www.youtube.com/watch?v=yxpMguEmVBQ
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Just FYI anyone who cares - the solution for me in the end for the NF HEV1 DV8 issue was to just use my 5950x and transcode the base layer so it worked fine as HVC1

Luckily even with NF's native horrible color artificing I see at times (makes people look like they're blushing, but blocky) hard to spot any quality loss from encoding just because stuff is 4k and bigger bitrates now than h264 days, even though it takes a hit with the encode no matter what

Plus I bought the 5950x to use the thing :D
Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Trees »

RESET_9999 wrote:
Thu May 18, 2023 4:37 pm
I wouldn't trust any WilDCAT HDR10plus source. This guy uses outdated tools to inject metadata.
I agree. I've seen quite a lot of releases done with outdated software for some reason... However, I'd argue any HDR10+ is better than HDR10. I'd say WiLDCAT is the best we have when it comes to upgrading HDR10 content, no?

Quick question, how is the process upgrading from HDR10 to HDR10+ done? Can it be done with the tools at our disposal?
RESET_9999 wrote:
Thu May 18, 2023 4:37 pm
And there's an official DV webdl source for this movie, here's the RPU already in sync: https://drive.google.com/file/d/1abh85Y ... share_link
Thank you for this. Interestingly it's a almost a 2 MB larger than my RPU from an already existing Hybrid, how is that possible? Different Doby Vision master? Do different streaming services have different DV settings?
RESET_9999 wrote:
Thu May 18, 2023 4:37 pm
You cant really miss it when the RPU is misaligned, you will see some brightness change between shots like in this video:

https://www.youtube.com/watch?v=yxpMguEmVBQ
Thank you. Now at least I know what to expect from a wrongly injected RPU!

Bonus question: Is it possible to inject HDR10 metadata to an 2160p SDR HEVC? I'd like to upgrade my Stranger Things Season 1 SDR remuxes to HDR10.

Also, could you confirm or deny this is correct in adding 40 frames to the beginning of an RPU?

Code: Select all

{
	"duplicate": [
		{
			"source": 1,
			"offset": 1,
			"length": 40
		}
	]
}
RESET_9999
Posts: 2080
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Trees wrote:
Thu May 18, 2023 6:00 pm
Also, could you confirm or deny this is correct in adding 40 frames to the beginning of an RPU?
yes, this json duplicate 40 times frame number 2
However, I'd argue any HDR10+ is better than HDR10
Most of the time yes but I still prefer generating DV in resolve because it produces better metadata (cmv4.0, proper avg and min_pq)
Quick question, how is the process upgrading from HDR10 to HDR10+ done? Can it be done with the tools at our disposal?
Yes but it might require manual scene cut because I read somewhere that HDR10plus must only be changing metadata at scene cuts. DV in the other hand, can be frame by frame so its not really a problem.
https://www.youtube.com/watch?v=ZdFiqATo_j8
Thank you for this. Interestingly it's a almost a 2 MB larger than my RPU from an already existing Hybrid, how is that possible? Different Doby Vision master? Do different streaming services have different DV settings?
the official rpu may have more shots. Or maybe your rpu is missing L5 which is often the case with iTunes webdl if the hybrid was not done correctly
Bonus question: Is it possible to inject HDR10 metadata to an 2160p SDR HEVC? I'd like to upgrade my Stranger Things Season 1 SDR remuxes to HDR10.
It requires re-encoding but it can be done in resolve. I actually convert all my SDR bluray to HDR/DV.
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Thu May 18, 2023 6:27 pm
It requires re-encoding but it can be done in resolve. I actually convert all my SDR bluray to HDR/DV.
For titles that don't have UHD/UHD web releases? Or for all just to have a 1080p HDR/DV library?
Post Reply