音频使用文件的ffmpeg的静音指定部分 [英] Mute specified sections of an audio file using ffmpeg

查看:1864
本文介绍了音频使用文件的ffmpeg的静音指定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含我想在一个给定的音频文件静音区域的JSON文件。我该如何处理音频文件静音上市部分之间的文件吗?

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?

推荐答案

以下命令将静音两部分:5-10s和15-20s之间:

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" ...

这篇关于音频使用文件的ffmpeg的静音指定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆