For AAC you need to send a 2byte codec config packet (with a 2byte 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. 17 rows ADTS packet must be a content of PES packet.
Pack AAC data inside ADTS frame, than pack inside PES packet, then mux by TS packetizer. Usage in Shoutcast. ADTS frames goes one by one in TCP stream. Look for syncword, parse header and look for next syncword after.
Feb 27, 2013 adts: adtsheader frame1 adtsheader frame2 adtsheader frame3 In ADTS, each frame data is preceded by a header. So even if the header portion of any frame is lost, we can still decode the stream. ADTS header is typicaly not used in some other container, like mp4, but is used for standalone AAC files only.
ADTS header starts with 12 bit syncword 1111 1111 1111. So all ones, and this is not the case in your example. AAC Frame Header (ADTS) Correct AAC frame header; Bits: Information technology Generic coding of moving pictures and associated audio information Part 7: Advanced Audio Coding (AAC). Common names: AAC and ADIF.
Description: Bitstream encoding and file format designed for efficient distribution of sound files over moderate bandwidth connections; may be used at higher data rates for Jul 22, 2005 Dear Readers, I have some doubtsquerries Regarding the ADTS Headers for AAC files. As we know that their are two Formats(ADTS And ADIF) regarding the AAC Much AAC data is encapsulated in MPEG4 files which is an extension of the QuickTime container format.
the MPEG4 file will have an audio 'trak' atom which will contain a 'stsd' description atom which will contain an 'mp4a' atom which will contain an 'esds' atom. Part of the esds atom contains the setup data for associated AAC stream. from MPEG2 AAC. Transport for MPEG2 AAC. Sometimes used for mobile handsets and devices, since parsing MP4FF has been quite demanding memorywise in the past. Some mobile phones that are able to play AACLC or HEAAC support only ADTS.
How can I read the header of an ADTS encoded aac file? I need it to get the buffer length for each frame to read out the whole aac file. But I can't get the right values.