List Info

Thread: A question about sdp




A question about sdp
user name
2008-04-25 04:55:16

Dear all:

I met a question about SDP.

I have licensed real audio decoder source code.

And if I want to decode a .rm file, I have to know some parameters from header, such as flavor index, blocksize, etc.

However, if I want to decode a .rm file from internet, the header will be parsing by RTSP.

And I will get the message like:

a=mimetype:string;"audio/x-pn-realaudio"
a=Helix-Adaptation-Support:1
a=ActualPreroll:integer;4178
a=AvgBitRate:integer;20672
a=AvgPacketSize:integer;600
a=EndOneRuleEndAll:integer;1
a=MaxBitRate:integer;20672
a=MaxPacketSize:integer;600
a=Preroll:integer;8356
a=OpaqueData:buffer;"LnJh/QAFAAAucmE1ZgVhxwAFAAAARgAPAAACWAAKdugAAl2fAAJdnwAJAlgAPAAAAACsRAAArEQAAAAQAAFnZW5yY29vawECAAAAAAAIAQAAAgQAAC8="
a=RMFF 1.0 Flags:buffer;"AAIAAgAA";
a=ASMRuleBook:string;"priority=5,averagebandwidth=20672,PNMKeyFrameRule=T;priority=5,averagebandwidth=0,PNMNonKeyFrameRule=T,OnDepend="0",OffDepend="0";;"
.........

I think the parameter i need to decode .rm file may be hidden in the string after "a=OpaqueData:buffer";

But I don't know how to get the information.

Can anyone give me some clues?

The attached file is the complete stream packet file.


Best Regards,

Hui Wen
********************************************
³¯·u¤å  Hui Wen Chen
Sunplus mMedia Inc.
RD Div. IV
Tel: 03-5799699 ext.6351
E-mail: doghair.chensunplusmm.com
********************************************
  
RE: A question about sdp
country flaguser name
United States
2008-04-25 07:53:37
The OpaqueData field is a base-64 encoded string. So if you
decode this string, it will give you a buffer.

I'm assuming you are using the RealFormat SDK, correct?
If so, then all you need to do is fill in a
rm_stream_header
struct from the SDP and then use this rm_stream_header
to initialize the ra_depack library. The ra_depack library
will do the parsing of the OpaqueData for you.

Any further questions regarding the RealFormat SDK should
be sent to realformat-sdk-devlists.helixcommunity.org
as opposed to helix-client-dev.

Thanks,

Eric

=============================================
Eric Hyche (ehychereal.com)
Technical Lead
RealNetworks, Inc.  

> -----Original Message-----
> From: helix-client-dev-bounceshelixcommunity.org 
> [mailto:helix-client-dev-bounceshelixcommunity.org] On 
> Behalf Of Hui-Wen Chen ???
> Sent: Friday, April 25, 2008 5:55 AM
> To: helix-client-devhelixcommunity.org
> Subject: [Helix-client-dev] A question about sdp
> 
> 
> Dear all: 
> 
> I met a question about SDP. 
> 
> I have licensed real audio decoder source code. 
> 
> And if I want to decode a .rm file, I have to know some

> parameters from header, such as flavor index,
blocksize, etc. 
> 
> However, if I want to decode a .rm file from internet,
the 
> header will be parsing by RTSP. 
> 
> And I will get the message like: 
> 
> a=mimetype:string;"audio/x-pn-realaudio" 
> a=Helix-Adaptation-Support:1 
> a=ActualPreroll:integer;4178 
> a=AvgBitRate:integer;20672 
> a=AvgPacketSize:integer;600 
> a=EndOneRuleEndAll:integer;1 
> a=MaxBitRate:integer;20672 
> a=MaxPacketSize:integer;600 
> a=Preroll:integer;8356 
>
a=OpaqueData:buffer;"LnJh/QAFAAAucmE1ZgVhxwAFAAAARgAPAA
ACWAAKd
>
ugAAl2fAAJdnwAJAlgAPAAAAACsRAAArEQAAAAQAAFnZW5yY29vawECAAAAA
AA
> IAQAAAgQAAC8=" 
> a=RMFF 1.0 Flags:buffer;"AAIAAgAA" 
>
a=ASMRuleBook:string;"priority=5,averagebandwidth=20672
,PNMKey
>
FrameRule=T;priority=5,averagebandwidth=0,PNMNonKeyFrameRule
=T
>
,OnDepend="0",OffDepend="0";" 
> ......... 
> 
> I think the parameter i need to decode .rm file may be
hidden 
> in the string after "a=OpaqueData:buffer"; 
> 
> But I don't know how to get the information. 
> 
> Can anyone give me some clues? 
> 
> The attached file is the complete stream packet file. 
> 
> 
> Best Regards,
> 
> Hui Wen
> ********************************************
> $BDDZvJ8(B  Hui Wen Chen
> Sunplus mMedia Inc.
> RD Div. IV
> Tel: 03-5799699 ext.6351
> E-mail: doghair.chensunplusmm.com
> ******************************************** 
> 


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )