Despill(DespillStage)
Despill (class DespillStage) is a keying utility from the ComfyTV package.
Despill Stage
Description
Despill (class DespillStage) is a keying utility from the ComfyTV package. It removes colour spill from footage shot in front of a green or blue screen: the coloured light that bounces off the backdrop and tints the subject's edges, hair, and clothing. Suppressing that contamination before or after a key is pulled gives cleaner edges and prevents green or blue fringing from surviving into the composite.
The node operates on a video stream and returns a video stream, so it can be dropped directly into a video keying chain. It exposes no manual hue or strength controls; the spill handling is applied by the stage itself and the only decisions the user makes are which clip to process and whether to inspect the spill map.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
video | COMFYTV_VIDEO | No | none | The video clip to despill. |
output_spillmap | BOOLEAN | Yes | false | Emit the spill map instead of the despilled video. |
video
The COMFYTV_VIDEO clip whose colour spill should be removed. The input is optional, which allows the stage to sit in a graph where the video is supplied by the surrounding pipeline rather than wired in explicitly. If no video reaches the node, there is nothing to process and no meaningful result is produced.
output_spillmap
When left at its default of false, the node returns the despilled video. When enabled, the node instead returns the spill map: a visualisation of the colour contamination detected in the source. This is a diagnostic aid rather than a deliverable, and it is the quickest way to confirm that the spill being removed is the spill you actually wanted to remove, and that the subject itself is not being treated as spill.
The spill map should generally be inspected at true while tuning a shot, then switched back to false for the final render, since the node has a single output and enabling the option replaces the despilled result.
Outputs
| Name | Type | Description |
|---|---|---|
COMFYTV_VIDEO | COMFYTV_VIDEO | The despilled clip, or the spill map when output_spillmap is enabled. |
The single output is always a COMFYTV_VIDEO, so it can be passed to any downstream ComfyTV node that accepts a video, including a keyer, a merge, or a preview node.
Usage Notes
- Place the node before or after the keyer depending on the look you want. Running it before the key reduces the amount of spill the keyer has to deal with; running it after the key cleans up fringing on the already isolated subject.
- Because the node is grouped under
ComfyTV/Keying, it is intended to be used as one stage in a larger keying graph rather than as a standalone effect. - Toggle
output_spillmapon whenever a shot still shows coloured edges after despill. If the map is bright over the subject rather than over the screen-lit edges, the stage is working on the wrong colours and the result is likely to look desaturated or flat. - The output is still a
COMFYTV_VIDEO, including in spill map mode, so the same preview and save nodes can be used to inspect either mode. - The
videoinput is optional. In a chained setup, leave it unconnected only if the graph supplies the clip through other means; otherwise connect it explicitly to avoid a silently empty result.
Comments
Sign in with GitHub to join the discussion.