HTML & HDR in 2.5.0

@Julusian
Could you do a simple explainer how CasparCG is converting HTML-graphics to HDR if you are running HDR and is there anything you should take in consideration when generating HTML-graphics that will but played out as HDR. I suppose the same points will go for playing out SDR-images and -videos also.

sorry markus

@niklas anything you can share here?

Yes, for sure. I apologise for the extremely long response time on this.

The short answer is that we’re not doing any gamut or color space conversions in the mixer at all currently (more than converting each source to a linear representation in their respective color space, and we’re actually not doing that 100% correct in some cases either). Which means that mixing contents authored in different color spaces on the same channel will produce “wrong” results. And the errors will of course be more prominent if you mix wide-color gamuts with “standard width gamuts” (bt709 and the likes).

…and I’m fairly sure that CEF in the html producers produces sRGB colors (same white point and primaries as bt709, but different transfer function). I don’t think we’re handling that 100% correct.

All these color space and gamut related issues are getting a complete overhaul in the Vulkan accelerator. …and they will most likely be fairly easy to backport to OpenGL if we want.

2 Likes