• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shoutcast stream encoding debug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shoutcast stream encoding debug


  • Subject: Re: shoutcast stream encoding debug
  • From: Ethan Funk <email@hidden>
  • Date: Mon, 04 Apr 2011 17:47:51 -0700

Yep... that fixed it.  I forgot that ADTS packets only have two object type bits, so there is no way to specify AAC-HE, specifically just the underlying AAC-LC, so all the other parameters need to reflect the AAC-LC capabilities, not the HE extension capabilities.

Thanks!

Ethan...

On Apr 4, 2011, at 10:32 AM, Eric Allamanche wrote:


On Apr 2, 2011, at 2:13 PM, Ethan Funk wrote:

VLC wont play it either, and iTunes does (as of some recent version) play aac+ streams... works fine when I send the data encoded with the aacplusenc program, it just won't play it when I use the CoreAudio encoder and with my ADTS packet headers.

Unless I am incorrect that what is commonly called "aacplus" is actually AAC-HEv1 and "aacplusv2" is AAC-HEv2.  If I am wrong, then what is aacplusenc actually doing?  Either the CoreAudio AAC-HE coder is doing something different that aacplusenc or my ADTS header is wrong for AAC-HE packets, but correct for AAC-LC. And I'd bet on it being my error someplace.

Have you verified that the information you're embedding in your ADTS header relates to the AAC-LC core layer and not to the HE extension layer? Here's an example of the different layers of an HE-v2 stream:

- AAC-LC: 220.25kHz, 1 channel ('aac ')
- AAC-HEv1: 44.1kHz, 1 channel ('aach')
- AAC-HEv2: 44.1kHz, 2 channel ('aacp')

Since the ADTS header only describes the LC layer, according to this example, you need to set the sample rate to 22.025kHz and the channel configuration to 1.

Eric

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Fwd: shoutcast stream encoding debug (From: Ethan Funk <email@hidden>)
 >Re: shoutcast stream encoding debug (From: Eric Allamanche <email@hidden>)

  • Prev by Date: Re: AAC hardware encoder in ExtAudioFile
  • Next by Date: Re: Stereo > Mono Downmixing on iOS
  • Previous by thread: Re: shoutcast stream encoding debug
  • Next by thread: kAudioQueueProperty_CurrentLevelMeter broken in Mac OS 10.6.7?
  • Index(es):
    • Date
    • Thread