Skip to content

How can I see whether a swap changed the room as well as the people?

A difference image highlights decoded pixel differences, including changes in compression, camera placement and the intended person edits. Inspect a static patch away from the actors after matching time and scale.

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

Compare two recognizable background objects in the difference movie. Switch to the ordinary pictures to decide whether a highlighted feature moved, changed color or simply decoded differently.

shell
ffmpeg -i studio.mp4 -i duo-result-silent.mp4 -filter_complex "[0:v:0]setpts=PTS-STARTPTS,fps=24,scale=384:216,setsar=1[a];[1:v:0]setpts=PTS-STARTPTS,fps=24,scale=384:216,setsar=1[b];[a][b]blend=all_mode=difference:shortest=1[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A bright outline around a fixed lamp with dark pixels beside it is easier to investigate than widespread brightness. The latter often signals exposure or global registration differences.

With the synchronized viewing copies of the original and returned living-room clip, the local FFmpeg run decoded 144 video frames at 384 × 216 pixels. The recipe resets timestamps and fits both streams to the same 384 × 216 viewing raster at 24 fps before applying the comparison.

If the first pass falls short

When camera movement differs, compare individual stills or align a small background region before drawing conclusions from the difference movie.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example