Video Bg Replace

Replace the background of a talking-head clip by matting the speaker (Robust Video Matting on Replicate) and compositing them over a NEW background — a generated/animated B-roll clip, a provided video, or a still image. The speaker layer gets a temporally-stable alpha matte, then ffmpeg lays it over the new background (alpha-mask + original RGB, or green-screen + chromakey), with optional edge feather, grounding drop-shadow and a unifying color grade, while preserving the speaker's original audio. Use when the user wants to swap/replace a video background, put an avatar over a different scene, place an animated video behind a person, key out / matte a talking head, or composite a presenter onto generated B-roll.

puntorigen f24c7a6 5 files · 33.0 KB Updated

File contents

puntorigen/avatar-skills/tree/main/video-bg-replace commit f24c7a63f4

Frequently asked questions

npx skillmds@latest add puntorigen/video-bg-replace