ffmpeg to mix audio files

March 2nd, 2018. Tagged: ffmpeg, tools

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.

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: Facebook, Twitter, Google+

Sorry, comments disabled and hidden due to excessive spam. Working on restoring the existing comments...

Meanwhile, hit me up on twitter @stoyanstefanov