Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to detect raw AAC (non-ADTS) frame boundary (Read 5511 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to detect raw AAC (non-ADTS) frame boundary

Hi All,

I have AAC-LC mono audio stream coming directly from audio encoder.
I don't have control on encoder, as its android media recorder.

What I read from encoder's output is a raw aac stream, No ADTS headers, no container data as I want to stream encoded audio directly as it arrives.(before file gets saved).

I want to determine the AAC audio frame boundaries/frame lengths in incoming encoded raw AAC stream. (encoded AAC will have variable byte lengths.)

Can I search for any fixed frame headers/patterns inside raw aac byte stream, so that I can determine frame boundaries?

Is it possible with AAC? (else It looks like only decoding raw aac is the only option to find out frame boundaries.)

Thanks in advance for your valuable inputs.
Satish MR.