Mixing sounds in ffmpeg

2019-07-09 12:27发布

问题:

I have 2 wave (.wav) samples of 1 second duration each. I need to mix them such that the second wave file starts at 0.5 seconds after the first one. I need to export the mixed wave format to a new wave file called output.wav. How can I achieve this using ffmpeg?

回答1:

Sox will allow to mix audio files. You can specify offsets using the -p pad option.

sox -m sound1.wav "|sox sound2.wav -p pad 0.5" out.wav

Check question 7 of the Sox FAQ for more info



标签: ffmpeg