AI object removal from video: ProPainter + SAM2

Extra passersby, equipment in frame and random objects ruin even successfully shot footage. We develop turnkey object removal from video: our engineers configure processing so that traces of intervention are invisible even on fast motion. The output is a finished clip and a clear repeat-processing protocol.
Frequently Asked Questions

Removing objects from video: where quality breaks

Removing objects from video is not “erase an item and fill the spot.” The mask is calculated frame by frame, and between frames the object changes shape, overlaps the background, and itself falls into other overlaps. It is precisely at the frame seams that the result breaks.

The first class of failures is mask artifacts. A hard threshold cuts off semi-transparent edges: hair, smoke, the shadow under the object turn into a ragged boundary with the background.

A soft threshold leaves a semi-transparent halo, and after reconstruction the background around the object looks blurred.

The second is contour jitter. The mask on adjacent frames diverges by just a few pixels, and during playback the edge “boils”: it lives its own life even though the camera is static.

The reason is that frames are processed separately, without accounting for temporal coherence and camera motion.

The third is a trail behind the object. On frames where the item has already left, its trace from previous overlaps remains in the mask, and the reconstructor drags a semi-transparent imprint across the background.

The fourth is destruction of background and texture: grass, water, parquet, repeating ornament are pulled in from neighboring frames and turn into a plastic blob with broken perspective.

Each of these defects is treated not by “a stronger model” but by a combination: how the mask is built, how it is smoothed over time, what fills the cut-out area, and how the result is checked. We break down how this is addressed.

What changes in the footage after processing

Processing changes not individual frames but the properties of the entire material.

Instead of manual tracing and painting over each shot, the scene goes through a neural network recomputation, and from then on we count not “beautiful or not” but the share of frames with defects, scene preparation time, and the number of repeat passes over the same fragment.

Defects disappear as a whole class

Manual mask left a recognizable set of artifacts: a blurred blob where the object was, a jittering boundary, a semi-transparent trail when the camera moves.

Frame recomputation assembles the background from neighboring frames rather than covering it with a patch, so the “noticeable edit” class disappears entirely — the boundary does not crumble on a panorama and does not “breathe” on static shots.

Defect rate by frames

With manual tracing, roughly every fourth or fifth frame needs finishing: somewhere the mask slipped on an overlap, somewhere the object touched a neighboring detail.

After recomputation, only a few percent remain for rework — complex overlaps and mirrored surfaces where the background physically cannot be restored.

Scene preparation speed

Processing runs in a batch across the entire sequence: a few minutes of material are computed over hours on a dedicated node instead of days of manual work, and the run is scheduled overnight.

In the morning the scene is ready for editing, and a repeat pass is needed only when the task changes — for example, if a different object now needs to be removed.

Frame recomputation quality

<cite>SAM2</cite> builds a mask along the object contour and holds it between frames, so recomputation follows the boundary strictly and does not eat neighboring details: text in the background, thin lines, semi-transparent objects stay in place.

Frame cleanup methods: comparison of approaches and modes

The choice of frame cleanup method is determined not by the complexity of the object but by how predictable the background under it is.

Where the overlap is short and the background is static, an automatic mask is enough — frame-by-frame segmentation holds the object, and the background is completed from neighboring frames.

Where the object covers a unique texture or crosses a face, automation produces artifacts, and without manual finishing the result does not go on air.

Below are four options that people realistically choose between at the start of a project. They differ in the amount of manual labor, stability on motion, and what to do if the object returns to frame in the next shot.

Option When it fits Limitations
Automatic mask Short overlaps, static or repeating background, clear object boundary Fails on hair, reflections, and semi-transparent edges — frame-by-frame control is needed
Hybrid: automatic mask + manual finishing Archive and existing footage where reshoots are impossible; the object passes through text or a face Time grows in proportion to the number of disputed frames; frame-by-frame review is required
Masking in editing (reframing, covering with graphics) Object at the edge of frame, there is compositional headroom Changes composition, does not work with camera motion and the object in the center
Reshooting the scene with background recomputation Static scene, repeatable light, access to the set is available Not suitable for archival material; matching optics and lighting is required

Processing mode is fixed before work begins, not along the way: we check how many frames the object overlaps in a row, whether there is a unique texture under it, and how the camera moves.

This removes the main risk — when a week later it turns out that half the scene needs to be recomputed from scratch.

How the work is structured: processing and verification stages

Object removal breaks not on an individual frame but at the seams: the mask drifts, the background starts flickering, and a halo remains outside the object boundary.

That is why work proceeds in stages with checks on control scenes — a defect is found before the entire array is rebuilt.

  1. Material audit. We review the source footage in full: camera motion, shot and lighting changes, object intersections with people. The output is a map of problematic areas and an honest assessment of where background painting is needed.
  2. Per-scene processing scheme. For each scene we choose a mode: static mask, object tracking by motion, or background reconstruction from neighboring frames. We agree on the scheme before launch — edits here cost hours, after the run they cost days.
  3. Model setup. We tune mask and temporal window parameters to the grain, noise, and compression of the source so that background textures are transferred without sticking.
  4. Checks on control scenes. We review the 3–5 most difficult fragments frame by frame: background flicker, boundary jitter, residual traces. Only after clean passage do we launch the entire array.
  5. Batch processing. The run proceeds with fixed settings and preservation of sources — any section can be rebuilt selectively.
  6. Result acceptance. We compare before and after on control scenes, keep a change log, and retain a rollback to the sources.
  7. Handover and team training. We provide settings and a regulation, and go over typical mistakes — so your team can run standard tasks independently.

Results package: masks, projects, and regulations

We deliver not only the finished video. Along with it, the client receives the working processing project, mask layers, and a description of settings — from these, the task can be relaunched on new material or continued in-house without reconstructing the logic from scratch.

What is included in the handover package:

  • Processing project — source material, edit sequence, keyframes, and tracking points in one file. Opens in the same editor we worked in, without manual adjustment.
  • Object mask layers — a separate layer for each object, not a merged mask for the whole frame. Need to restore one object — only its layer is edited; the others remain untouched.
  • Intermediate data — frame-by-frame mask sequences and the result after background reconstruction. The final assembly can be rebuilt without repeating the mask pass.
  • Settings description — which parameters were tuned for this material and why: sensitivity to object boundaries, edge smoothing, overlap thresholds.
  • Relaunch regulation — a step-by-step procedure: how to open the project, what checks to perform before launch, and how to tell that the mask has slipped on a difficult frame.
  • Material handover instructions — which sources are needed, how to prepare them, and in what form to give them to a contractor or internal team.
  • Acceptance control frames — a sample of frames with the most complex overlap, showing that the result is reproducible and not held up by one lucky pass.

We separately record which areas were processed confidently and where manual finishing remained. This removes the main handover risk: the client is left not with “the author’s magic” but with a reproducible set of files, rules, and settings.

Case: cleaning a commercial from extra people

The commercial rested on one long camera move: the hero walks down the street, with a dense crowd behind him. According to the script, two people remain in frame; the rest need to be removed along with their shadows on the asphalt and reflections in shop windows.

Before: manual frame cleanup

The scene was covered with rotoscoping: the artist traced the silhouette in every frame and manually painted the background under it. Of 12 scenes with crowd, 9 went to manual finishing, and three were removed from the edit as unfixable.

One pass over a scene took 5–6 hours, and up to a quarter of frames came back for rework — mask boundaries “drifted” on motion, and the reconstructed background differed in grain.

After: masking and background reconstruction

The task was split into two independent stages: object selection by mask and background reconstruction from neighboring frames based on ProPainter.

The mask is corrected once on a keyframe and transferred across the scene, so manual work comes down to checking boundaries rather than frame-by-frame tracing.

After the approach changed, 2 scenes were manually corrected instead of 9, one scene pass was reduced to 40–50 minutes, and the share of frames with visible defects fell from a quarter to isolated cases. All 12 scenes stayed in the video — the three disputed ones returned from rejection.

The team received a reproducible procedure: the same actions for any scene with a crowd, predictable output checks, and a clear rollback point if the mask lands incorrectly.

How does object removal differ from masking in editing?

Masking in editing does not recompute anything: a plate, blur, or logo is placed over the frame, and the original pixels underneath remain in place. Hence the limitation — the mask lives exactly as long as the object is visible in frame.

Once the object shifts or the camera moves, it has to be redrawn manually, and underneath it there is still a “hole” with nothing to fill it.

Object removal sets the task differently: the element must disappear from the frame, and background reconstruction must complete what was behind it.

The work follows a chain: a segmentation model (SAM 2) takes the object mask with one or two clicks and tracks it across frames; then the algorithm recomputes pixels based on neighboring frames, camera motion, and parallax between scene layers.

The difference between approaches is best seen in the errors. Masking errs visibly and predictably: a jittering edge, the object protruding beyond the plate boundaries, the wrong shade.

Recomputation errs more quietly and more expensively — blurred texture where the object was, pixel “sticking,” multiplication of small details on fast motion.

Hence the different quality control: a mask in editing is checked by episodes, while recomputation is checked frame by frame, looking at mask boundaries, background stability, absence of flicker, and visible seams.

The choice is suggested by the object’s role in the scene.

A static obstacle in the corner of the frame is faster and more accurately covered with a mask; an object that enters frame, moves, and reflects in glass requires full background reconstruction — otherwise the editing trace is immediately readable.

Common doubts about frame recomputation and artifacts

Recomputation artifacts are almost always related to a lack of context: the object being removed overlaps a section of background, and it can only be restored from neighboring frames.

The fewer frames that see this section and the faster the camera moves, the higher the chance of blurred blobs, “breathing” boundaries, and texture repeats.

Source quality sets the ceiling of the result: compression, noise, and motion blur are transferred by the algorithm to the reconstructed area. Below are the objections we most often hear at acceptance.

On a moving object, a trace of the removed item is visible — is that a defect?

More likely a lack of context: if the item overlapped a passerby, its pixels are not present in any frame, and reconstruction follows the trajectory.

At intersections, the engineer corrects the mask frame by frame — narrows the area and adds reference frames until the trace disappears.

The sources were shot handheld, the camera moves and has noise — will you take it?

Camera motion compensation and noise reduction happen before the main calculation: frames are aligned by reference points, and the mask is transferred along the trajectory.

The ceiling is set by background quality — with strong compression we promise “no worse than the surroundings,” not restoration of lost texture.

Can we refine the result ourselves?

Yes. We provide the frame-by-frame sequence and the assembled file without recompression, plus layer masks — edits are made in your usual editor. If more convenient, we will do the refinement: describe exactly what did not work in the specific fragment.

Let’s discuss the task: what to send and how we start

To come back with an estimate and work plan, we need only the source material and a short description of the task. Send a link to the file in cloud or on disk, two or three examples of problematic scenes with timecodes, and one sentence about what the result should be.

That is enough to estimate the scope, choose the processing scheme, and give timelines — without long correspondence and intermediate calls.

What is useful to attach to the request:

  • Source material — the original file without recompression: the fewer transcodings before us, the cleaner the object boundaries and the fewer artifacts in the finished frame.
  • Timecodes of problematic scenes — where the object overlaps a face or another person, where it partially leaves frame, and where the background covers it.
  • List of objects — exactly what we are removing: a static item, a passerby, a logo, a reflection, or a shadow. Shadows and reflections are considered a separate task; it is better to specify them right away.
  • Desired result — where the video will go: advertising, training course, social media. This determines how densely we clean each frame and whether background correction is needed.
  • Timeline priorities — which episode is needed first and what can go into the queue.
  • Transfer method — if the material is in a closed storage, we will agree on the channel and access in advance.

At the intro stage, we come back with an estimate and work plan: breakdown by scenes, mask preparation scheme, stages, and the points where you review the intermediate result. Describe the task — we will discuss the details and propose a workflow.

AI Development Areas

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1542
  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1394
  • Website development for BELFINGROUP
    Website development for BELFINGROUP
    1081
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1369
  • B2B Advance company logo design
    B2B Advance company logo design
    816
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1141