
Download official IDT (.ctl) from Canon website.
Open CLog3 file and grab color matrix values from there. Both for CLog3 and for ACES.
Make your own DCTL and import into DaVinci.
Make ACES Input Device Transform as No Input Transform.
Select you new DCTL in Input DaVinci CTL setting.
.dctl for that looks like this:
- Code: Select all
// IDT CLog3 to ACES.
__DEVICE__ float CanonLog3_to_Linear( float clog3 ){
float out;
if(clog3 < 0.097465473)
{out = -( pow( 10, ( 0.12783901 - clog3 ) / 0.36726845 ) - 1 ) / 14.98325;}
else if(clog3 <= 0.15277891)
{out = ( clog3 - 0.12512219 ) / 1.9754798;}
else
{out = ( pow( 10, ( clog3 - 0.12240537 ) / 0.36726845 ) - 1 ) / 14.98325;}
return out;
}
__DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p_R, float p_G, float p_B)
{
float r_Lin = 0.9 * CanonLog3_to_Linear( p_R );
float g_Lin = 0.9 * CanonLog3_to_Linear( p_G );
float b_Lin = 0.9 * CanonLog3_to_Linear( p_B );
float r_Out = (r_Lin * 0.817416293) + (g_Lin * 0.090755698) + (b_Lin * 0.091828009);
float g_Out = (r_Lin * -0.035361374) + (g_Lin * 1.065690585) - (b_Lin * 0.030329211);
float b_Out = (r_Lin * 0.010390366) - (g_Lin * 0.299271107) + (b_Lin * 1.288880741);
return make_float3(r_Out, g_Out, b_Out);
}
The color in the footage looks exactly how it should. It's still not a perfect solution, because using when using other cameras on the timeline, their colorspace is completely off. Before I was able just to select a different ACES IDT for them, but now looks like the only solution is to apply DCTL only for C300 footage manually.
If someone wants more info about this - let me know, I'm happy to help with what I figured out so far.