Skip to content

How can I check for an accidental black gap between face-swap segments before delivering the cut?

Look for a sustained nearly black picture using a duration and pixel threshold, then inspect each reported boundary. A fade to black or dark stage is a legitimate match that still needs editorial judgment.

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 proof copy of the complete joined sequence and search the log for black start and end times. Inspect a few pictures on both sides. Note whether dialogue or room sound continues across the gap.

shell
ffmpeg -i studio.mp4 -filter_complex "[0:v:0]blackdetect=d=0.12:pix_th=0.10[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

If the time aligns with a segment join that should show continuous action, check for a missing clip or a gap on the timeline. A designed fade should remain documented in the edit notes.

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

Reduce the minimum duration if you suspect a single black flash. Test the detection setting on a known dark frame before removing any footage.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example