IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
ADTS AAC -> RTP payload, Need info about payload structure
Silvmike
post Sep 4 2010, 11:43
Post #1





Group: Members
Posts: 3
Joined: 4-September 10
Member No.: 83600



Hello!

I have an ADTS AAC stream and I want to packetize it into RTP,
but I don't know a structure of payload (payload-type = 96) for AAC (I want to packetize it into RTP to play via RTSP client,
which supports only "AAC-hbr" mode).

RFC-3640 tells that the structure of RTP (for AAC-hbr) MUST contain RTP-header (12 bytes),
AU-header (2 bytes: 13 bits = length of frame, 3 bits = AU-Index(-delta)) preceeded by AU-header-length (2 bytes),
and RTP payload (data section).

I used AAC frame without ADTS-header (skipping 7 (in case of protection is absent) or 9 (in other case) bytes of header) as payload,
but player didn't play it.

And my question: How to pack AAC-frame from ADTS into RTP to play it?

Please help me.
Thank you.

P.S.
SDP:
v=0
o=StreamingServer 12345678 1122971361000 IN IP4 <ip>
s=/file.3gp
u=http:///
e=admin@
c=IN IP4 0.0.0.0
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/44100/2
a=fmtp:96 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=<config>; constantDuration=1024
a=control:trackID=2

This post has been edited by Silvmike: Sep 4 2010, 12:10
Go to the top of the page
+Quote Post
Silvmike
post Sep 4 2010, 13:32
Post #2





Group: Members
Posts: 3
Joined: 4-September 10
Member No.: 83600



And, is payload format I used correct?
Thank you.
Go to the top of the page
+Quote Post
Silvmike
post Sep 11 2010, 14:37
Post #3





Group: Members
Posts: 3
Joined: 4-September 10
Member No.: 83600



Hello.

I've found an answer to my question.
Payload I used was correct, I've found an error in my code)).

Thanx.
Go to the top of the page
+Quote Post
raghubh
post Oct 7 2011, 18:38
Post #4





Group: Members
Posts: 4
Joined: 7-October 11
Member No.: 94215



Hi,
I am looking for aac RTP packetization source code or document, any help is appreciated.

Thanks in advance.

Regards,
Raghu.
Go to the top of the page
+Quote Post
Darisa
post May 7 2014, 08:06
Post #5





Group: Members
Posts: 1
Joined: 7-May 14
Member No.: 115952



Hi,
Can you share the source code or any document which you prepared for this AAC RTP packetization. I am using mpeg4-generic mime type in my code.
I hope some useful info you share.
Thanks in advance.
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: 28th December 2014 - 19:12