Blog

How to sync captions and scenes to real voice-over audio

Reproducible workflow using ffmpeg silencedetect to lock every scene cut and caption to the millisecond without guessing.

Why estimating words-per-minute fails

Every voice take breathes differently: a dramatic comma, a large number or a pause before the reveal shifts sentence timing. If you animate scenes assuming a constant speaking rate, visuals drift half a second off by the middle of the reel.

Measuring real pauses with ffmpeg silencedetect

Run `ffmpeg -i voice.mp3 -af silencedetect=noise=-35dB:d=0.18 -f null -` on your final voice-over. The filter prints exact start and end timestamps for every silence longer than 180 milliseconds, matching your sentence boundaries.

The 50-millisecond lead-in trick

Converting each timestamp to frames with `round((t - 0.05) * 30)` brings in the caption and visual cut 1 to 2 frames ahead of the spoken onset. Viewers perceive that tiny lead-in as snappy, tight synchronisation.

Final loudness normalisation to −14 LUFS

Before exporting the final MP4, pass the audio through `loudnorm=I=-14:TP=-1.5:LRA=11`. This prevents Instagram or YouTube from abruptly ducking your track or making your video quieter than the one before it.