Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
sending aac via rtp, how to make a reliable sdp ?
post May 30 2013, 14:42
Post #1

Group: Members
Posts: 1
Joined: 30-May 13
Member No.: 108388

Hi everyone,

I want to stream AAC audio via RTP from iOS. To achieve this project I'm reading my audio from a file. I configured my encoder like this :

    audio.mDataFormat.mSampleRate = 22050;
    audio.mDataFormat.mFormatID = kAudioFormatMPEG4AAC;
    audio.mDataFormat.mFormatFlags = kMPEG4Object_AAC_Main;
    audio.mDataFormat.mBytesPerPacket = 0; // 0 for VBR
    audio.mDataFormat.mFramesPerPacket = 1024;
    audio.mDataFormat.mBytesPerFrame = 0; // 0 for compressed format
    audio.mDataFormat.mChannelsPerFrame = 1;
    audio.mDataFormat.mBitsPerChannel = 0; // 0 for compressed format
    AudioFileTypeID fileType = kAudioFileAAC_ADTSType;

My file in ADTS has weird headers like this : 0xff 0xf9 0x5c 0x60 0x17 0xa0 0x0. According to this it's MPEG-2 version instead of MPEG-4 huh.gif

So i gone to http://tools.ietf.org/html/draft-ietf-avt-rtp-mpeg2aac-02 in order to make valid RTP headers + payloads packets but I still can't read the stream without a valid SDP file. How can I make it ?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 25th November 2015 - 17:39