I managed to successfuly parse ADTS headers of AAC files, but I still need to determine correctly if this particular AAC has SBR (AAC+) or both SBR and PS (AAC+v2). It is necessary to determine the real samplerate and number of channels to send the correct information to Icecast server. Well, to be honest, all players seem to play my AAC stream correctly, even if Icecast receives incorrect samplerate and number of channels (for example I get 22050Hz, 1 channel for audio that is in fact 44100Hz, 2channels and having both SBR and PS). Information about SBR and PS is not available in ADTS headers. For determining this I think I should parse the raw AAC frames for which I can't find a good specification
My question is how do I know if AAC has SBR and PS? Does anyone know of a recent specification of AAC with SBR and PS data explained?
