Skip to content

How can I tell whether my character moved or the entire camera framing shifted after replacement?

Use a grid over the frame to compare the character with two static room details. A shared movement of doorway, furniture and subject suggests a framing change. A subject shifting relative to those fixed details suggests local drift.

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

Put the same grid over both files at matching timestamps. Write down the grid cell containing the shoulder and one near and one far background corner. Repeat just after the camera changes direction.

shell
ffmpeg -i studio.mp4 -filter_complex "[0:v:0]drawgrid=width=iw/3:height=ih/3:thickness=1:color=white@0.6[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

Agreement on multiple background anchors makes the subject comparison more informative. During a pan or parallax move, check the background on the same depth plane as the performer.

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

If the backgrounds cannot be aligned, postpone precise displacement claims. Use the grid to describe the mismatch before deciding to reposition anything.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example