FFmpeg recipe
FFmpeg: Auto-Remove Silent Gaps from Audio or Video
silenceremove detects audio below a threshold and cuts those segments. Tunable for casual chat or fast standups.
Command
ffmpeg -i input.mp4 -af "silenceremove=stop_periods=-1:stop_duration=0.6:stop_threshold=-40dB" -y output.mp4Prefer no terminal?
Use the Silence Remover in your browser
What each flag does
| -i | Input file. Can be a video, audio, or image. Repeat for multiple inputs. |
|---|---|
| -af | Audio filter chain. e.g. silenceremove, loudnorm. |
| -y | Overwrite output file without confirmation. |
| stop_periods=-1 | Remove every silent gap, not just the leading one. |
| stop_duration=0.6 | Minimum gap length to consider as silence (in seconds). |
| stop_threshold=-40dB | Audio below this dB level is silence. Tighten to -50dB for casual chats; loosen to -30dB for noisy recordings. |
Notes & gotchas
- For Zoom recordings, -40dB and 0.8s typically cut 30β50% of runtime.
- For DAW-clean voice recordings, drop to -50dB and 0.4s.
Related recipes
Extract audio Β· MP4
Pull the audio track out of an MP4 with FFmpeg. Stream-copy is lossless and instant.
Extract audio as MP3 Β· Any video
Extract audio as MP3 from any video format with FFmpeg. 192 kbps default for transparent quality.
Normalize loudness Β· Audio / video
Normalize audio loudness to broadcast standards with FFmpeg loudnorm filter. -16 LUFS for podcasts, -23 for TV.
Trim Β· MP4
Trim an MP4 with FFmpeg using stream-copy for lossless, instant output. Copy-paste command with explanations.