2013-03-15 100 views
0

我是新手,需要你的帮助。我有一个如下所示的SIP标题,这对我来说很奇怪@@请告诉我这是哪种媒体及其属性。你好。 (抱歉,因为我不擅长英语:()通过SIP的媒体格式?

b=AS:512 
t=0 0 
m=audio 49198 RTP/AVP 115 102 9 15 0 8 s18 106 99 101 
a=rtpmap:115 G7221/32000 
a=fmtp:115 bitratg=48000 
a=rtpmap:102 G7221/16000 
a=fmtp:102 bitrate=32000 
a=rtpmap:9 G722/8000 
a=rtpmap:15 G728/8000 
a=rtpmap:0 PCMU/8000 
a=rtpmap:8 PCMA/8000 
a=rtpmap:18 G729/8000 
a=fmtp:18 annexb=no 
a=rtpmap:106 SIREN22/48000 
a=fmtp:106 bitrate=64000 
a=rtpmap:99 SIREN14/16000 
a=fmtp:99 bitrate=48000 
a=rtpmap:101 telephone-event/8000 
a=fmtp:101 0-15 
a=sendrecv 
m=video 49200 RTP/AVP 109 110 111 96 34 31 
b=TIAS:512000 
a=content:main 
a=label:1 
a=rtpmap:109 H264/90000 
a=fmtp:10= profile-level-id=42801f; max-mbps=108000; max-fs=3600; sar=13 
a=rtpmap:110 H264/90000 
a=fmtp:110 profile-level-id=42801f; packetization-mode=1; max-mbps=108000; max-fs=3600; sar=13 
a=rtpmap:111 H264/90000 
a=fmtp:111 profile-level-id=64001f; packetization-mode=1; max-mbps=108000; max-fs=3600; sar=13 
a=rtpmap:96 H263-1998/90000 
a=fmtp:96 CIF=1;QCIF=1;SQCIF=1;J;T 
a=rtpmap:34 H263/90000 
a=fmtp:34 CIF=1;QCIF=1;SQCIF=1 
a=rtpmap:31 H261/90000 
a=fmtp:31 CIF=1;QCIF=1 
a=sendrecv 
VideoMode:9 
+1

有什么奇怪的呢? – 2013-03-15 07:18:04

回答

2

只是看看http://tools.ietf.org/html/rfc4566 - 它描述了每一个领域与m=...线,定义可用编解码器列表开始,然后检查a=...。他们每个人找出哪些编解码器是(a=rtpmap:)什么参数,它使用(a=fmp:)。

+0

谢谢。我已经解决了我的问题 – 2013-03-15 10:02:48

+0

@viraptor你能解释一下'a = rtpmap'和'a = fmtp'。它们在SDP包中有什么意义? – roottraveller 2016-02-17 08:41:22

+0

@rkm_Hodor这一切都在文档中:https://tools.ietf.org/html/rfc4566#section-8.2.3 – viraptor 2016-02-18 00:00:27

0

的SDP的格式不正确的,因为

m=audio 49198 RTP/AVP 115 102 9 15 0 8 s18 106 99 101 
             ^^^ - this isn't a number 

虽然m=行中的格式仅定义为令牌,因为它使用RTP/AVP概要文件,但这些格式为MUST be payload type numbers

+0

感谢您的帮助:D – 2013-03-16 03:07:57

+0

只需删除s,它很好地与“a”定义。 – 11101101b 2013-07-23 19:57:33

+0

我不知道你是什么意思。 – 2013-07-24 05:24:16