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