ComfyTV/Composegenerated

Video Composite(VideoCompositeStage)

Video Composite (VideoCompositeStage) is a compositing node in the ComfyTV package, filed under the ComfyTV/Compose category.

Video Composite Stage

background
foreground
mask
track
video
ComfyTV

Description

Video Composite (VideoCompositeStage) is a compositing node in the ComfyTV package, filed under the ComfyTV/Compose category. It combines two video streams, a background and a foreground, into a single video output, using an optional mask to control where the foreground is visible over the background. An optional track text input can be supplied alongside the footage.

Every input on this node is optional, which means it can also serve as a lightweight pass-through or partial compositor: connect only background to forward a stream unchanged, connect background and foreground to layer them, and add mask for per-pixel control over the blend. The node always produces exactly one COMFYTV_VIDEO output.

Inputs

InputTypeRequiredPurpose
backgroundCOMFYTV_VIDEONoBase video layer
foregroundCOMFYTV_VIDEONoVideo layer placed over the background
maskCOMFYTV_VIDEONoPer-pixel control over where the foreground shows through
trackCOMFYTV_TEXTNoOptional text track supplied with the composite

background

The base video layer. This is the footage that fills the frame wherever the foreground is not visible. When this is the only input connected, the output is effectively the background passed through the composite stage.

foreground

The video layer that is placed over the background. Without a mask, the foreground typically covers the background across the full frame; supplying a mask restricts it to the areas you want to keep. If the foreground is left unconnected, the composite falls back to the background alone.

mask

A video-typed mask input that determines which regions of the foreground are composited over the background. Because the mask is itself a COMFYTV_VIDEO, it can vary over time, so the blend can change from frame to frame rather than being fixed for the whole clip. Keep the mask aligned with the foreground in timing and resolution for predictable results.

track

An optional COMFYTV_TEXT input. Unlike the other three inputs, this is not a video stream: it carries text data associated with the composite, such as labels, captions, or tracking information, for consumption by downstream nodes. Its precise effect depends on what is connected after this node and on the content of the track itself.

Outputs

COMFYTV_VIDEO: the composited result, combining the background, foreground, and mask. If nothing is connected, the node still returns a single video-typed output, so downstream nodes can be wired up before the input streams are finalized.

Usage Notes

  • All inputs are optional, so you can build the composite incrementally. Start with the background, then add the foreground, then refine with the mask.
  • The mask is a video, not a static image. Animate it if you want the compositing boundary to move over time.
  • Because the input names follow the conventional background, foreground, mask pattern, swapping the two video inputs is a quick way to invert the layering without rebuilding the graph.
  • The track input is text-typed. If you need a second visual layer, use the foreground input instead; track is intended for textual data that travels with the composite.

Comments

Sign in with GitHub to join the discussion.

Loading comments…