Stripped Down ChromaKey Component? (SOLVED!)

I’m looking for a light weight way to implement chroma/color keying. The included component is wayyy overkill for my needs (I just need source 1 + 2) and grinds my project to single digit framerates.

I followed a youtube tutorial that used a clamp to grab a x,y coordinate of an image to find the color key, as well as generate a matte with blur to soften the key edge. The tut’ was using a still image and I’m using video. My solution was to import a ‘color picker’ gradient with brightest values at the top and darkest at the bottom to be able to pick a color in similar manner and not have it jumping all over the place. This solution gets me close, but the control parameters within the key don’t seem to be as flexible or forgiving as I need. Even running two or three of these keying systems isn’t burning through the CPU like the ChromaKey component, but I’m struggling over how to implement better cleanup and control.

I thought of stripping down the included ChromaKey, but my head spins just looking at it, and I’m much more likely to break it than fix my performance issues.

I had another near-solution, which was running two Syphon outputs to OBS, and doing the keying there, but the layers weren’t consistently updating/syncing. I’m trying to process someone’s 4k footage in realtime, doing effects in TD, and trying to retain picture quality by recording source size and bitrate in OBS.

Sorry for the ramble, but perhaps I’m missing something entirely. I basically need to do feedback effects in place of skin-tones. Easy-peasy, right?

1 Like

you should not have such an issue keying. What sort of input source are you working with?

It sounds like something else is making it grind. I am trying to imagine what your network looks like from your description but a tox would be way more helpful.

Here’s what I think you are trying to do, “feedback effects in place of skin-tones”

simpleKeyer.toe (11.0 KB)

1 Like

Kind stranger, you are a GODSEND!

I can’t imagine there is a simpler or more elegant solution than what you presented. I took a few things that were working on my clumsy build and modified your file to update it with matte cleanup, a few sliders, and a color spectrum image to hunt for the color key in a consistent way across potential use cases.

I’m including my version & the specific color spectrum reference I’m using here, for your interest or anyone else who stumbles down the same rabbit hole. Thanks again u/harveymoon. You literally saved my project.
SimpleKeyer_w_Spectrum_Picker.tox (5.3 KB)

4 Likes