Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 wonder if I can mix down a 5.1 AC3 file to Stereo WAV file, i.e. 6-channel > 2-channel. I'd like to know how to do this with via terminal with ffmpeg (or avconv, because it says ffmpeg is deprecated).

share|improve this question

From man avconv, Audio Options section:

-ac[:stream_specifier] channels (input/output,per-stream)
           Set the number of audio channels. For output streams it is set by
           default to the number of input audio channels. For input streams
           this option only makes sense for audio grabbing devices and raw
           demuxers and is mapped to the corresponding demuxer options.

So you basic command line would be:

avconv -i <input file> -ac 2 <output file>.wav

You may also play with downmixing settings for the AC3 decoder, ie, the options where you can configure how the 6 channels from 5.1 will be merged (downmixed) into the 2 of stereo. Check for -dmix_mode and the -*mixlev* family of options under the Audio Encoders / ac3 section of the manual

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.