HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: Anakunda on 2011-12-21 17:38:29

Title: How to encode 2.1 source with CoreAudioToolbox?
Post by: Anakunda on 2011-12-21 17:38:29
HI! I need help to encode 2.1 audio with qaac. Passing it the source, I get an error: unsupported audio format.
Maybe there's a way to remap the channels to suit quicktime's scheme, or other workaround. Thankyou.
Title: How to encode 2.1 source with CoreAudioToolbox?
Post by: nu774 on 2011-12-22 00:52:40
HI! I need help to encode 2.1 audio with qaac. Passing it the source, I get an error: unsupported audio format.
Maybe there's a way to remap the channels to suit quicktime's scheme, or other workaround. Thankyou.

qaac complains because 2.1ch is not available by AAC/ALAC encoder. As for qaac, you can use matrix mixer for downmixing to stereo (see usage page).
In this case, probably just dropping LFE channel is enough. so, you can use the following matrix:
Code: [Select]
1 0 0
0 1 0

If you are working with QuickTime pro, you can manually assign each channels, and specify output channel layout. If you are working with CoreAudio as a programmer, probably you have to implement mixer by yourself.