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.mp4
Prefer no terminal?
Use the Silence Remover in your browser
Open Silence Remover

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-afAudio filter chain. e.g. silenceremove, loudnorm.
-yOverwrite output file without confirmation.
stop_periods=-1Remove every silent gap, not just the leading one.
stop_duration=0.6Minimum gap length to consider as silence (in seconds).
stop_threshold=-40dBAudio 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