I have a long video (eg. 10 mins duration). Now I want to silence audio of this video only at these specific intervals: - From 00:01:00 to 00:01:40 - From 00:05:30 to 00:06:10 or more intervals. How can I do using ffmpeg?
1 Answer
Basic syntax is
ffmpeg -i video -c:v copy -af volume=0:enable='between(t,60,100)+between(t,330,370)+between(t,465,541.3)' out.mp4
Times are provided in fractional seconds.
-
Doesn't work for me. I get
Missing ')' or too many args in 'between(t'
.– ErhannisJun 3, 2018 at 20:45 -
1In some shells, you have to escape the commas, so
t,60
becomest\,60
and so on.– GyanJun 4, 2018 at 5:37 -
Ah, that works; thanks. This works, too: stackoverflow.com/a/29222419/513038– ErhannisJun 6, 2018 at 2:18