BiRefNet · video matte
Alpha video of the subject of a clip without a green screen: a VP9 WebM with alpha and a matte video.
Discover · Wavemaker catalog
When to use it
- Put a presenter or product clip over new backgrounds.
- Make a matte to grade or blur the background.
What you provide
- One owned clip bound to source.video; window long clips with source.frame_load_cap and skip_first_frames.
What you get
- save_cutout: VP9 WebM with alpha (no audio).
- save_matte: H.264 greyscale matte.
Creative guidance
- Green-screen-free alpha for a clip: BiRefNet-general per frame. Outputs save_cutout (VP9 WebM with an alpha plane, source frame rate, no audio: mux the source audio afterwards) and save_matte (H.264 greyscale matte). Bind inputs.media {"source.video": sha256}. Frames are matted independently: expect slight edge shimmer, and every salient subject in a frame is kept (captions and inset footage too). Keep a job to about 10 s of 1080p (set source.frame_load_cap / skip_first_frames to window longer clips); the video variant's bound is 240 s. BiRefNet_lite-2K (matte.model) was slower on T4 and kept more background. Runs on the birefnet T4 variants (one T4, ~1 GB VRAM). Staging 2026-10-19: a still billed 37-43 T4 GPU-seconds on a cold worker (cold start ~30-40 s dominates; warm inference 1-3 s), a 5 s 1080p clip 127 GPU-seconds. Production T4 rate 0.0711 credits/s (compute book 2026-10-19); production 2026-10-22 billed 6.6 T4 s for a 768 px still (0.5 credits) and 15.6 s for a 1 s 384 px clip (1.1 credits). Guide: examples/image-matting/README.md. To put the subject in a new place, card technique/video-background-swap.md.
Setup and requirements
- Runtime: comfy. Load the listed model weights and node dependencies.
Things to know
- Frames are matted independently, so edges shimmer slightly.
- Keeps every salient subject; it takes no prompt, so pick one subject with a regional mask.
- Keep a job to about 10 s of 1080p (about 100-130 T4 GPU-seconds per 5 s).
Example brief
Matte the presenter in this 8 second clip so I can place her over the product scene.
Source licenses and model terms continue to apply. Check runtime availability before generation.
Download source · Learn how to reuse resources