Here's how to mix three audio files into one:

以下是将三个音频文件混合为一个的方法:

ffmpeg -i alex.aiff -i fred.aiff -i whisper.aiff -filter_complex "[0:0][1:0] amix=inputs=3:duration=longest" out.mp3

Note the inputs=3 part as we're mixing three files.

请注意inputs=3部分,因为我们正在混合三个文件。

And this mixes only two files putting one on the left and one on the right:

而且这仅混合了两个文件,一个放在左边,另一个放在右边:

ffmpeg -i alex.aiff -i fred.aiff -filter_complex amerge out.mp3

        
        

Tell your friends about this post on Facebook and Twitter

FacebookTwitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/ffmpeg-to-mix-audio-files/

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐