Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want audio files to be merged and be the length of the longest one of course.

Not to concat them, which means adding one behind the other.

I tried googling since yesterday night, but didn't found any such thing. Is this really possible ?

share|improve this question
Yes, it is probably possible, but to give you an example I'd like to see the complete output of ffmpeg -i input1 -i input2 -i input3. – LordNeckbeard Sep 13 '13 at 18:18
@LordNeckbeard found the solution thanks – coding_idiot Sep 14 '13 at 2:38

For helping others, I'm posting the solution I find :

Mixes multiple audio inputs into a single output.

For example

ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT

Above command will mix 3 input audio streams to a single output with the same duration as the first input and a dropout transition time of 3 seconds.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.