FFMPEG自定义音频混合过滤器



我需要混合2个文件:a和b,结果是文件a的一部分,也是文件b。

的一部分

详细说明我喜欢输出是文件a的上部和文件b的下部的总和。

我需要这样的东西:

ffmpeg -i A.flac -i B.flac -af "copy all from 0 to -25 dB from 'A', copy all from -25dB to -infinite from file 'B' and put these 2 parts on the output" output.flac

-25db是可以调整的可变,我喜欢保留'a'。

的量

简而言之,我喜欢替换文件" a"的软背景" a" with file'b'。

有办法做到这一点?

谢谢!!!

使用

ffmpeg -i a.wav -i b.wav -filter_complex
    "[0]agate=range=0:threshold=0.056:ratio=9000:makeup=2[a];
     [1]acompressor=threshold=0.056:ratio=20:makeup=2[b];
     [a][b]amix" out.wav

阈值值如下:10 to the power of (decibel value/20)

例如。-25 dB将是10 ^ (-25/20) = 10 ^ -1.25 = 0.056

最新更新