News:

--

Main Menu

AVIdemux_CLI: convert 6ch aac to 2ch mp3

Started by unknownsoldierx, September 29, 2012, 10:06:01 PM

Previous topic - Next topic

unknownsoldierx

AVIdemux_CLI is giving me an error

* 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?

%avidemux% --video-codec xvid --audio-codec mp3 --video-conf 2pass=%targetsize% --force-alt-h264 --load "%%f" --save %destination% --quit

Thanks.

Jan Gruuthuse

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.
%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:
%avidemux% --video-codec xvid --video-conf 2pass=%targetsize% --force-alt-h264 --load "%%f" --run ac3downmixmp3stereo.py --save %destination% --quit

unknownsoldierx

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

most likely yes, do small test. It would not work for multiple audio tracks.