Author Topic: AVIdemux_CLI: convert 6ch aac to 2ch mp3  (Read 3560 times)

unknownsoldierx

  • Newbie
  • *
  • Posts: 12
AVIdemux_CLI: convert 6ch aac to 2ch mp3
« on: September 29, 2012, 10:06:01 PM »
AVIdemux_CLI is giving me an error

Code: [Select]
* Error *
* Codec Error *
* The number of channels is greater than what the selected audio codec can do.
Either change codec or use the mixer filter to have less channels. *

The video has 6ch aac.  How do I add to this command to convert to 2ch?

Code: [Select]
%avidemux% --video-codec xvid --audio-codec mp3 --video-conf 2pass=%targetsize% --force-alt-h264 --load "%%f" --save %destination% --quit
Thanks.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: AVIdemux_CLI: convert 6ch aac to 2ch mp3
« Reply #1 on: September 30, 2012, 05:14:35 AM »
Don't know how to set stereo downmix from CLI. You could do this from a project file. In this case Tinypy project.
If there is only one audiotrack this attached project should work.
Code: [Select]
%avidemux% --video-codec xvid --audio-codec mp3 --video-conf 2pass=%targetsize% --force-alt-h264 --load "%%f" --save %destination% --quit moved audio settings from cli to tinypy project:
Code: [Select]
%avidemux% --video-codec xvid --video-conf 2pass=%targetsize% --force-alt-h264 --load "%%f" --run ac3downmixmp3stereo.py --save %destination% --quit

unknownsoldierx

  • Newbie
  • *
  • Posts: 12
Re: AVIdemux_CLI: convert 6ch aac to 2ch mp3
« Reply #2 on: September 30, 2012, 05:22:07 AM »
OK.  Do you know if this would still run OK if the file was already 2ch?

I'm doing a bunch of files and for most of them are 2ch, so the original command works fine.  It's just the occasional file that has 6ch.  Could I use the project file you posted for all the files?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: AVIdemux_CLI: convert 6ch aac to 2ch mp3
« Reply #3 on: September 30, 2012, 05:33:49 AM »
most likely yes, do small test. It would not work for multiple audio tracks.