I'm using Xuggler to encode AAC audio and send the packets to a Publisher. The encode process seems to work fine, but it seems that I'm having a problem getting the channels property of the AACFrame to set properly
The sample rate, samples per packet, and profileObjectType are coming across as expected, but channels always reads 0. I can play the stream on VLC and on Android over RTSP, but VLC reports an error on the channels value, and the stream cannot be played by iOS or Flash.
I've also tried with the LC profile... same results.
I don't quite understand. For AAC you need to send a 2-byte codec config packet (with a 2-byte header) before you send your first audio packet. What does this packet look like? Also, the AAC packets should be sent without the ADTS (I think that is the correct acronym) header. Are you doing this. The ADTS header is 7 bytes long and the first 12 bits are 0xfff.