Skip to content

How can I tell a real cut from a lighting flash before splitting my AI swap source?

Use scene-change scoring to suggest frames and then compare the frames on both sides. The score measures visual change. A neon flash, whip pan or hand across the lens can exceed a cut threshold.

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

The command keeps frame zero as a baseline. Later output frames exceed the score threshold. Collect those times on a copy. At each one, look for a stable change in location or camera angle over the following pictures. Check whether the original scene returns immediately after the flash.

shell
ffmpeg -i neon-original-v1.mp4 -filter_complex "[0:v:0]select='eq(n,0)+gt(scene,0.18)',showinfo[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A candidate followed by the previous composition may be a light pulse. A lasting new shot calls for a fresh identity reference check at the first usable frame.

With the original neon dance, the local FFmpeg run decoded 1 video frames at 1920 × 1080 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 no candidates appear, lower the threshold gradually or inspect your known edit by hand. Do not divide the source automatically solely from a scene score.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example