2013-03-15 60 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