Author Topic: DaVinci Resolve and ML Raw  (Read 82820 times)

baldavenger

  • Member
  • ***
  • Posts: 177
Re: DaVinci Resolve and ML Raw
« Reply #125 on: April 19, 2019, 02:19:00 AM »
I put together a small set of LMTs for editing photos in Resolve

The ACES TOOLS set consists of the following:

IDT_INV_REC709
IDT_INV_SRGB
LMT_DNG_OFX
LMT_COLOR_BALANCE_OFX
LMT_HSL_OFX
LMT_HUE_VS_LUMA_OFX
LMT_PFE_OFX
LMT_PFE_OFX_NEUTRAL



LMT_DNG_OFX helps with images that are a little compressed in the shadows.










LMT_COLOR_BALANCE_OFX, LMT_HSL_OFX, and LMT_HUE_VS_LUMA_OFX emulate some of the controls familiar to users of Photoshop and Camera Raw. They can be used separately, or in conjunction with other LMTs (including LMT PFE)


https://github.com/baldavenger/DCTLs/tree/master/ACES%20TOOLS

The tools work with either CUDA or METAL in Resolve 15 and upwards.
EOS 5D Mark III | EOS 600D | Canon 24-105mm f4L | Canon 70-200mm f2.8L IS II | Canon 50mm f1.4 | Samyang 14mm T3.1 | Opteka 8mm f3.5

baldavenger

  • Member
  • ***
  • Posts: 177
Re: DaVinci Resolve and ML Raw
« Reply #126 on: April 20, 2019, 12:32:25 AM »
EOS 5D Mark III | EOS 600D | Canon 24-105mm f4L | Canon 70-200mm f2.8L IS II | Canon 50mm f1.4 | Samyang 14mm T3.1 | Opteka 8mm f3.5

allemyr

  • Member
  • ***
  • Posts: 212
  • http://www.allemyr.com/
Re: DaVinci Resolve 12 and ML Raw
« Reply #127 on: April 24, 2019, 06:35:34 PM »
I looked into the effects of extending the White Level value in the DNGs metadata. With 5D MkIII footage it is 15000, which is mapped to the value 1.0 in Resolve. The reasons for White Level being lower than the full 14bit limit (16383) are well documented - Peak Saturation, non-linearity past that point, magenta cast - but when Highlight Recovery is enabled these extra values come into play anyway.

I ran some tests with DNGs whose White Level I altered using Exiftool. There were three varieties: Normal 15000, Full 16583, and Bright 10000

In Adobe Camera Raw they appeared as expected, with Full 16383 slightly darker than Normal 15000 (due to the values being mapped lower to accommodate the additional 1383 values) and Bright 10000 much brighter in keeping with the fact that the lower value is mapped to peak white thereby raising all values accordingly.

Using the Exposure and Highlight controls it was very easy to bring back the highlight values that got clipped or heavily compressed, so in this case the White Level is really just a convenient guideline for Adobe Camera Raw to map Peak White, and no actual raw data is compromised by altering the metadata.

In Resolve it is a somewhat different matter. When the three DNGs are initially brought in the appearance is more or less the same as in ACR, but then using controls like Exposure and Gain to bring back highlight detail it is revealed that this information has been clipped, with Bright 10000 clearly showing the missing information. Only by enabling Highlight Recovery is that signal information brought back into play, but only though whichever algorithms Resolve uses to rebuild signals.

Now, even with Highlight Recovery on Full 16383 Resolve tries to build more highlight detail, even though there is no reserve signal to call upon. I prefer to use the signal splitting techniques mentioned earlier in the thread to do highlight rebuilding, but that can be combined with Highlight Recovery to increase dynamic range if done judiciously. The less of a signal Highlight Recovery has to anchor to initially, the more control you'll have overall, which is why I now recommend (for those using Resolve and willing to put in the extra work in order to achieve superior results) that you change the White Level of your DNGs to their max, which is 16383 for regular and 65535 for Dual-ISO. This process will involve the Exposure control to scale the signal such that the exposure value of a white diffusing reflector is 1.0

This is a deliberate attempt to take the DNG process away from its originally intended display referred/stills approach, and adapt it towards a more scene referred/film approach like that of Cineon and LogC.

With the sterling aid of the two Daniels (@Danne and @dfort) I've been able to convert with relative ease the White Level of both DNGs and MLVs.

Code: [Select]
$ exiftool -IFD0:WhiteLevel=16383 * -overwrite_original -r.
Is a quick and dirty way to convert every DNG in the folder (and subfolders)

Code: [Select]
echo "0000068: FF 3F" | xxd -r - Input.MLV
Converts the White Level in the header of a MLV. Very handy if you're using MLVFS in combination with Resolve.
@dfort figured out the code and the HEX values needed.

15000 = 98 3A
16383 = FF 3F
10000 = 10 27
60000 = 60 EA
65535 = FF FF
30000 = 30 75

I finally have read thru the thread once and twice, haven't understand everything yet. Thank you very much for this tip! It looks better in Resolve with the 16000 ish white level. What do you think about the 2048 black level on the 5D3? I use pre tone curve still, the image looks overall better now, thx!

baldavenger

  • Member
  • ***
  • Posts: 177
Re: DaVinci Resolve and ML Raw
« Reply #128 on: April 26, 2019, 04:13:52 PM »
Quote
What do you think about the 2048 black level on the 5D3?

I wouldn't mess with the black level value. It will screw up the white balance, and more than likely you'll just be introducing more noise into the shadows. However, you can experiment with the raw white and black levels in MLV App to see for yourself the effect.
EOS 5D Mark III | EOS 600D | Canon 24-105mm f4L | Canon 70-200mm f2.8L IS II | Canon 50mm f1.4 | Samyang 14mm T3.1 | Opteka 8mm f3.5

baldavenger

  • Member
  • ***
  • Posts: 177
Re: DaVinci Resolve and ML Raw
« Reply #129 on: May 01, 2019, 10:03:34 PM »
EOS 5D Mark III | EOS 600D | Canon 24-105mm f4L | Canon 70-200mm f2.8L IS II | Canon 50mm f1.4 | Samyang 14mm T3.1 | Opteka 8mm f3.5

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6008
Re: DaVinci Resolve and ML Raw
« Reply #130 on: May 02, 2019, 06:45:01 AM »
This is highly interesting. You have done some serious work on this. Thanks for sharing.

Kharak

  • Hero Member
  • *****
  • Posts: 914
Re: DaVinci Resolve and ML Raw
« Reply #131 on: July 15, 2019, 11:26:46 AM »
Very nice tools baldavenger.

I've been using your Frequency separator to deal with moire, very easy to remove the color cast of moire with YUV or LAB, but do you know a way to deal with the spatial frequency of moire? Maybe someway to trick Resolve in to Baselights texture management?

I feel like there could be something better than masking and blurring it away, as it just looks blurred. Any ideas?
once you go raw you never go back

baldavenger

  • Member
  • ***
  • Posts: 177
Re: DaVinci Resolve and ML Raw
« Reply #132 on: July 20, 2019, 03:58:37 PM »
Very nice tools baldavenger.

I've been using your Frequency separator to deal with moire, very easy to remove the color cast of moire with YUV or LAB, but do you know a way to deal with the spatial frequency of moire? Maybe someway to trick Resolve in to Baselights texture management?

I feel like there could be something better than masking and blurring it away, as it just looks blurred. Any ideas?

It's a tricky one, because the spatial frequency you speak of i.e. high frequency pattern, is often burnt into the image by the time you get to grade it. You can be quite aggressive with the colour component of an image without fundamentally altering the perceptual structure, but even the slightest adjustment to the luma component stands out a mile.

The Frequency Separation OFX Plugin only has the option of sharpening high frequency data. It's literally applying gain to the isolated image data, and because the values lay either side of 0 this is, in effect, a pure linear contrast. If the parameter (which returns a value between 0 and 3) would also have the option of returning a negative value, then this would allow for reducing sharpening (contrast) of the high frequency data, therefore blending it back into the low frequency domain. However, it may not produce the effect you're looking for and, to be honest, it's never going to be a simple task. If it's hardcoded part of the luma signal then it's a VFX removal job (and all that entails).
EOS 5D Mark III | EOS 600D | Canon 24-105mm f4L | Canon 70-200mm f2.8L IS II | Canon 50mm f1.4 | Samyang 14mm T3.1 | Opteka 8mm f3.5

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6008
Re: DaVinci Resolve and ML Raw
« Reply #133 on: September 30, 2019, 02:57:14 PM »
I have an issue where cdng sequences will not embed teh folder/dng files into one movie file like was the case before. I´m on resolve 15.3.1. I search the web and there´s mention of ditching cdng format in favour of bmraw, resolve own raw format but will this include davinci resolve not even reading cdng files as before too?
Tested cdng sequences produced in mlv app and in Switch. Only opens single files. Or I can open all files in the folder and it´s treated as a sequence but the smooth folder embed workflow seems gone?

Kharak

  • Hero Member
  • *****
  • Posts: 914
Re: DaVinci Resolve and ML Raw
« Reply #134 on: September 30, 2019, 05:14:20 PM »
i think of two posibilities.

Its either the naming of your folders/files, because with your windows batch converter, which has resolve naming, it works. Or you checked the import setting that makes images being imported individually and not sequenced, i dont remember where that setting is. I believe its in the media window somewhere, you click the (...)

Ps, you should stay on 15.3.1 it is way faster and stabile compared to ver 16 with cdng. Also the layer mixer when applied to a timeline node does not work properly in the versions after 15.3.1 and reverting back to 15.3.1 does not fix it, once you brake it you lose it.
once you go raw you never go back

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6008
Re: DaVinci Resolve and ML Raw
« Reply #135 on: September 30, 2019, 05:28:03 PM »
i think of two posibilities.

Its either the naming of your folders/files, because with your windows batch converter, which has resolve naming, it works. Or you checked the import setting that makes images being imported individually and not sequenced, i dont remember where that setting is. I believe its in the media window somewhere, you click the (...)

Ps, you should stay on 15.3.1 it is way faster and stabile compared to ver 16 with cdng. Also the layer mixer when applied to a timeline node does not work properly in the versions after 15.3.1 and reverting back to 15.3.1 does not fix it, once you brake it you lose it.
Shoot. I just upgraded...
I can't seem to find that particular import setting. I try to import by choosing 'import file'. Other ways to import?
Dang. Noob...

EDIT:





EDIT2: OOOps! HAd to go through media storage. Simply importing file not working the same. SOLVED!

Dmytro_ua

  • Member
  • ***
  • Posts: 152
  • Canon 5d mark III ML
Re: DaVinci Resolve and ML Raw
« Reply #136 on: September 30, 2019, 07:00:08 PM »
you should stay on 15.3.1 it is way faster and stabile compared to ver 16 with cdng.

I don't see the speed difference. The only one is 15's version uses GPU by default (a dedicated Graphic Card) and 16's ver it may choose an internal Intel GPU.
You should change it in preferences.
5d3 1.1.3 exp | Canon 16-35 4.0L | Canon 50 1.4 | Canon 100mm 2.8 macro
Ronin-S

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3348
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: DaVinci Resolve and ML Raw
« Reply #137 on: October 15, 2019, 06:31:27 PM »
Has this been tested on V.16 (while running on Catalina) or am I better off leaving it in V.15 for DR re: on OS X?
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109