View Full Version : [DoVi_Scripts] Multi-Function Scripts for Dolby Vision processing and a lot more...
guest
15th July 2024, 06:06
You can try ProRes 422HQ or 4444 XQ using the free Voukoder plugin.
https://www.voukoder.org/forum/thread/783-downloads-instructions/#google_vignette
https://github.com/Vouk/voukoder
Thanks again, DMD.
Got the latest build & then I had to get the connector, so I will see what that does for me. :)
Thanks again, DMD.
Got the latest build & then I had to get the connector, so I will see what that does for me. :)
Installation instructions:
To use the classic version of Voukoder, two components must be installed:
The Voukoder application and
The connector plug-in that connects Voukoder to your favorite NLE.
1. Install the main Voukoder application.
2. Extract the contents of the file "resolve-connector-x.xx.x.zip" to:
C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins
3. If the "IOPlugin" directory does not exist, create it.
4. Done
Settings:
https://i.postimg.cc/VNy1JqtM/01-R.png
Selection options ProRes 4222 HQ, 4444 HQ and 4444 XQ
https://i.postimg.cc/C5CJ4VrS/02r.png
https://i.postimg.cc/XY1LLLLG/02br.png
https://i.postimg.cc/25qwKW9H/02cr.png
https://i.postimg.cc/gcMWVFRG/03.png
In the audio section, select the Uncompressed PCM codec, as if different, StaxRip can block in the Demux audio section.
https://i.postimg.cc/jSfYYD1j/04.png
Selection container mov.
https://i.postimg.cc/NGC3y8qM/05.png
guest
15th July 2024, 07:59
Installation instructions:
To use the classic version of Voukoder, two components must be installed:
The Voukoder application and
The connector plug-in that connects Voukoder to your favorite NLE.
1. Install the main Voukoder application.
2. Extract the contents of the file "resolve-connector-x.xx.x.zip" to:
C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins
3. If the "IOPlugin" directory does not exist, create it.
4. Done
Settings:
https://i.postimg.cc/VNy1JqtM/01-R.png
Yes, I done most of that, a few times :)
I'm curious that a YUV (10bit 4:2:0) isn't displayed, there's only YUV (High Bit Depth)
I've delivered one at both settings and the 8 bit is a larger file size that the high bit..:confused:
A lot more trial & error, and thanks again for your help :)
wyup
17th July 2024, 13:31
That is not how it works. As soon as you change something in the video, that's re-grading regardless of how bright your source is(100, 200, 500nits).
There is no difference in the workflow and any change you make must be monitored shot by shot otherwise you're raising everything, even the non-highlight pixels (EG: white objects or source clipping that will look off).
it does not. You're confusing clipping and maximum brightness/details your TV can display.
For example, this image is 3000nits &+ and appears brighter because everything is clipped by the TV but in reality, it does not respect the creator's intent and it is NOT brighter than the 800nits(my TV peak) mapped image.
Your TV cannot get brighter than its capabilities so both images peak at 800nits but the 3000nits one is clipped because my TV can't display the original brightness.
I'm not confusing with clipping because that 10,000 demo didn't clip at all on my Samsung tv. My tv reads MaxDML HDR10 metadata and tonemaps it to its capacity. It has two curves: one for 1,000 to 4,000 nits, and another for 4,000 to 10,000 nits. 0 to 1,000 is mapped directly as is.
Can I obtain a 400, 600 or 1,000 nit tonemap from the 10k nit original with your scripts or from your drive? This way I can compare between them and check. I'm not sure, but I have the impression that low nit videos, such as 400 to 600 nits watch darker than a 4k or 6k nit. Yes, i know they should watch similarly, but I'd like to check up.
However, a 400 to 1,000 up tonemapping would make sense because it would benefit from the full capacity of my tv. Otherwise, 600 nits would be wasted IMHO.
Fair enough, bringing up brightness with Resolve might change the grade already, but there must be a way of doing it 'transparently', or 'non destructively'. I.e: when I use brightness or peak brightness control on my tv, the image doesn't change much per se, it remains largely the same. It is a similar process to watching SDR: it is mapped to the tv capacity and blacks remain anchored. I think tonemapping algorithms are for down-tonemapping mostly, because you must make concessions and priorities. For up-tonemapping, it is a matter of scaling up brightness, nothing is lost.
By the way, I wonder how they grade movies at 10,000 nits: they must use sunglasses because for one, mastering monitors of that capacity must be extremely expensive, and who can watch luminance that high? I presume these are up-tonemapped for mastering.
For example: have a look at this 3-minute 200 Mb (no Dolby Vision, just HDR10) clip extracted from a download of a 2023 30th Anniv. HDR10 remaster of The Fugitive (1993) film. It has a maxCLL of 5,800 nits and average of 1,500 nits. Since it comes from celulloid, it is impossible the negative had luminance this high: it must have been up-tonemapped. The whole movie has a maxCLL of 6,800 nits, so a mastering monitor of at least that much must have been used, if not much less and then up-mapped.
plot (https://mega.nz/file/L1xEUSRR#XrgJ2yaATk0HqPxt5ibl7F4uVQB3xjkY-JHLXtrzWTI)
clip (https://mega.nz/file/mlZClIhA#qREGGDMbOXEKPlckjapf9tUiA98mpxhIY6rgKQR7cts)
Kuler087
17th July 2024, 15:15
Can I obtain a 400, 600 or 1,000 nit tonemap from the 10k nit original with your scripts or from your drive?
yes, I've added it in the beta version the day after you asked but I haven't tested it yet. The SM disc already have a 1000/600 nits version of the montage btw.
line 169:
::Choose the trim target to deliver in 8-2-5. Choicies are: 100nits=1 / 600nits=28 / 1000nits=49 (default = 1 )
set CMOFFLINE.TARGET=1
Dolby CM_offline has the same prores slow performance bug as CM_analyze so it is much faster to do it in resolve and you have more target options.
https://i.ibb.co/hmbK90H/Capture-d-cran-2024-07-17-101223.png
guest
18th July 2024, 07:16
Sorry for my forgetfulness, but when using 8-1-3 either DD+ or THD, I am getting a 7.1 from the original 5.1 ac3.
Is there a setting to NOT convert to 7.1 ??? I was looking around the other day, and couldn't find any relevant settings, or is it a DEE thing ??
Kuler087
18th July 2024, 11:46
the dee workflow is just for 7.1 audio. No point using it for 5.1, use 8-1-1
Guest
18th July 2024, 13:26
the dee workflow is just for 7.1 audio. No point using it for 5.1, use 8-1-1
Good to know, tho :)
:thanks:
halls
20th July 2024, 12:45
Hi!
@Kuler087
Could you make a video on how to resync the HDR10+ metadatas and inject to normal HDR10 base layer?
As in "web streaming to to HDR10 BD rip P8 Hybrid" video.
Kuler087
20th July 2024, 13:48
You do that the same way as when you inject/resync DV from WEB with workflow (1-1).
https://www.youtube.com/watch?v=hVWZpat34oc
halls
20th July 2024, 14:35
:thanks:You do that the same way as when you inject/resync DV from WEB with workflow (1-1).
https://www.youtube.com/watch?v=hVWZpat34oc
jayper
23rd July 2024, 20:37
If I have:
- an HDR10-only disc
- a retail P5-RPU (cmv2.9)
- a CM_Analyze generated RPU (cmv4.0)
Is there any value in running workflow 1-1 with the HDR10 base layer, and the retail P5-RPU (cmv2.9).
Then running the resulting file (HDR10 base with retail P5-RPU) through 1-1 again, this time with the CM_Analyze generated RPU (cmv4.0) to get the colorists trims from the retail P5 plus the cmv4.0 metadata from the CM_Analyze?
Kuler087
23rd July 2024, 21:28
Then running the resulting file (HDR10 base with retail P5-RPU) through 1-1 again, this time with the CM_Analyze generated RPU (cmv4.0) to get the colorists trims from the retail P5 plus the cmv4.0 metadata from the CM_Analyze?
That would remove the retail cmv2.9 rpu and would replace it by the new cmv4.0 rpu. In other words, 1-1 always overwrite any existing RPU from the BL(input one).
The workflow to transfer metadata levels from one rpu to another is 2-6 (and now 2-3 in upcoming 2.0.9 (https://justpaste.it/g1u2l)) but you cannot transfer levels from RPUs that were created from difference analysis. The Dolby 2.9 and 4.0 calculate the metadata quite differently. See this comparison (https://slow.pics/c/WlGwchoE)
You can only transfer levels when both RPU comes 100% from the same DV analysis.
jayper
23rd July 2024, 22:16
That would remove the retail cmv2.9 rpu and would replace it by the new cmv4.0 rpu. In other words, 1-1 always overwrite any existing RPU from the BL(input one).
Ah, I see. I wasn't sure if that process replaced or transferred the levels. Good to know. Thanks.
The workflow to transfer metadata levels from one rpu to another is 2-6 (and now 2-3 in upcoming 2.0.9 (https://justpaste.it/g1u2l)) but you cannot transfer levels from RPUs that were created from difference analysis. The Dolby 2.9 and 4.0 calculate the metadata quite differently. See this comparison (https://slow.pics/c/WlGwchoE)
You can only transfer levels when both RPU comes 100% from the same DV analysis.
I see, once again, I had no idea. I am glad I asked. Thanks very much.
I realize that the answer to this question probably depends on the type of TV you have, but is there a general rule as to what is better? cmv2.9 with custom trims, or generated cmv4.0 with no trims?
Kuler087
23rd July 2024, 22:25
The only times you could replace a retail RPU by a cmv4.0 generated rpu are:
1- cmv2.9 rpu without any trims
2- a rpu with static L1/L2. (static L1 + dynamic L2 is fine)
3- if the hybrid sources are not the same grade
4- On some rare occasions, when I think the retail rpu doesn't make sense like in ''Risky Business 1983'' (https://slow.pics/c/Ekjrb0Ot)
5- If you don't have a FEL capable device and fel expand the brightness, I guess its fine to generate DV for the HDR10 BL brightness.
guest
25th July 2024, 06:42
Hi Kuler,
I have been using the latest 2.0.9 beta, and using Workflow 3 to create a "Dovi" of PotC clip.
I used 3-1 7 (4000/P3), and 3-1 20 (1000/P3) & 3-2 (no other options), and using both the new & old mp4 muxers.
And I cannot tell any difference between any of them, and both the muxers work with my new LG C4.
Not sure if there will be any difference in encoding time for the full length movie (processing atm), between 3-1 & 3-2, but I had one doing 3-1 a couple of days ago, it was going to take a L-O-N-G, the CUDA encoding countdown started at about 18 hours :(
Would there be any difference in encoding time, if it was just the video track (add the audio later)
Might have to start using Resolve.
Anyway, still learning, and you keep improving your workflows...
Cheers
Kuler087
25th July 2024, 11:56
3-2 use madVR for generating the metadata and it's not as good as the DV algo.
You could possibly get some brightness fluctuation between shots and the average_PQ metadata is much higher with madvr which will result in a darker tone-mapped image.
Here's the actual difference between metadata generated with Dolby algo, HDR10plus and Madvr: https://drive.google.com/file/d/1PiiK4WVgXr2LTorJ6Ci2BWgJadNFZTVA/view?usp=drive_link
guest
25th July 2024, 12:40
3-2 use madVR for generating the metadata and it's not as good as the DV algo.
You could possibly get some brightness fluctuation between shots and the average_PQ metadata is much higher with madvr which will result in a darker tone-mapped image.
Here's the actual difference between metadata generated with Dolby algo, HDR10plus and Madvr: https://drive.google.com/file/d/1PiiK4WVgXr2LTorJ6Ci2BWgJadNFZTVA/view?usp=drive_link
So does that explain why 3-2 is a faster process that 3-1 ??
Can this be done with Resolve ??
Kuler087
25th July 2024, 13:07
Of course, 3-2 will always be faster than 3-1 and faster than Resolve as well because it can create the metadata straight from the HEVC stream with madMeasureHDR.exe or HDR10plus.
In 3-2:
if present, will convert HDR10plus to DV
if no hdr10plus, it will use madvr to measure the video and convert the madvr measurement file to DV.
in both cases, no prores transcoding and no slow performance (cm_analyze.exe) so that's why it is so fast but less accurate than using the official Dolby Algo (the same algo the studios use).
guest
25th July 2024, 13:40
Of course, 3-2 will always be faster than 3-1 and faster than Resolve as well because it can create the metadata straight from the HEVC stream with madMeasureHDR.exe or HDR10plus.
In 3-2:
if present, will convert HDR10plus to DV
if no hdr10plus, it will use madvr to measure the video and convert the madvr measurement file to DV.
in both cases, no prores transcoding and no slow performance (cm_analyze.exe) so that's why it is so fast but less accurate than using the official Dolby Algo (the same algo the studios use).
OK, thanks for that, I'll have to do a couple of my own comparisons, to determine the time taken, and the "quality".
My old eye's probably won't be able to tell too much difference.
So just for my information, I am currently watching Pirates Of The Caribbean Curse of the Black Pearl, and there is a LOT of different "colour grading" through out, some scenes are quite "natural" looking, and other's are dark and "reddish", is this the grading process that you speak of that takes hours in Resolve ???
Kuler087
25th July 2024, 14:14
So just for my information, I am currently watching Pirates Of The Caribbean Curse of the Black Pearl, and there is a LOT of different "colour grading" through out, some scenes are quite "natural" looking, and other's are dark and "reddish", is this the grading process that you speak of that takes hours in Resolve ???
yes, movies are graded shot by shot.
guest
26th July 2024, 01:49
yes, movies are graded shot by shot.
So is "shot by shot" the same as "frame by frame" ?
That IS a hell of a lot of frames or shots to be manually graded,
surely Resolve has some way of copying the graded shot/frame, from one adjusted frame to another or group of others ??
I watched a few YT clips on Colour Grading, and most of them are using nodes, to keep track of their changes.
Seems like way too much work for a one off.
Kuler087
26th July 2024, 03:20
So is "shot by shot" the same as "frame by frame" ?
no
That IS a hell of a lot of frames or shots to be manually graded,
yes, the colorist can spend weeks/months grading big-budget movies.
surely Resolve has some way of copying the graded shot/frame, from one adjusted frame to another or group of others ??
of course and this is exactly what I do in the SDR to HDR video when I select multiple shots. You can copy the grade of one shot to another by pressing your mouse's wheel over a shot.
Same story for the Dolby Vision trim pass(es). It doesn't work with the mouse wheel but you can map a key to copy trim or level 1 metadata to any shot.
CineManiac
28th July 2024, 01:04
Quick question. I see the FEL RPUs you are now uploading with cmv 4.0 added. Is it okay to bake FEL and then copy the L8 levels to the P8 RPU?
Kuler087
28th July 2024, 02:18
yes it's ok
PS:
The latest beta now supports FEL baking/encoding(8-2) without a Nvidia GPU.
CineManiac
28th July 2024, 04:29
Nice! Thanks
CineManiac
28th July 2024, 16:17
Loving the ability to create heatmaps/gamuts with folders of PNGs with 3.0.0! Would it be possible to create a folder within the output folder like with video screenshots?
Kuler087
28th July 2024, 17:11
yes sure
guest
29th July 2024, 03:48
Just a quick question...have you ever considered buying an AMD Threadripper ??
Kuler087
29th July 2024, 04:35
never. I'm an intel/nvidia guy.
guest
29th July 2024, 06:43
So I thought I'd run a DV conversion with the new 3.0.0.
I chose WF 3-1, and after it doing all it's process, just over an hour later, I get some error msg's, and that was it :(
Here's some info:-
https://www.mediafire.com/file/9xtl63f1x52g6st/first_run_with_3.0.0_WF_3-1_errors.txt/file
https://www.mediafire.com/file/576l1g53jyyoywf/MediaInfo.txt/file
I'm running 3-2 on the same movie, as we speak, will comment when completed (or not)
3-2 completed, but the audio is way out of sync...
I must be missing something needed for 3-1 to complete properly.
guest
29th July 2024, 06:46
never. I'm an intel/nvidia guy.
So Blue & Green team.
I have a majority of AMD's CPU's, but nearly always go for nVidia GPU's.
Kuler087
29th July 2024, 10:22
So I thought I'd run a DV conversion with the new 3.0.0.
I chose WF 3-1, and after it doing all it's process, just over an hour later, I get some error msg's, and that was it :(
Here's some info:-
https://www.mediafire.com/file/9xtl63f1x52g6st/first_run_with_3.0.0_WF_3-1_errors.txt/file
https://www.mediafire.com/file/576l1g53jyyoywf/MediaInfo.txt/file
I'm running 3-2 on the same movie, as we speak, will comment when completed (or not)
3-2 completed, but the audio is way out of sync...
I must be missing something needed for 3-1 to complete properly.
nothing changed in 3-1 / 3-2...
looks like you added space or special characters in your script path
guest
29th July 2024, 10:29
nothing changed in 3-1 / 3-2...
looks like you added space or special characters in your script path
Damn it...I keep forgetting about :(
Thanks, I'll try again tomorrow.
Finished now procedure 3-1 with Script 3.0.0
All OK, I did not detect any audio sync problems.
Kuler087
31st July 2024, 15:46
I did a stupid redirection bug/typo in workflow 1 when the input doesn't have lossless audio (DTS or THD). Get the latest beta or turn off EAC3 encoding in the settings: https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link
I did not notice because my own script EAC3 conversion settings is set to OFF. sorry
hgny
31st July 2024, 18:03
Hi
I'm new to the script, amazing job!
I'm trying to do workflow 8-2-4 for converting DV file to SDR. I'm getting some errors and warnings.
I took some pictures, will upload it. Does this is a regular behavior?
Thanks.
https://imgur.com/a/mQbL7X2
Kuler087
31st July 2024, 18:40
Hi,
this looks like a Dolby cm_offline.exe error on an AMD GPU and I dont think there's anything I can do about it since it's working fine with an Nvidia gpu.
You might have to contact Dolby or do it in Resolve (https://youtu.be/lM56zLpKDQ8), it will be faster anyway.
https://i.ibb.co/q0pgSs1/Windows-Terminal-a-P46q-KQRKS.gif
hgny
31st July 2024, 19:30
Yes i tried with resolve. Problem is, my computer doesn't support dolby vision so profile 5 has some pink color and it seems resolve is tone mapping it wrongly.
Kuler087
31st July 2024, 19:36
Just tonemap P5 to PQ HDR10 with workflow 8-2-3 which is exactly what the script does in 8-2-4
guest
9th August 2024, 01:02
So just for dummies like me, it might be helpful if you mentioned where those 3 new .py files need to be put...
"new files needed"
Kuler087
9th August 2024, 01:27
in the tools folder
guest
9th August 2024, 03:09
in the tools folder
Thanks, updating everything now...
With this extra :-
::choose osd text color in 7-1 / 7-2 / 7-3 (default = dark grey: $808080)
set osdcolor=$808080
What are the "number codes" for other colours ??
https://html-color.codes/
Kuler087
9th August 2024, 03:46
What are the "number codes" for other colours ??
https://html-color.codes/
yes, any color code from that website should work... but instead of # you use $
EG: $3cb300
guest
10th August 2024, 12:11
Hi Kuler,
I just want to run this by you, and get your thoughts, and possible suggestions -
I processed "The Fifth Element" yesterday, and ran it thru DS 8-1-1.
The movie is just over 2hrs:06minutes (181171 frames)
It started it's cm_analyze "countdown" @ approx 6hrs:30minutes, after several minutes, it was counting up, then it settled, then started counting down, (after a couple of hours) and it seemed that it was taking a little bit more time to process each frame.
So it ended up taking well over 4.5 hours to complete, and I was SO relieved that it did finish, and I had a workable file name, and plenty of free space :)
So a couple of questions, is this time frame is something I need to expect as the norm, with movie length encodes ??
I'd hate to think how long ultra long movies like the extended LoTR & The Hobbit, etc are going to take.
I'm glad I got a 4080, as I'm sure the poor little 3060 would take a LOT longer.
Is there anyway that this process can be sped up, or is it just the way it has to be ??
Kuler087
10th August 2024, 14:03
I have no control over the speed with cm_analyze unfortunately. I really wish Dolby fixed that slow performance issue on windows but they haven't updated the tools since February 26, 2024.
guest
11th August 2024, 07:45
I did a really quick & dirty Resolve HDR10 & DV metadata edit today, and using the MP4 script (as I always do), after injecting the .xml, I got an .mp4, then I injected the .json into that file, and I got an .mkv :confused:
If I imported the folder containing both the .xml & .json it would state that the video file was only HDR10, and would quit.
Seems I have to inject the .json first, then inject the .xml into the .json video.
Kuler087
11th August 2024, 15:41
Yes, I think that if you inject HDR10plus, the script will force the MKV container since the only reason to use the MP4 container is for DV and the reason is that there's no code in my script to mux non-DV input to MP4
try this:
Rename hdr10plus json file the same as the HDR10 BL and input-1 the BL HDR10 video and input-2 the XML. This should inject both metadata in one job but you still might end up with a MKV, I'm not sure.
ReciprocalUniverse
12th August 2024, 19:54
Great Work Kuler!!
Kuler087
12th August 2024, 20:18
@ReciprocalUniverse thank's :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.