Mute specified sections of an audio file using ffm

2019-01-09 04:02发布

问题:

I have a JSON file containing regions that I want to mute in a given audio file. How can I process the audio file to mute the file between the listed sections?

回答1:

The following command will mute two sections: between 5-10s and 15-20s:

ffmpeg -i video.mp4 -af "volume=enable='between(t,5,10)':volume=0, volume=enable='between(t,15,20)':volume=0" ...


标签: audio ffmpeg