Skip to main content

Topic: ADTS AAC -> RTP payload (Read 9376 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Silvmike
  • [*]
ADTS AAC -> RTP payload
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
  • Last Edit: 04 September, 2010, 07:10:53 AM by Silvmike

  • Silvmike
  • [*]
ADTS AAC -> RTP payload
Reply #1
And, is payload format I used correct?
Thank you.

  • Silvmike
  • [*]
ADTS AAC -> RTP payload
Reply #2
Hello.

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

Thanx.

  • raghubh
  • [*]
ADTS AAC -> RTP payload
Reply #3
Hi,
        I am looking for aac RTP packetization source code or document, any help is appreciated.

Thanks in advance.

Regards,
Raghu.

  • Darisa
  • [*]
ADTS AAC -> RTP payload
Reply #4
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.

  • eloade
  • [*]
ADTS AAC -> RTP payload
Reply #5
i know this has been a while but does anyone have any AAC depacketization code ?