Skip to content

Can I fix a slightly tilted replacement plate using four corners without warping the swapped person?

Use a four-corner adjustment only when the area you are matching is approximately one flat plane. It can align a screen or wall insert; a moving human body has depth and cannot be registered from four room corners alone.

PLAN AN EXTERNAL VIDEO REPAIRAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Set up the edit

Choose four distinct corners of the same plane, then align a duplicate plate. The given offsets demonstrate a small perspective shift. Keep a second copy with no warp and toggle the person's outline between them.

shell
ffmpeg -i studio.mp4 -filter_complex "[0:v:0]perspective=x0=10:y0=5:x1=W-12:y1=0:x2=0:y2=H:x3=W:y3=H[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

If a stationary panel aligns but the actor's near hand and far shoulder still disagree, preserve the planar correction for the panel only. Mask the plane away from the actor.

With the original living-room dance, the local FFmpeg run decoded 150 video frames at 1280 × 720 pixels. Use the linked file to reproduce the example. This was an offline edit of the existing public clip.

If the first pass falls short

When the plane changes angle through the shot, track or keyframe that plane. Applying one fixed warp to the whole moving shot can create convincing corners and implausible anatomy.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example