Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: ADTS AAC -> RTP payload (Read 13678 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

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

ADTS AAC -> RTP payload

Reply #1
And, is payload format I used correct?
Thank you.

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.

 

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.

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.

ADTS AAC -> RTP payload

Reply #5
i know this has been a while but does anyone have any AAC depacketization code ?