Find Dead Air in AI Voiceovers With One FFmpeg Command
Hi there. When I build a narrated video from AI voice clips, long stretches of silence can sneak in between sentences. My first assembly of a roughly 14-minute video had 109 gaps longer than 1.2 seconds. I did not hunt for them by ear. I measured them. Here is the command and the fix. What I saw I generated 166 sentences one at a time and joined them into a video of 859.7 seconds. A checker flagged 109 silent stretches of 1.2 seconds or more. Each sentence file carried a long quiet tail, and those tails added up. The detection command With FFmpeg installed, one line lists every silent stretch: ``` ffmpeg -i "video.mp4" -af silencedetect=noise=-50dB:d=1.2 -f null - ``` Each silence_start and silence_end pair in the output marks a gap. d=1.2 means only gaps of 1.2 seconds or longer are reported, so change that number to change the rule. The fix Trim the quiet edges of each sentence file but keep 0.18 seconds (180 ms) of breathing room on both sides. Compare the aud...