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. |
|
|
Thread Tools | Search this Thread | Display Modes |
19th October 2024, 17:43 | #702 | Link | |
Registered User
Join Date: Oct 2021
Posts: 22
|
Hello.
You updated dovitools since the last time I used it, and I cant find "Convert RPU to XML" option. Im trying to convert alien HDR to SDR Quote:
|
|
19th October 2024, 18:05 | #703 | Link | |
Registered User
Join Date: Aug 2020
Location: Bilbao, Spain
Posts: 33
|
Quote:
You can check some here: https://libplacebo.org/options/ Interesting ones are bt2446a and st2094-40. These seem to accept actual and target display luminances for the OOTF adjustement. Ie: actual=MaxCLL or MaxMDL, target=100. I'm not sure if it stays in PQ or translates to BT.1886 (2.4) for either one. It looks like st2094-10 takes HDR10+ metadata if available. I think these algorithms, if tuned correctly might be interesting to compare to Dolby's own. |
|
19th October 2024, 18:07 | #704 | Link | |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
Quote:
__________________
DoVi_Scripts |
|
19th October 2024, 18:14 | #705 | Link | |||
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
Quote:
If you download the latest DS beta + tools, I've updated libplacebo and added more controls on the tone mapping. I've compared the other mode and i much prefer bt2390 + target 125nits honestly but the Resolve Dolby cmv4.0 with balanced tuning is still the best HDR to SDR tone mapping IMO. Quote:
@all I'm almost done debugging the new GUI and a new scripts version should be released soon Quote:
__________________
DoVi_Scripts |
|||
19th October 2024, 18:20 | #706 | Link |
Registered User
Join Date: Oct 2021
Posts: 22
|
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]?1 ================================== - INJECTOR / EDITOR / EXTRACTOR - ================================== ------------------------------------------------------------------------------------- -- This workflow inject / extract and can edit two or one input (press enter to skip the 2nd input) -- Can batch process files: input(s) can be folder(s) with files -- Input can be MKV/TS/M2TS/MP4/HEVC/RPU/XML/HDR10plus.json/P5/P8/P7/folder(s) -- Can auto-Crop, Edit L5/L6/L9 and Resync DV or HDR10plus, validate metadata with metafier(XML) -- Can use external json config for more rpu edition. json must be same filename/path. do not input as metadata -- json input for the metadata input must be hdr10plus. -- You can inject both DV and HDR10plus if the metadata inputs have the same path/filename as the BL. -- For the batch injector, both folders must contain only the files to process and they must be in the same order ------------------------------------------------------------------------------------- Drag and drop a file or a folder with files (MKV/TS/M2TS/HEVC/H265/RPU/XML/FOLDER) and press enter... m (OPTIONAL) Drag and drop a folder with Dynamic Metadata (RPU/XML/JSON/MKV/MP4/TS/M2TS/HEVC) and/or press enter... |
19th October 2024, 18:23 | #707 | Link |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
__________________
DoVi_Scripts |
20th October 2024, 01:37 | #709 | Link |
Registered User
Join Date: Oct 2021
Posts: 22
|
Thank you.
I'm trying to follow this tutorial, but I'm lost. https://www.youtube.com/watch?v=lM56zLpKDQ8&t=5s In the minute 2:29, when you need to import the DV xml, I get this message Code:
The edit rate of Dolby Vision metadata is not matched to timeline. This is the XML first lines, it says 24000 101 in the edit rate section, and my project and the file are in 24fps Code:
<?xml version="1.0" encoding="UTF-8"?> <DolbyLabsMDF> <xmlns>http://www.dolby.com/schemas/dvmd/4_0_2</xmlns> <Version>4.0.2</Version> <RevisionHistory> <Revision> <DateTime>2024-10-20T00:44:34Z</DateTime> <Author>Rainbaby</Author> <Software>dovi_meta</Software> <SoftwareVersion>1d32ca0</SoftwareVersion> </Revision> </RevisionHistory> <Outputs> <Output> <CompositionName>Timeline</CompositionName> <UniqueID>ac5018b5-c906-4937-8026-e25b9f7201a3</UniqueID> <NumberVideoTracks>1</NumberVideoTracks> <CanvasAspectRatio>1.7777778</CanvasAspectRatio> <ImageAspectRatio>1.7777778</ImageAspectRatio> <Video> <Track> <TrackName>V1</TrackName> <UniqueID>db77339f-2e48-41b7-bc6d-063c492bc1e3</UniqueID> <EditRate>24000 1001</EditRate> <ColorEncoding> <Primaries> <Red>0.708 0.292</Red> <Green>0.17 0.797</Green> <Blue>0.131 0.046</Blue> </Primaries> <WhitePoint>0.3127 0.329</WhitePoint> <PeakBrightness>10000</PeakBrightness> <MinimumBrightness>0</MinimumBrightness> <Encoding>pq</Encoding> <ColorSpace>rgb</ColorSpace> <SignalRange>computer</SignalRange> </ColorEncoding> <Level6 level="6"> <MaxCLL>0</MaxCLL> <MaxFALL>0</MaxFALL> </Level6> <PluginNode> <DVGlobalData level="0"> <MasteringDisplay> <ID>21</ID> <Name>1000-nits, BT.2020, ST.2084, Full</Name> <Primaries> <Red>0.708 0.292</Red> <Green>0.17 0.797</Green> <Blue>0.131 0.046</Blue> </Primaries> <WhitePoint>0.3127 0.329</WhitePoint> <PeakBrightness>1000</PeakBrightness> <MinimumBrightness>0.0001</MinimumBrightness> <EOTF>pq</EOTF> <DiagonalSize>42</DiagonalSize> </MasteringDisplay> <TargetDisplay> <ID>1</ID> <Name>100-nits, BT.709, BT.1886, Full</Name> <Primaries> <Red>0.64 0.33</Red> <Green>0.3 0.6</Green> <Blue>0.15 0.06</Blue> </Primaries> <WhitePoint>0.3127 0.329</WhitePoint> <PeakBrightness>100</PeakBrightness> <MinimumBrightness>0.005</MinimumBrightness> <EOTF>gamma_bt1886</EOTF> <DiagonalSize>42</DiagonalSize> </TargetDisplay> <TargetDisplay> <ID>28</ID> <Name>600-nits, BT.2020, ST.2084, Full</Name> <Primaries> <Red>0.708 0.292</Red> <Green>0.17 0.797</Green> <Blue>0.131 0.046</Blue> </Primaries> <WhitePoint>0.3127 0.329</WhitePoint> <PeakBrightness>600</PeakBrightness> <MinimumBrightness>0</MinimumBrightness> <EOTF>pq</EOTF> <DiagonalSize>42</DiagonalSize> </TargetDisplay> <TargetDisplay> <ID>49</ID> <Name>1000-nits, BT.2020, ST.2084, Full</Name> <Primaries> <Red>0.708 0.292</Red> <Green>0.17 0.797</Green> <Blue>0.131 0.046</Blue> </Primaries> <WhitePoint>0.3127 0.329</WhitePoint> <PeakBrightness>1000</PeakBrightness> <MinimumBrightness>0</MinimumBrightness> <EOTF>pq</EOTF> <DiagonalSize>42</DiagonalSize> </TargetDisplay> </DVGlobalData> <Level254 level="254"> <DMMode>0</DMMode> <DMVersion>2</DMVersion> <CMVersion>4 1</CMVersion> </Level254> </PluginNode> <Shot> <UniqueID>04566c40-df2b-4758-acef-3715f66ecb83</UniqueID> <Record> <In>0</In> <Duration>24</Duration> </Record> <PluginNode> <DVDynamicData> <Level1 level="1"> <ImageCharacter>0 0.3001221 0.5492064</ImageCharacter> </Level1> <Level2 level="2"> <TID>1</TID> <Trim>0 0 0 -0.00784724 -0.13330078 0.21885157 0 0.0048828125 0</Trim> </Level2> <Level2 level="2"> <TID>28</TID> <Trim>0 0 0 0 0.0068359375 0.04646516 0 0.00048828125 0</Trim> </Level2> Last edited by smaiderman; 20th October 2024 at 01:45. |
20th October 2024, 01:49 | #710 | Link |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
yes because an rpu doesnt have a framerate and dovi_meta always assumes 23.976 so you have to edit the XML manually. Replace ''24000 1001'' with ''24 1'' or just ''24'' (I don't remember).
I'll script something to automate this in the next version.
__________________
DoVi_Scripts |
20th October 2024, 01:55 | #711 | Link | |
Registered User
Join Date: Oct 2021
Posts: 22
|
Quote:
Thanks again I confirm it is "24" Last edited by smaiderman; 20th October 2024 at 01:58. |
|
22nd October 2024, 12:45 | #712 | Link | |
Registered User
Join Date: Aug 2020
Location: Bilbao, Spain
Posts: 33
|
Quote:
My GPU is Intel Graphics UHD 770, which is vulkan compatible 1.3.295. Script outputs this error constantly: Code:
vpy [WARN]: Avisynth Compat: requested frame 0 not prefetched, using slow method Validation failed: !params->renderable || fmt_caps & PL_FMT_CAP_RENDERABLE (../../../../../src_packages/libplacebo/src/gpu.c:234) for texture: ../../../../../src_packages/vs-placebo/src/tonemap.c:114 Dolby Balanced may produce better results, but libplacebo bt.2446 with input and output nits would be a contender, since it's a ITU standard. POST_EDIT: I found by chance SETTINGS rename me to use external settings.bat file which has options for bt.2446 and input/output target nits. I see it has dynamic peak detection on by default, which uses dynamic tonamapping and brightness shifts in mpv player. Best result would be reading MaxCLL or MaxDML from metadata as input and disable peak detection. Even better, it could be manually offered as options on live script run. Last edited by wyup; 22nd October 2024 at 13:43. |
|
22nd October 2024, 13:18 | #713 | Link | ||||||
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
But I think in 8-2,I didn't do the change yet and the tone mapping mode is hardcoded to bt2390 in the latest beta but the target nits value is working for sure. In the final stable version, you will have the same control as in 7-2. For testing, you should use 7-2 and avspmod. It's easier to switch from one setting to another.
__________________
DoVi_Scripts |
||||||
22nd October 2024, 14:03 | #714 | Link | |
Registered User
Join Date: Jun 2010
Posts: 24
|
Quote:
And how can i edit/modify the fps of the hdr10+ in the metadata file? |
|
22nd October 2024, 14:10 | #715 | Link | |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
Quote:
So as long as you sync the metadata frames correctly with the video frames, you can inject the metadata from a 24fps source to a 23.976fps video for example.
__________________
DoVi_Scripts |
|
23rd October 2024, 16:02 | #717 | Link |
Registered User
Join Date: Aug 2020
Location: Bilbao, Spain
Posts: 33
|
Thanks Kuler, you are the man :-). Great professional job with your scripts.
Tweaking HDR to SDR tonemapping algos is interesting to compare with previous SDR blu-ray editions in SDR environment such as average computer monitors. I believe the better brightness gradation of HDR should come across in SDR aswell as show your libplacebo stills (in some cases better than DV clorist trims as you say). What do you think of the regular 100-nit trims extrapolation job to tv brightness? I think colorists should do a 400-nit or 600-nit grade by default since DV tvs are already HDR400, capable at least of 400 nits. No DV tv is 100 nits, which I think already is too much tonemapping to begin with, even with extrapolation. Aside from custom-nit DV trim outs with your script, which is awesome, it would be nice to do custom HDR to HDR tonemapping aswell, i.e: bt2446a reading metadata. Resolve has CST with PQ to PQ tonemapping I/O nit settings, but plot measurements from Resolve HDR deliver metadata and your script plot don't seem to correlate after rendering. I think for example a 400-nit to 1,000-nit tonemapping would be useful to scale up tv brightness. Usually low HDR nit content does not scale to tv capacity. Although tonemapping always change the picture to some extent as it modifies the original. On the other hand, I don't know how HDR10+ tools in Resolve can help to deliver a tonemapping output render instead of only the .json metadata. Last edited by wyup; 23rd October 2024 at 16:06. |
23rd October 2024, 17:57 | #718 | Link | ||||||
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
Quote:
Quote:
EG: - Chroma Weight is ignored by all the cmv2.9 devices. - Some devices ignore any positive lift (offset metadata) - All the devices I tried ignore ms_weight - All the devices I tried ignore the vector fields (hue and saturation secondary trims metadata) So in the end, it is much more accurate to deliver the 100nits from the HDR source since all the metadata works this way and the tone mapping is identical to the official bluray SDR release in 95% of the case. One other strange behavior I noticed recently with the Dolby trims is in resolve when you adjust 100nits trim of the Chroma Weight and/or the trim saturation controls, the values (not even extreme values) are not extrapolated to the 600-1000nits trims. For all the other controls, any adjustment in 100nits get extrapolated to the 600-1000trim and you can see the difference on your mastering monitor. What is strange is when you deliver that 100nits trim with CW and Saturation metadata, it has an obvious effect on my 800nits LG C2 TV. So this doesn't make much sense to me. It's a similar story for the ms_weight control, if I make an adjustment, I see the difference on the mastering display but I don't see it in DV playback. Quote:
Quote:
be ignored on any display with a target lower than 600 or 1000. This way the colorist can be very aggressive with the 100nits trim without affecting the other target. Quote:
Increasing the master brightness requires grading and Dolby can only map down the brightness, not the other way around. Quote:
__________________
DoVi_Scripts Last edited by Kuler087; 23rd October 2024 at 18:00. |
||||||
25th October 2024, 02:10 | #719 | Link |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 401
|
3.0.3 Released: https://github.com/R3S3t9999/DoVi_Sc...ases/tag/3.0.3
__________________
DoVi_Scripts |
27th October 2024, 20:03 | #720 | Link |
Registered User
Join Date: Aug 2020
Location: Bilbao, Spain
Posts: 33
|
No standalone more MKV MP4 TS .bat downloads? It's more "transparent" to see their source code, even when you need additional and updated libraries.
While downloading "tools pack" or the whole DoVi.Scripts.7z is convenient, does it override user installed python scripts and plugins, as well as MadVR, LavFilters, Avisynth, Vapoursynth? I installed all these requirements but I don't know if those in DoVi.Scripts.7z do override my system user installed ones. In such case, is it still required to manually install these tools? Last edited by wyup; 27th October 2024 at 21:46. |
Tags |
batch scripts, dolby vision processing, dovi_scripts |
Thread Tools | Search this Thread |
Display Modes | |
|
|