ADTS AAC -> RTP payload, Need info about payload structure |
![]() ![]() |
ADTS AAC -> RTP payload, Need info about payload structure |
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 |
|
|
|
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. |
|
|
|
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. |
|
|
|
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. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 11:25 |