{"course":{"slug":"video-editing","title":"Editing Video","url":"https://addaly.com/learn/video-editing","level":"beginner","track":"create"},"lesson":{"slug":"object-removal","title":"Taking something out of a moving shot","url":"https://addaly.com/learn/video-editing/object-removal","position":63,"of":77,"minutes":8,"answer":"Removal means covering something with pixels that plausibly belong: try reframing first, patch from the same frame on a locked-off shot and from another frame on a moving one, and always match grain.","keyIdea":"Removal means covering something with pixels that plausibly belong: try reframing first, patch from the same frame on a locked-off shot and from another frame on a moving one, and always match grain, because a patch that is too clean is what gives a removal away."},"body":{"format":"markdown","text":"## The job\n\nA microphone in frame. A light stand in the corner. A logo you do not have the rights to. A tracking marker you put there deliberately. A modern car in a period piece. A person who withdrew their consent after filming.\n\nThe mechanism in every case is the same: cover the unwanted thing with pixels that plausibly belong, in a way that holds up while the shot moves.\n\n## The order of solutions, cheapest first\n\n**1. Reframe.** If the object is near an edge and your source is larger than your delivery, scale and reposition. This takes ten seconds and solves a large fraction of real cases. Always try it first.\n\n**2. Cut around it.** Use less of the shot, or a different take. Also ten seconds.\n\n**3. Cover it with something.** A graphic, a lower third, a split screen. Sometimes legitimate, often a fudge.\n\n**4. Patch from another part of the same frame.** If the background behind the object is uniform (a wall, a sky, a road) copy a clean region over it with a soft-edged mask. Works immediately on a locked-off shot.\n\n**5. Patch from another frame.** If the camera moves, the area behind the object is visible at some other point in the shot. Take that frame, track it into position, and composite it.\n\n**6. Clean plate.** Film the scene without the object and composite it in. Requires planning at the shoot and is the reliable professional answer.\n\n**7. Paint it out frame by frame.** The last resort, and it costs what rotoscoping costs.\n\n## The locked-off case\n\nWhen the camera does not move, removal is nearly trivial: copy a clean region of the same frame over the object, soft-mask it, and it holds for the whole shot because nothing moves.\n\nThis is why locking the camera off is the single most useful thing you can do for a shot you know needs work.\n\n## The moving case\n\nWhen the camera moves, a static patch slides off. The patch has to move with the shot, which means:\n\n1. **Track** the surface the object sits on: planar track if it is flat, point track if it is simple.\n2. **Attach** the patch to that track.\n3. **Mask** the patch to only where it is needed, with a soft edge.\n4. **Match** the grain, brightness and blur of the patch to the surrounding frame. A clean patch on grainy footage is visible precisely because it is too clean.\n\nStep 4 is where these fail. Add grain to the patch.\n\n## Temporal median\n\nA technique worth knowing for a specific case: something moves through an otherwise static shot and you want it gone.\n\nIf the camera is locked off and the unwanted thing moves, then for every pixel, the *median* value across many frames is the background, because the object only covers each pixel for a fraction of the time. Computing the per-pixel median over the shot gives you a clean plate with the moving object removed.\n\nThis is how \"remove the tourists from my photo\" features work. FFmpeg can do a rough version with `tmix`; Fusion and most compositors have a temporal median.\n\nIt requires a locked-off camera and an object that keeps moving. A person standing still is background as far as the median is concerned.\n\n## Machine inpainting\n\nGenerative models will now fill a masked region with plausible content, including across a moving shot with reasonable temporal consistency. Several free and paid implementations exist and the capability is improving quickly.\n\nThree honest points.\n\n**It is generating content**, not recovering it. The pixels behind the object were never recorded. What comes back is a plausible invention, and on anything structured (text, a face, a pattern, architecture) the invention is often visibly wrong in a way that is hard to unsee once noticed.\n\n**In factual work this matters.** Removing a light stand from a documentary shot is uncontroversial. Removing a person, an object or a piece of text from a record of a real event alters the record, and the fact that the tool made it easy does not change that. Several jurisdictions are moving toward labelling requirements for synthetically altered media, and they differ and are changing.\n\n**Temporal consistency is the weak point.** Frame-by-frame generation produces flicker, and the tools that address it do so by constraining the generation, which reduces quality. Check the result at speed, not frame by frame.\n\n## What is actually hard\n\n- Removing something that crosses **in front of a moving subject**, because the patch has to respect the subject's edge, which is rotoscoping.\n- Removing something **reflected** in a surface, which usually requires removing it twice.\n- Removing something that **casts a shadow**, because the shadow stays.\n- Anything against a **detailed, structured background**: brickwork, text, a crowd.\n\n## Today\n\nTake a locked-off shot with something unwanted in it, copy a clean region over it with a feathered mask, and add a little grain to the patch. Five minutes, and it is most of the technique."},"check":{"question":"An editor patches out a light stand on a handheld shot, tracking the patch to the wall behind it. The track is accurate and the patch is still visible. What is the most likely reason?","options":[{"text":"The patch is too clean: it lacks the grain and noise of the surrounding footage, so it reads as a smooth area in a textured frame.","correct":true},{"text":"The mask edge is too hard, and increasing the feather until the boundary is imperceptible will integrate the patch with the frame around it.","correct":false,"tempting":"A hard edge is a common fault worth fixing, but a well-feathered patch that is still noise-free remains visible as a smooth region."},{"text":"A planar track cannot hold on a handheld shot because the perspective of the wall changes continuously as the camera moves through space.","correct":false,"tempting":"Planar tracking handles changing perspective well, and the question states the track is accurate, so the problem lies after the track."},{"text":"The patch was taken from a frame with different lighting, so its brightness does not match the frame it is composited into at that moment in the shot.","correct":false,"tempting":"A real matching failure and one of the things to check, though it presents as a visible brightness step rather than as a patch that is subtly too clean."}]},"prev":{"slug":"tracking-and-match-move","title":"Tracking a point, a plane and a camera","url":"https://addaly.com/learn/video-editing/tracking-and-match-move"},"next":{"slug":"noise-and-sharpening","title":"Noise reduction, sharpening, and what neither can do","url":"https://addaly.com/learn/video-editing/noise-and-sharpening"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Taking something out of a moving shot', in Editing Video. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/video-editing/object-removal (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Taking something out of a moving shot","courseTitle":"Editing Video","module":{"index":7,"slug":"effects-and-compositing","title":"Effects, compositing and repair"},"answer":null,"keyIdea":"Removal means covering something with pixels that plausibly belong: try reframing first, patch from the same frame on a locked-off shot and from another frame on a moving one, and always match grain, because a patch that is too clean is what gives a removal away.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"the-job","runs":[{"text":"The job"}]},{"t":"p","runs":[{"text":"A microphone in frame. A light stand in the corner. A logo you do not have the rights to. A tracking marker you put there deliberately. A modern car in a period piece. A person who withdrew their consent after filming."}]},{"t":"p","runs":[{"text":"The mechanism in every case is the same: cover the unwanted thing with pixels that plausibly belong, in a way that holds up while the shot moves."}]},{"t":"h2","id":"the-order-of-solutions-cheapest-first","runs":[{"text":"The order of solutions, cheapest first"}]},{"t":"p","runs":[{"text":"1. Reframe.","b":true},{"text":" If the object is near an edge and your source is larger than your delivery, scale and reposition. This takes ten seconds and solves a large fraction of real cases. Always try it first."}]},{"t":"p","runs":[{"text":"2. Cut around it.","b":true},{"text":" Use less of the shot, or a different take. Also ten seconds."}]},{"t":"p","runs":[{"text":"3. Cover it with something.","b":true},{"text":" A graphic, a lower third, a split screen. Sometimes legitimate, often a fudge."}]},{"t":"p","runs":[{"text":"4. Patch from another part of the same frame.","b":true},{"text":" If the background behind the object is uniform (a wall, a sky, a road) copy a clean region over it with a soft-edged mask. Works immediately on a locked-off shot."}]},{"t":"p","runs":[{"text":"5. Patch from another frame.","b":true},{"text":" If the camera moves, the area behind the object is visible at some other point in the shot. Take that frame, track it into position, and composite it."}]},{"t":"p","runs":[{"text":"6. Clean plate.","b":true},{"text":" Film the scene without the object and composite it in. Requires planning at the shoot and is the reliable professional answer."}]},{"t":"p","runs":[{"text":"7. Paint it out frame by frame.","b":true},{"text":" The last resort, and it costs what rotoscoping costs."}]},{"t":"h2","id":"the-locked-off-case","runs":[{"text":"The locked-off case"}]},{"t":"p","runs":[{"text":"When the camera does not move, removal is nearly trivial: copy a clean region of the same frame over the object, soft-mask it, and it holds for the whole shot because nothing moves."}]},{"t":"p","runs":[{"text":"This is why locking the camera off is the single most useful thing you can do for a shot you know needs work."}]},{"t":"h2","id":"the-moving-case","runs":[{"text":"The moving case"}]},{"t":"p","runs":[{"text":"When the camera moves, a static patch slides off. The patch has to move with the shot, which means:"}]},{"t":"ol","start":1,"items":[[{"text":"Track","b":true},{"text":" the surface the object sits on: planar track if it is flat, point track if it is simple."}],[{"text":"Attach","b":true},{"text":" the patch to that track."}],[{"text":"Mask","b":true},{"text":" the patch to only where it is needed, with a soft edge."}],[{"text":"Match","b":true},{"text":" the grain, brightness and blur of the patch to the surrounding frame. A clean patch on grainy footage is visible precisely because it is too clean."}]]},{"t":"p","runs":[{"text":"Step 4 is where these fail. Add grain to the patch."}]},{"t":"h2","id":"temporal-median","runs":[{"text":"Temporal median"}]},{"t":"p","runs":[{"text":"A technique worth knowing for a specific case: something moves through an otherwise static shot and you want it gone."}]},{"t":"p","runs":[{"text":"If the camera is locked off and the unwanted thing moves, then for every pixel, the "},{"text":"median","i":true},{"text":" value across many frames is the background, because the object only covers each pixel for a fraction of the time. Computing the per-pixel median over the shot gives you a clean plate with the moving object removed."}]},{"t":"p","runs":[{"text":"This is how “remove the tourists from my photo” features work. FFmpeg can do a rough version with "},{"text":"tmix","code":true},{"text":"; Fusion and most compositors have a temporal median."}]},{"t":"p","runs":[{"text":"It requires a locked-off camera and an object that keeps moving. A person standing still is background as far as the median is concerned."}]},{"t":"h2","id":"machine-inpainting","runs":[{"text":"Machine inpainting"}]},{"t":"p","runs":[{"text":"Generative models will now fill a masked region with plausible content, including across a moving shot with reasonable temporal consistency. Several free and paid implementations exist and the capability is improving quickly."}]},{"t":"p","runs":[{"text":"Three honest points."}]},{"t":"p","runs":[{"text":"It is generating content","b":true},{"text":", not recovering it. The pixels behind the object were never recorded. What comes back is a plausible invention, and on anything structured (text, a face, a pattern, architecture) the invention is often visibly wrong in a way that is hard to unsee once noticed."}]},{"t":"p","runs":[{"text":"In factual work this matters.","b":true},{"text":" Removing a light stand from a documentary shot is uncontroversial. Removing a person, an object or a piece of text from a record of a real event alters the record, and the fact that the tool made it easy does not change that. Several jurisdictions are moving toward labelling requirements for synthetically altered media, and they differ and are changing."}]},{"t":"p","runs":[{"text":"Temporal consistency is the weak point.","b":true},{"text":" Frame-by-frame generation produces flicker, and the tools that address it do so by constraining the generation, which reduces quality. Check the result at speed, not frame by frame."}]},{"t":"h2","id":"what-is-actually-hard","runs":[{"text":"What is actually hard"}]},{"t":"ul","items":[[{"text":"Removing something that crosses "},{"text":"in front of a moving subject","b":true},{"text":", because the patch has to respect the subject’s edge, which is rotoscoping."}],[{"text":"Removing something "},{"text":"reflected","b":true},{"text":" in a surface, which usually requires removing it twice."}],[{"text":"Removing something that "},{"text":"casts a shadow","b":true},{"text":", because the shadow stays."}],[{"text":"Anything against a "},{"text":"detailed, structured background","b":true},{"text":": brickwork, text, a crowd."}]]},{"t":"h2","id":"today","runs":[{"text":"Today"}]},{"t":"p","runs":[{"text":"Take a locked-off shot with something unwanted in it, copy a clean region over it with a feathered mask, and add a little grain to the patch. Five minutes, and it is most of the technique."}]}],"check":{"question":[{"text":"An editor patches out a light stand on a handheld shot, tracking the patch to the wall behind it. The track is accurate and the patch is still visible. What is the most likely reason?"}],"options":[{"text":[{"text":"The patch is too clean: it lacks the grain and noise of the surrounding footage, so it reads as a smooth area in a textured frame."}],"correct":true,"tempting":null},{"text":[{"text":"The mask edge is too hard, and increasing the feather until the boundary is imperceptible will integrate the patch with the frame around it."}],"correct":false,"tempting":[{"text":"A hard edge is a common fault worth fixing, but a well-feathered patch that is still noise-free remains visible as a smooth region."}]},{"text":[{"text":"A planar track cannot hold on a handheld shot because the perspective of the wall changes continuously as the camera moves through space."}],"correct":false,"tempting":[{"text":"Planar tracking handles changing perspective well, and the question states the track is accurate, so the problem lies after the track."}]},{"text":[{"text":"The patch was taken from a frame with different lighting, so its brightness does not match the frame it is composited into at that moment in the shot."}],"correct":false,"tempting":[{"text":"A real matching failure and one of the things to check, though it presents as a visible brightness step rather than as a patch that is subtly too clean."}]}],"order":[2,3,1,0],"why":null},"prev":{"slug":"tracking-and-match-move","title":"Tracking a point, a plane and a camera","minutes":9},"next":{"slug":"noise-and-sharpening","title":"Noise reduction, sharpening, and what neither can do","minutes":9}}}