Mute part of a video's audio

Silences a time range while leaving the rest of the audio and all of the video untouched.

ffmpeg -i https://cdn.rendobar.com/assets/examples/sample.mp4 -af "volume=enable='between(t,1,3)':volume=0" -c:v copy -t 5 out.mp4
Encode
121 ms
Output
333.1 KB
Cost
$0.0016
Result
1280x720

job_6a3f604f05724bc8

The part everyone gets wrong

The enable expression is what makes a filter time-selective, and it works on most filters rather than just volume. Note the quoting: the between() call contains commas, which end a filter unless the whole expression is quoted.

Frequently asked questions

How do I ffmpeg mute section of video?

Silences a time range while leaving the rest of the audio and all of the video untouched.

What goes wrong most often?

The enable expression is what makes a filter time-selective, and it works on most filters rather than just volume. Note the quoting: the between() call contains commas, which end a filter unless the whole expression is quoted.

Do I need FFmpeg installed?

Not with Rendobar. The command on this page ran through the API against a URL, with no local FFmpeg and no server. The job id below it is the job that produced these numbers.

Run this without installing FFmpeg

This exact command ran through the API against a URL.