How to Change a Video Background and Keep the Subject
Replace a video background with CapCut or a tracked mask. Learn to preserve faces, objects, and motion, then check edges and timing before you export.

To change a video background while keeping the original subject and performance, put the source clip above a replacement background in your editor. Isolate the foreground with an automatic cutout, a chroma key, or a tracked mask. For a room that needs to be invented or relit, try an editor that accepts the original video as editable footage, then check whether it altered the foreground.
Choose the method your footage can support
| Your footage or goal | Start with | Where to inspect before committing |
|---|---|---|
| One person against an ordinary wall | Automatic subject removal | Hair ends, gaps between arms and torso, and anything the person holds |
| Evenly lit green or blue screen | Chroma key | Color spill on skin or fabric and edges that become transparent |
| A product, face, or gesture that must stay exact | Tracked mask with frame-by-frame corrections where needed | Product markings, finger contact, and frames where objects overlap |
| A new environment that changes the lighting and atmosphere | Source-video generative edit | Matched frames for timing, face and object shape, and camera motion |
Start with a short section that includes the hardest moment. For a clip of someone lifting a cup, include the reach, the fingers closing around the handle, and the lift. A clean opening frame tells you little about those transitions.
Replace the background in CapCut
- Put the source clip on the timeline and place the replacement image, color, or clip on a track beneath it. Extend the replacement to cover the full shot.
- Select the source layer. In CapCut Web, open Smart tools, then Remove background. Choose Auto removal for ordinary footage or Chroma key and sample the screen color for green or blue screen footage. CapCut’s video background controls
- Preview the cutout over a dark fill and then over a light fill. A bright fringe on hair can disappear over a light background and become obvious in the final dark room. If an automatic cutout drops parts of the cup or hand as they cross, switch to a tracked mask.
- Put the intended background back in. Match the camera height, perspective and focus to the shot. If the person stands on a floor in the new image, check that the floor plane meets their feet and that any contact shadow moves with them.

Matte illustration: compare the pale fringe with the cleaner hair edge against a dark fill. Preserve loose strands as you refine the mask.
Track the foreground when the original action matters
In After Effects, open the source layer and start a Roto Brush selection on a frame where the actor and cup are easy to separate from the room. Include the cup when it is part of the performance. Propagate the selection through the shot and correct the first frame where a finger, hair strand or sleeve edge drops out. Preview the corrected range, refine the edge as needed, and use Freeze to cache the checked segmentation. Adobe’s Roto Brush and Refine Matte guide
Use a separate mask for a stubborn object or a finger overlap. For example, if the matte fills the open space inside a cup handle when the hand lifts, adjust that region without shrinking the entire foreground. With transparent props, inspect what the new room should show through the object and what needs to remain, such as the rim and fingers.
DaVinci Resolve 20 Studio offers Magic Mask as another starting point. Select the subject on a clear frame, track the result, and correct the troublesome frames before building the composite. Blackmagic Design’s Resolve 20 visual effects guide
Try a source-video edit for a new environment
For an editable source-video workflow such as Runway Edit Studio, upload the original clip and edit a keyframe to show the room you want. Keep the change narrow enough to judge when you compare the clips. Runway’s Edit Studio workflow
Change the wall and shelves behind the person to a matte slate-blue studio wall lit softly from camera left. Keep the person, olive jacket, white cup, exact lift timing, framing, and camera movement.
Compare the candidate with the source at the same playback times. If the new room looks right but the hand starts lifting earlier or the cup changes shape, use the source clip as the foreground of a composite. For more on what a keyframe and an editable source do, see the Runway Aleph 2.0 guide. To plan several versions of the same shot, see the Gemini Omni guide.
Check three moments before export
| Moment in a cup-lift shot | What should match the source | What to correct |
|---|---|---|
| Just before the reach | Waist-up crop, face direction and cup position | Reset framing and any unintended camera movement |
| Fingers cross the handle | Finger order, handle opening and original grip | Repair the mask over the affected frames or return to the source foreground |
| Cup stops moving | Sleeve edge, shape of the cup and length of the hold | Repair the matte around the sleeve and cup. If the hold timing changed, composite the source foreground over the new room |
Scrub through those events, then play the entire export with audio. Picture and sound should still agree at contact points, such as a cup touching the counter. Save a few comparison stills with the frame extraction guide, and use the video quality control checklist on the delivered file.
For an editor who needs only the isolated subject, export through a format and codec that carry an alpha channel. Re-import it over a contrasting color to confirm transparency. For a finished shot with the new background already in place, deliver the requested flattened video.