HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: dand on 2005-03-21 17:26:42

Title: Multichannel confusion!
Post by: dand on 2005-03-21 17:26:42
Hi all,
I created 3-channel wav (Left Right Center) and encoded this wav to AAC using multichannel AAC encoders I could find: FAAC, NERO and COMPAACT.


First confusion comes from different encoding:

NERO mapped Left channel to SCE (single channel element), and encoded Right and Center as CPE (channel pair element) stereo pair, which is wrong.
FAAC mapped Center to SCE and Left and Right to CPE, which is ok.
COMPAACT encoded all as SCEs, and produced three mono channels, which is also wrong.


Second confusion is introduced by FAAD2's decoding:

NERO's SCE is sent to Left speaker and CPE is sent to Right and Center, respectively. So, when you listen to it, everything seams to be right, but it isn't. NERO makes a mistake and FAAD 'hides' it.

FAAC's output is routed completely wrong. SCE element is sent to Left, CPE is sent to Right and Center speakers.

COMPAACT'S three mono channels are all routed to right speakers (like NERO's), but using what logic?



Input wave file's header explicitely says what channels and in what order are interlieved inside this file, so there shouldn't be any confusion with encoding/decoding. But do the encoders know how to interpret multichannel wav header (WAVE_FORMAT_EXTENSIBLE)? And why the decoder doesn't write proper multichannel wave (also WAVE_FORMAT_EXTENSIBLE) at it's output?

What to do?

Daniel
Title: Multichannel confusion!
Post by: Garf on 2005-03-21 20:15:46
It seems you are right, we'll fix this on our side...

Edit: At least on the encoder side it's a problem, menno's also going to check FAAD2 but pointed out AAC channel order =/= WAV order