I want to know if it's really possible to play an AAC (ADTS header) file with Netstream.appendbytes. I'm talking about files that end .aac
not AAC audio inside M4A or MP4 containers.
I'm aware Netstream can't parse ADTS headers etc so I already have a class for parsing the data and gives back correct info such as channels, bitrates, framelengths etc.
Putting this together gives silence: Make FLV header (+ append) ->> Make audio tag header (+ append) ->> now append with raw/headerless AAC payload (frame 1) + update previous tag size ->> Make new audio tag for next AAC frame & append ->> raw/headerless payload append (frame 2) and so on until track end.
Can someone please clarify:
In the FLV tag we put extra byte to specify whether Raw or Sequenced AAC type. If I have removed the 7 byte header and left with only data up the next frame/SyncWord. I assume its Raw but I get silence whichever setting I choose. Should I be considering anything else (ie an additional function depending on type?)
Should AAC header bytes exist in some data at some point sent to the Appendbytes command? Even if I already set FLV tag to Raw AAC audio?
Do all AAC files hold 1024 samples per frame regardless of channels or should I multiply 1024 by channels number? I ask because I need this for correct duration calculation and noticed when testing MP3s that I get silence if duration or framelengths are wrong.
I have a lot of questions and a lot research (AAC specs, FLV specs etc) but nothing is helping and there is some confused info on the net (well they don't always speak from an AS3 perspective..). I guess I just need to know it's definitely possible rather than keep on blindly against a technical limitation
PS: I have succesfully played .MP3 audio files with AppendBytes and now changed the process to accomodate AAC (ie: parsing 7 byte header not 4 byte header etc. More to it than that ofcos). Thanks for reading and hope someone out there can help.