Skip to content

How can I locate a silent gap inside an otherwise audible face-swap soundtrack?

Log silence boundaries at a chosen level and duration. Then listen near each boundary to distinguish an editing gap from an intentional pause in speech.

PREPARE AND CHECK THE SOUNDTRACKAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Set up the edit

The fixture mutes a tone from about one to two seconds and checks for at least 0.2 seconds below the threshold. In real material, use a threshold that sits below ordinary room tone.

shell
ffmpeg -f lavfi -i "sine=frequency=440:sample_rate=48000:duration=3" -filter_complex "[0:a:0]volume=0:enable='between(t,1,2)',silencedetect=n=-50dB:d=0.2[proof]" -map "[proof]" -c:a pcm_s16le audio-proof.wav

Read the result

An identified gap at a splice calls for a track or edit-boundary check. Silence between sentences can be intentional. Confirm the relevant track is meant to carry signal there.

With a synthetic three-second 440 Hz tone at 48 kHz, the local FFmpeg run decoded 141 audio blocks. The tone makes timing and routing repeatable. Listening to the actual dialogue or music is still part of the final check.

If the first pass falls short

If noisy room tone prevents detection, inspect a waveform or solo the dialogue channel. Raising the threshold too far can mark quiet speech as silence.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example