Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th November 2024, 21:22   #821  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
I dont know but nothing changed in that workflow from 3.0.3 to 3.0.4

Code:
    _____    __      ___       _____           _       _
   |  __ \   \ \    / (_)     / ____|         (_)     | |
   | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___
   | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|
   | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \
   |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/
   -Author: RESET_9999--------------------------|__|-----------



1) MODE.I=  INJECT / EDIT / EXTRACT / INFO / VALIDATE
2) MODE.F=  VERIFY SYNC / REMOVER / TRANSFER LEVELS
3) MODE.H=  DoVi MAKER from HDR10 (Dolby Algo or MadVR or HDR10+)
4) MODE.7=  DoVi Profile 7 Input (MKV/BDMV)
5) MODE.B=  DoVi MKV Batch Muxer
6) MODE.P=  Plotter (DoVi/HDR10/HLG/SDR)
7) MODE.S=  Screenshots & Player
8) MODE.E=  Encoders (video and audio)
9) MODE.M=  MORE

Choice? [1,2,3,4,5,6,7,8,9]?6

       =========================
       -   SELECT A WORKFLOW   -
       =========================

1) Workflow.1= Measure Letterbox
2) Workflow.2= Measure MadVR HDR (can batch)
3) Workflow.3= Measure DoVi Level 1 (can batch)
4) Workflow.4= Measure DoVi Level 1,2,3,8 (can batch)
5) Workflow.5= Measure DoVi Level 4,5,6
6) Workflow.6= Measure HDR10plus
7) Workflow.7= Measure Bitrate
8) Workflow.8= Measure Audio waveform
9) Workflow.9= Go back to Main Menu

Choice? [1,2,3,4,5,6,7,8,9]?1


       =====================
       - MEASURE LETTERBOX -
       =====================

------------------------------------------------
-- this script measure a video file letterbox
-- Auto mode might not be 100 accurate
-- Tip: zoom 400 in avspmod
------------------------------------------------

Drag and drop a video file and press enter...
D:\Alien.Romulus.2024.HDR12.mkv
Manual or Auto measurement? (manual=m auto=a default=m) and press enter...
a
Measuring the letterbox...

Measurements(this may not be accurate):
left border: 0
right border: 0
top border: 276
bottom border: 276

Deleting TEMP folder...
done, press enter to measure another video !
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 29th November 2024, 20:37   #822  |  Link
Atari1971
Registered User
 
Join Date: Apr 2018
Posts: 32
Good evening.

I have just transcribed the film "spider-man" HDR10 into Dolby Vision. I transcoded the mkv file to prores. I opened it with Davinci Resolve and analyzed in Dolby and exported to xml. I then use dovi_script to generate the dolby vision.

I get this flat outline. Is there something I did wrong?
Attached Images
 

Last edited by Atari1971; 29th November 2024 at 20:46.
Atari1971 is offline   Reply With Quote
Old 29th November 2024, 20:46   #823  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 284
Maybe of create the scenes in DaVinci, in the Timeline section.

__________________
my PC with Ryzen 7950X
DMD is offline   Reply With Quote
Old 29th November 2024, 20:47   #824  |  Link
Atari1971
Registered User
 
Join Date: Apr 2018
Posts: 32
yes I will try
Atari1971 is offline   Reply With Quote
Old 3rd December 2024, 10:33   #825  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 78
Need Help with Dolby Vision

I'm new to Dolby Vision. I would much appreciate it if I can get help with the following, presumably elementary questions.

My target is to preserve my UHD blu ray collection in a relatively compact format, in the mkv container, while preserving the Dolby Vision parameters as close to the UHD BD as possible. Device playback compatibility is not a concern.

1. Does the Dolby Vision enhancement layer (EL) also contain the RPU? If yes, then would it make sense for me to extract only the EL, leaving the RPU alone, and injecting that EL back into the transcoded video?
2. If the Dolby Vision enhancement layer (EL) does not contain the RPU, does it make sense for me to extract both the RPU and the EL and then inject them both into the encoded video?
3. If my concern is quality and not compatibility, then should I keep DV profile 7.6 without conversion or do I gain something by converting the RPU to profile 8.1?

I have scoured through the forums but have not run into posts that answer these questions specifically. The most helpful videos on the subject on YouTube are, of course, RESET_9999's (Kuler's YouTube avatar) and I have seen those. For example, https://youtu.be/iKUf2GpqoeU?si=ZmsoHSkFbK82Jdib has been very helpful in clarifying the terminology and the functions of the EL. Being new to DV, however, I am looking for a specific answer to the question:

Should I extract and inject both RPU and EL, or only one of those?

[Incidentally, in my PC-and-Denon AVR-centred home theatre setup with LG C4 OLED display, I use MPC-HC for playback, using its MPC video renderer, which passes through Dolby Vision metadata to the display.]
lemaireus is offline   Reply With Quote
Old 3rd December 2024, 13:04   #826  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
Quote:
1. Does the Dolby Vision enhancement layer (EL) also contain the RPU? If yes, then would it make sense for me to extract only the EL, leaving the RPU alone, and injecting that EL back into the transcoded video?
Quote:
2. If the Dolby Vision enhancement layer (EL) does not contain the RPU, does it make sense for me to extract both the RPU and the EL and then inject them both into the encoded video?
yes the EL contains the RPU dynamic metadata.
If it's MEL you can discard the EL, convert the RPU to P8.1 and inject it.
If it's FEL, you have to bake the EL into the BL and then you can convert the RPU to P8.1 and inject it.

All of this is automated in workflow 8-2-1 and the encoding settings can be configured at lines 140-165.
https://www.youtube.com/watch?v=8BvXqw_cGJE

Quote:
If my concern is quality and not compatibility, then should I keep DV profile 7.6 without conversion or do I gain something by converting the RPU to profile 8.1?
when you bake fel to P8.1, the DV will be the same (minus 12 bit but your TV is 10bit so it doesn't matter)

Quote:
I use MPC-HC for playback, using its MPC video renderer, which passes through Dolby Vision metadata to the display
it doesn't pass the DV metadata to the display. It's only useful for profile 5 DV because it can tone map the colorspace to HDR10 but the dynamic metadata are always ignored.
The only players on PC that can process the metadata are the Windows native player and the Energy player. Windows player only supports P8 P5 MP4 DV and lossy audio, while Energy player supports P5 P8 MKV with lossless audio.
Both players do not send metadata to the display; they process the metadata themselves (LLDV, aka player-led) and send a decoded/tone-mapped HDR10 image to the display.

https://apps.microsoft.com/detail/9p...hl=en-US&gl=US
https://www.youtube.com/watch?v=bXS5I1GlRSM
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 3rd December 2024, 16:23   #827  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 78
Much, much gratitude, Kuler, for your crystal clear, helpful replies. I shall take a day or so to let the information you have shared sink in, then run through some workflows in accordance with your suggestions, and thereafter share information about the results I get, or any potential issues I run into, here on the forum.

You are not only a treasure trove of information but also so helpful that learning from you is a pleasure. Thank you very, very much.
lemaireus is offline   Reply With Quote
Old 4th December 2024, 23:28   #828  |  Link
Hellboy.
Registered User
 
Join Date: Mar 2020
Posts: 54
Quote:
Originally Posted by Kuler087 View Post
If it's FEL, you have to bake the EL into the BL and then you can convert the RPU to P8.1 and inject it.
You know if HandBrake do this when convert a movie that have FEL?
Or if anyone who uses HandBrake knows?
Thanks.
Hellboy. is offline   Reply With Quote
Old 5th December 2024, 00:03   #829  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
I'd be very surprised if it did.
It would be easy to verify. Take one of the known movies that FEL restores the 4000nits master and measure the handbrake encode HDR brightness with my script workflow 6-2 and compare the brightness with the original HDR10 baselayer.

example: https://slow.pics/c/mtU0824c
__________________
DoVi_Scripts

Last edited by Kuler087; 5th December 2024 at 00:06.
Kuler087 is offline   Reply With Quote
Old 5th December 2024, 11:45   #830  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 78
Quote:
Originally Posted by Kuler087 View Post
All of this is automated in workflow 8-2-1 and the encoding settings can be configured at lines 140-165.
https://www.youtube.com/watch?v=8BvXqw_cGJE
There is no doubt that DoVi scripts is one of most fully featured audio video encoders currently available, and without a doubt the single best application for Dolby Vision. However, if one is encoding three to four movies per day, typing in the settings each time can become time consuming and tedious. I'm sure the GUI will eventually streamline a lot of that work and that there are many alongside me who are waiting for a fully-featured GUI that is currently in the works.

Quote:
Originally Posted by Kuler087 View Post
[MPC-HC] doesn't pass the DV metadata to the display. It's only useful for profile 5 DV because it can tone map the colorspace to HDR10 but the dynamic metadata are always ignored.
I'm surprised because MPC-HC claims support for Dolby Vision ["MPCVR also supports Dolby Vision" https://github.com/clsid2/mpc-hc/releases]. It even provides the passthrough option in settings:



Checking that passthrough option in MPC-HC does trigger HDR each time I play a DV video, but playing a DV file in MPC-HC does not trigger DV on my LG C4 so your observation is correct. I can only wonder what purpose the setting above might serve.

Energy Media Player seems terrific. Its HDR/DV processing definitely appears better than that of the MPC video renderer. I guess Energy will soon become my default media player once I have figured out all the settings. I have checked out the Energy player only on my HDR-capable (not DV-capable) Samsung monitor attached to my PC, not on the LG TV thus far. Thank you for suggesting this player.

Quote:
Originally Posted by Kuler087 View Post
when you bake fel to P8.1, the DV will be the same (minus 12 bit but your TV is 10bit so it doesn't matter)
I would not wish to encode my entire library all over again each time a new set of hardware and software options becomes available. So I am sticking to keeping DV profile 7.6 in my encodes, with the belief that 12-bit TVs might become mainstream at some stage. Also, I suppose it is reasonable to hope that players such as Energy might be able to offer support for profile 7 in the not too distant future, or is that beyond the scope of reverse engineering?

Once again, many thanks!
lemaireus is offline   Reply With Quote
Old 5th December 2024, 13:14   #831  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
Quote:
However, if one is encoding three to four movies per day, typing in the settings each time can become time consuming and tedious.
Well if you use different settings for each movie, you can just duplicate the bat file with different settings..

Quote:
I'm surprised because MPC-HC claims support for Dolby Vision ["MPCVR also supports Dolby Vision" https://github.com/clsid2/mpc-hc/releases]. It even provides the passthrough option in settings:
It's just for Profile 5 decoding as HDR10 passthrough. I have tons of test files to find out if the RPU (dynamic metadata) is used.
https://drive.google.com/drive/u/1/f...kxyEV0E3VVkhiC

Quote:
Energy Media Player seems terrific. Its HDR/DV processing definitely appears better than that of the MPC video renderer. I guess Energy will soon become my default media player once I have figured out all the settings. I have checked out the Energy player only on my HDR-capable (not DV-capable) Samsung monitor attached to my PC, not on the LG TV thus far. Thank you for suggesting this player.
it has color issues though(red push with P8 and P7) but the dynamic metadata are processed according to your display edid.

real DV passthrough without certified hardware is technically possible on PC but no one has done it yet.
https://discourse.coreelec.org/t/lea...elopment/50998

Quote:
o I am sticking to keeping DV profile 7.6 in my encodes, with the belief that 12-bit TVs might become mainstream at some stage. Also, I suppose it is reasonable to hope that players such as Energy might be able to offer support for profile 7 in the not too distant future, or is that beyond the scope of reverse engineering?
it does support P7 decoding as P8(like the shield/zidoo/ATV) but as explained in my FEL encoding tutorial, doing that is wrong for all the movies that expand brightness.
You should get the ugoos AM6B+ (with coreELEC) if you want the true DV 12bit FEL experience... CoreELEC can also be installed on the old 2nd gen firestick if you want something cheaper.
https://discourse.coreelec.org/t/ce-...z-s905x4/50953
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 6th December 2024, 12:51   #832  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 78
Quote:
Well if you use different settings for each movie, you can just duplicate the bat file with different settings..
That is something I hadn't thought of; such a neat solution. That will allow me to have as many setting profiles as I might wish to use. Thank you. Nonetheless, for a not overly technologically proficient person such as myself, and one accustomed to working with GUIs (Gordian Knot in 2000s, in the era of DivX and Xvid, and later RipBot264 in 2010s-20s when x264 and x265 superseded earlier codecs) a neatly laid out, efficient GUI will likely remain the comfort food one longs for.

Quote:
You should get the ugoos AM6B+ (with coreELEC) if you want the true DV 12bit FEL experience...
You are an ocean of information on Dolby Vision, Kuler. I've bookmarked this post for my next round of hardware upgrades. It'll take a while for all that you have to offer to sink into me, and once that happens, I'm sure I'll be able to get a lot more out of my hardware than I have been able to thus far.

Now that DV is pretty much the default HDR option on UHD BDs, I hope one or the other code writers for one of the players makes a DV passthrough option available so that the DV-capable displays actually do the job that they are supposed to. At the moment, there is a lot of activity among software writers about DV but we are still to get to a settled stage at which streamlined, user friendly, fully functional applications are available for DV encoding and playback. DoVi scripts comes across as the most well developed package of the lot and a GUI will certainly round it off as the most comprehensive package. Thank you very much for all the work that you have put in.
lemaireus is offline   Reply With Quote
Old 8th December 2024, 10:34   #833  |  Link
dkangel
Registered User
 
Join Date: Jun 2023
Posts: 14
Hello
Can you tell me if it's a big problem and if i have just to modify L5 to correct it?
Thank you

dkangel is offline   Reply With Quote
Old 8th December 2024, 14:21   #834  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
it's not a big problem but you can modify it if you want.

L5 is used only on the TV's internal player, all the HDMI devices ignore it.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 8th December 2024, 15:38   #835  |  Link
dkangel
Registered User
 
Join Date: Jun 2023
Posts: 14
thanks for your answer, i will correct it in the same time i convert mel to P8
thanks again
dkangel is offline   Reply With Quote
Old 9th December 2024, 12:53   #836  |  Link
Black Ops
Registered User
 
Join Date: Aug 2016
Posts: 28
Is there any way to compare a HDR10 and HDR10+ version of a movie to see if the dynamic metadata is making any difference

Ive generated hdr10+ metadata via resolve and injected it via the script. But im wondering if im seeing a placebo effect when the movie in question has MaxMDL of 1000 which my samsung qn90c uses (Doesnt Use MaxCLL, Only MaxDML). The movie in question is around 600 nits max so well within the 1000+ capability of my TV so im wondering if the TV is doing any tonemapping at all

I can however see a reduction in peak highlight brightness when i watch movies with MAXDML of 4000 nits like pacific rim. The highlights were clearly muted but im not sure if its the case for 1000MaxMDL movies.

Whats the best way, if any, to determine this?
Black Ops is offline   Reply With Quote
Old 9th December 2024, 13:10   #837  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
You can make the json out of sync and see if brightness varies between the shots.
resync it in workflow 1
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 9th December 2024, 13:26   #838  |  Link
Black Ops
Registered User
 
Join Date: Aug 2016
Posts: 28
Apologies, how would i check the shots? Im currently using my firestick to playback each video to spot a difference
Black Ops is offline   Reply With Quote
Old 9th December 2024, 14:02   #839  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 460
you play the OOS HDR10plus video and look for brightness variation between the shots. If nothing is visible, it means your TV is not doing any tone mapping.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 9th December 2024, 17:58   #840  |  Link
en6ads
Registered User
 
Join Date: Nov 2024
Posts: 9
Sorry if these questions have been answered before, noob here:
1. Does workflow (3)(1) create a DV 8.1 Cmv4.0 file from HDR10+? The instructions state HDR10, not HDR10+. Workflow (3)(2) appears to be for HDR10+, but says "not recommended"
2. If I convert a HDR10+ movie to DV 8.1 Cmv4.0, does this in any way reduce or alter the picture quality when decoding an encoding?
2. If a movie has BT.2020 color primaries, but 'Display P3' Mastering display color primaries, should I choose BT.2020 or P3?

Edit: I'm trying to decide whether to use Dolby VS10 to dynamically convert HDR10+ only movies (such as Alien, Dawn of the Dead), or use this tool to make a new file that is DV. But if there's any degradation whatsoever, I don't want that.
Thank you.

Last edited by en6ads; 9th December 2024 at 18:28.
en6ads is offline   Reply With Quote
Reply

Tags
batch scripts, dolby vision processing, dovi_scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.