PDA

View Full Version : ffmpeg libfaac - 8 channel audio encoding


ApPojken
26th September 2011, 13:16
As far as I have understood, FAAC audio should support a lot more than 8 audio channels. But I don't seem to be able to encode more than 4 or 6.

Here is my command line:

ffmpeg -i video.mov -vcodec libx264 -b 800000 -s 512x288 -fpre libx264-normal.ffpreset -acodec libfaac -ar 48000 -ab 192k -ac 8 out.mp4

Here is the error:

[libfaac @ 014f2750] encoding 8 channel(s) is not allowed

Anyone with any suggestions or alternative AAC encoders I can use? (Downmixing the audio is not an option in this case)

ApPojken
26th September 2011, 14:35
Seems the error is not related to the aac encoder. I get the same result if I do:

" -acodec copy -ac 8 "C:\tmp\out2.mov" -newaudio"

So the issue seems to be that ffmpeg is trying to create one track with 8 channels rather than 8 mono tracks (which I am after).

I still have no idea how to do this.

ApPojken
26th September 2011, 15:56
Never mind. Looks like I have sovled it. Just needed to repeat the -acodec copy (or codec) -newaudio once per channel and it produced what I needed.