Mute a specific time range
audio
// what it does
Silences a single time window using timeline editing on the volume filter. The enable='between(t,5,10)' expression activates the filter only while the timestamp t is between 5 and 10 seconds, and volume=0 sets the gain to zero during that span; outside the window audio passes through untouched. Handy for bleeping a word or killing a stray noise without cutting the clip.
// shell
$ ffmpeg -i input.mp4 -af "volume=enable='between(t,5,10)':volume=0" output.mp4// gotcha
The two 'volume' tokens differ: the first is the filter name, the trailing volume=0 is its gain parameter, and t is in seconds. Omit the enable option and volume=0 mutes the entire track instead of just the 5–10s window.