Skip to content

How can I show the direction of a fast gesture through a swapped face in one inspection image?

Blend a short run of consecutive pictures into a motion trail. The trail reveals where an object traveled across the face but it also mixes distinct moments and cannot establish a single-frame defect.

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

Use a four-frame blend around the crossing. Compare the direction of the trail with the unblended first and last frames. Check whether the glove or hand moves in front of the subject or behind their outline.

shell
ffmpeg -i studio.mp4 -filter_complex "[0:v:0]tmix=frames=4:weights='1 1 1 1'[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A broad trail helps locate an occlusion interval. A double eye in this diagnostic is expected whenever the head is moving; call it an output fault only if it also appears in an original individual frame.

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

Shorten the temporal window if another subject enters while the trail is accumulating. Send a frame sequence for repair, keeping the trail as an explanatory illustration.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example