Streaming AAC audio from a RTSP source
Streaming AAC audio from a RTSP source
- Subject: Streaming AAC audio from a RTSP source
- From: Frank Vernon <email@hidden>
- Date: Sun, 22 Jul 2012 17:54:02 -0600
Hi-
I'm looking for some advice on playing streaming AAC audio via RTSP on iOS from a webcam. Hopefully someone has done this before and can point out my mistake. I have been successfully using the RTSP support in the Live555 libraries with uLaw encoded audio for some time and am now trying to do the same for AAC on a different camera.
I am attempting to do this via the iOS Audio File Stream APIs (AudioFileStreamOpen/AudioFileStreamParseBytes). First, can anyone tell me if this is the correct way to do this? I assume once I receive the AAC frames from the Live555 RTSP sink class that the data still needs to be parsed to AAC packets and that the audio file stream API is the way to do that.
Unfortunately, AudioFileStreamParseBytes is not correctly finding AAC packets and/or properties in the data so I never get actual AAC packets to play. This is fairly frustrating as AudioFileStreamParseBytes does not generate any errors to let me know what I might be doing wrong. Can anyone point me ways to debug this?
I am assuming that the data from the Live555 utility routine parseGeneralConfigStr is returning the so-called Magic Cookie data that AAC decoders need. As this is apparently stripped out of the stream early by the Live555 libraries and iOS Audio File Stream APIs expect to find it in the stream how do I hand this off to iOS Audio File Stream APIs?
Are there any byte order issues I need to address for the ARM platform when handing off the data from the RTSP stream to the Audio File Stream APIs?
Thanks-
Frank Vernon
_______________________________________________
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