tsdpparse.in
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:28k
- # Init <version number>
- # Parse <parse result> <value count> <sdp string>
- # IntCount <value index> <num of int fields>
- # StringCount <value index> <num of string fields>
- # BufferCount <value index> <num of buffer fields>
- # GetInt <value index> <field name> <expected value>
- # GetString <value index> <field name> <expected value>
- # GetBuffer <value index> <field name> <expected value>
- Init 123456
- Parse 0x00000000 1 ""
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- Init 123456
- Parse 0x00000000 1 "nnnv=0"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # Invalid SDP version. Need upgrade
- Init 123456
- Parse 0x80004005 0 "v=1rna=foo:barrn"
- #Parse 0x00000000 1 "v=1rn"
- #IntCount 0 2
- #GetInt 0 LiveStream 1
- #GetInt 0 StreamCount 0
- #StringCount 0 0
- #BufferCount 0 0
- # Invalid SDP version. Need upgrade
- Init 123456
- Parse 0x80004005 0 "v=1rna=foo:barrn"
- # Test flag field
- Init 123456
- Parse 0x00000000 1 "v=0rna=foorn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 SDPData "a=foon"
- BufferCount 0 0
- # Test unknown key/value field
- Init 123456
- Parse 0x00000000 1 "v=0rna=foo:barrn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 SDPData "a=foo:barn"
- BufferCount 0 0
- # o= line
- Init 123456
- Parse 0x00000000 1 "v=0rno=dskjfhrn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # s= line
- Init 123456
- Parse 0x00000000 1 "v=0rns=dskjfhrn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # Test unknown session level line type like "u="
- Init 123456
- Parse 0x00000000 1 "v=0rnu=http://www.foo.com/index.htmlrn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 SDPData "u=http://www.foo.com/index.htmln"
- BufferCount 0 0
- # Test unknown session level line type like "k="
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rnk=uri:http://www.foo.com/thekey.htmlrn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- GetString 1 SDPData "k=uri:http://www.foo.com/thekey.htmln"
- BufferCount 1 0
- # single payload type
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 42 RTP/AVP 0rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 64000
- GetInt 1 Channels 1
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 0
- GetInt 1 RTPTimestampConversionFactor 8
- GetInt 1 SamplesPerSecond 8000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,AverageBandwidth=32000;marker=1,AverageBandwidth=32000;"
- GetString 1 MimeType "audio/PCMU"
- BufferCount 1 0
- # multiple payload types
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 46 RTP/AVP 10 11 0rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 1411200
- GetInt 1 Channels 2
- GetInt 1 HXTimestampConversionFactor 10
- GetInt 1 Port 46
- GetInt 1 RTPPayloadType 10
- GetInt 1 RTPTimestampConversionFactor 441
- GetInt 1 SamplesPerSecond 44100
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,AverageBandwidth=705600;marker=1,AverageBandwidth=705600;"
- GetString 1 MimeType audio/L16
- BufferCount 1 0
- # invalid payload type. Force update
- Init 123456
- Parse 0x80040017 0 "v=0rnm=audio 42 RTP/AVP 20rn"
- # invalid payload type. Force update at next media line
- Init 123456
- Parse 0x80040017 0 "v=0rnm=audio 42 RTP/AVP 20rnm=audio 44 RTP/AVP 0rn"
- # Handle propagation of session level range into media level
- Init 123456
- Parse 0x00000000 2 "v=0rna=range:npt=0-10rnm=audio 42 RTP/AVP 0rn"
- IntCount 0 2
- GetInt 0 Duration 10000
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 64000
- GetInt 1 Channels 1
- GetInt 1 Duration 10000
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 0
- GetInt 1 RTPTimestampConversionFactor 8
- GetInt 1 SamplesPerSecond 8000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,AverageBandwidth=32000;marker=1,AverageBandwidth=32000;"
- GetString 1 MimeType "audio/PCMU"
- BufferCount 1 0
- # Handle GSM hack
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 42 RTP/AVP 3rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 1
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 3
- GetInt 1 RTPTimestampConversionFactor 8
- GetInt 1 SamplesPerSecond 8000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "audio/x-pn-gsm610"
- BufferCount 1 1
- GetBuffer 1 OpaqueData "31000100401f00005906000041000000020040012626"
- # rtpmap field test with encoding only
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 42 RTP/AVP 101rna=rtpmap:101 ABC"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 4
- GetInt 1 AvgBitRate 0
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 101
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "audio/ABC"
- BufferCount 1 0
- # rtpmap field test with encoding and sample rate only
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 42 RTP/AVP 101rna=rtpmap:101 ABC/90000"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 5
- GetInt 1 AvgBitRate 0
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 101
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "audio/ABC"
- BufferCount 1 0
- # rtpmap field test with encoding, sample rate, and channels
- Init 123456
- Parse 0x00000000 2 "v=0rnm=audio 42 RTP/AVP 101rna=rtpmap:101 ABC/90000/2"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 6
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 2
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 101
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "audio/ABC"
- BufferCount 1 0
- # fmtp tests
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=fmtp:34 profile-id=0"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 FMTPprofile-id 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- GetString 1 PayloadParameters "profile-id=0"
- BufferCount 1 0
- # Test partial SDP FMTP chunk
- Init 123456
- Parse 0x00000000 1 "a=fmtp:101 object=2;cpresent=1;config=200013901387"
- IntCount 0 2
- GetInt 0 FMTPobject 2
- GetInt 0 FMTPcpresent 1
- StringCount 0 2
- GetString 0 PayloadParameters "object=2;cpresent=1;config=200013901387"
- GetString 0 FMTPconfig "200013901387"
- BufferCount 0 0
- # Test the case where the fmtp does not match the RTPPayloadType
- Init 123456
- Parse 0x00000000 2 "m=video 42 RTP/AVP 102rna=fmtp:101 object=2;cpresent=1;config=200013901387"
- IntCount 0 2
- GetInt 0 StreamCount 1
- GetInt 0 LiveStream 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 4
- GetInt 1 StreamNumber 0
- GetInt 1 AvgBitRate 0
- GetInt 1 RTPPayloadType 102
- GetInt 1 Port 42
- StringCount 1 1
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- BufferCount 1 0
- # ptime test
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=ptime:5"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 Ptime 5
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # x-bufferdelay test
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=x-bufferdelay:43"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 Preroll 43
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # x-bufferdelay test w/ Preroll present
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=Preroll:integer;64rna=x-bufferdelay:43"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 Preroll 64
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # x-initpredecbufperiod test
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=x-initpredecbufperiod:45000"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 Preroll 500
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # x-initpredecbufperiod test w/ Preroll present
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=Preroll:integer;64rna=x-initpredecbufperiod:43"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 Preroll 64
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # x-predecbufsize test
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=x-predecbufsize:45000"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 x-predecbufsize 45000
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # Unknown field test
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rna=somefield:5rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- GetString 1 SDPData "a=somefield:5n"
- BufferCount 1 0
- # Unknown field test w/ multiple media lines
- Init 123456
- Parse 0x00000000 3 "v=0rnm=video 42 RTP/AVP 34rna=somefield:5rnm=audio 44 RTP/AVP 0rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 2
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- IntCount 2 8
- GetInt 2 AvgBitRate 64000
- GetInt 2 Channels 1
- GetInt 2 HXTimestampConversionFactor 1
- GetInt 2 Port 44
- GetInt 2 RTPPayloadType 0
- GetInt 2 RTPTimestampConversionFactor 8
- GetInt 2 SamplesPerSecond 8000
- GetInt 2 StreamNumber 1
- StringCount 2 2
- GetString 2 ASMRuleBook "marker=0,AverageBandwidth=32000;marker=1,AverageBandwidth=32000;"
- GetString 2 MimeType "audio/PCMU"
- BufferCount 2 0
- # SdpplinVersion test where version matches
- Init 123456
- Parse 0x00000000 2 "v=0rna=SdpplinVersion:123456rnm=video 42 RTP/AVP 34rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # SdpplinVersion test where version does not match w/o an m= line
- Init 123456
- Parse 0x80040017 0 "v=0rna=SdpplinVersion:187654321rn"
- # SdpplinVersion test where version does not match w an m= line
- Init 123456
- Parse 0x80040017 0 "v=0rna=SdpplinVersion:187654321rnm=video 42 RTP/AVP 34rn"
- # length field test
- Init 123456
- Parse 0x00000000 1 "v=0rna=length:10rn"
- IntCount 0 1
- GetInt 0 Duration 10
- StringCount 0 0
- BufferCount 0 0
- # length field propagation test
- Init 123456
- Parse 0x00000000 2 "v=0rna=length:10rnm=video 42 RTP/AVP 34rn"
- IntCount 0 2
- GetInt 0 Duration 10
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 Duration 10
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 0 0
- # length field override test
- Init 123456
- Parse 0x00000000 2 "v=0rna=length:10rnm=video 42 RTP/AVP 34rna=length:73rn"
- IntCount 0 2
- GetInt 0 Duration 10
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 Duration 73
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # length field override propagation test
- Init 123456
- Parse 0x00000000 3 "v=0rna=length:10rnm=video 42 RTP/AVP 34rna=length:73rnm=video 44 RTP/AVP 0rn"
- IntCount 0 2
- GetInt 0 Duration 10
- GetInt 0 StreamCount 2
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 Duration 73
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- IntCount 2 9
- GetInt 2 AvgBitRate 64000
- GetInt 2 Channels 1
- GetInt 2 Duration 10
- GetInt 2 HXTimestampConversionFactor 1
- GetInt 2 Port 44
- GetInt 2 RTPPayloadType 0
- GetInt 2 RTPTimestampConversionFactor 8
- GetInt 2 SamplesPerSecond 8000
- GetInt 2 StreamNumber 1
- StringCount 2 2
- GetString 2 ASMRuleBook "marker=0,AverageBandwidth=32000;marker=1,AverageBandwidth=32000;"
- GetString 2 MimeType "audio/PCMU"
- BufferCount 1 0
- # length field propagation test. The length from the first stream is
- # propagated to the second stream
- Init 123456
- Parse 0x00000000 3 "v=0rnm=video 42 RTP/AVP 34rna=length:73rnm=video 44 RTP/AVP 0rn"
- IntCount 0 1
- GetInt 0 StreamCount 2
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 Duration 73
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- IntCount 2 9
- GetInt 2 AvgBitRate 64000
- GetInt 2 Channels 1
- GetInt 2 Duration 73
- GetInt 2 HXTimestampConversionFactor 1
- GetInt 2 Port 44
- GetInt 2 RTPPayloadType 0
- GetInt 2 RTPTimestampConversionFactor 8
- GetInt 2 SamplesPerSecond 8000
- GetInt 2 StreamNumber 1
- StringCount 2 2
- GetString 2 ASMRuleBook "marker=0,AverageBandwidth=32000;marker=1,AverageBandwidth=32000;"
- GetString 2 MimeType "audio/PCMU"
- BufferCount 2 0
- # length field test using npt
- Init 123456
- Parse 0x00000000 1 "v=0rna=length:npt=42.234rn"
- IntCount 0 1
- GetInt 0 Duration 42234
- StringCount 0 0
- BufferCount 0 0
- # test invalid range
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:npt=42rn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # test open ended range
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:npt=0-rn"
- IntCount 0 1
- GetInt 0 Duration 0
- StringCount 0 0
- BufferCount 0 0
- # test open ended range
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:npt=64-rn"
- IntCount 0 1
- GetInt 0 Duration 0
- StringCount 0 0
- BufferCount 0 0
- # test range that is not in npt form
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:64rn"
- IntCount 0 1
- GetInt 0 Duration 64
- StringCount 0 0
- BufferCount 0 0
- # test range with no start value
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:npt=-71.98rn"
- IntCount 0 1
- GetInt 0 Duration 71980
- StringCount 0 0
- BufferCount 0 0
- # test range with a start and end value
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:npt=65.28-71.98rn"
- IntCount 0 1
- GetInt 0 Duration 6700
- StringCount 0 0
- BufferCount 0 0
- # test length before range
- Init 123456
- Parse 0x00000000 1 "v=0rna=length:32rna=range:64rn"
- IntCount 0 1
- GetInt 0 Duration 64
- StringCount 0 0
- BufferCount 0 0
- # test range before length
- Init 123456
- Parse 0x00000000 1 "v=0rna=range:32rna=length:64rn"
- IntCount 0 1
- GetInt 0 Duration 64
- StringCount 0 0
- BufferCount 0 0
- # test range before length with propagation
- Init 123456
- Parse 0x00000000 2 "v=0rna=range:32rna=length:64rnm=video 42 RTP/AVP 34rn"
- IntCount 0 2
- GetInt 0 Duration 64
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 9
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 Duration 32
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # test control field
- Init 123456
- Parse 0x00000000 1 "v=0rna=control:rtsp://foobar.com/blah.rmrn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 Control "rtsp://foobar.com/blah.rm"
- BufferCount 0 0
- # test RN integer field
- Init 123456
- Parse 0x00000000 1 "v=0rna=anint:integer;100rn"
- IntCount 0 1
- GetInt 0 anint 100
- StringCount 0 0
- BufferCount 0 0
- # test RN string field
- Init 123456
- Parse 0x00000000 1 "v=0rna=astring:string;"this is a test"rn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 astring "this is a test"
- BufferCount 0 0
- # test RN buffer field
- Init 123456
- Parse 0x00000000 1 "v=0rna=abuffer:buffer;"TWFjIFRWAA=="rn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 1
- GetBuffer 0 abuffer "4d616320545600"
- # test illegal RN buffer field
- Init 123456
- Parse 0x00000000 1 "v=0rna=abuffer:buffer;"TWFjIFRWAA="rn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # test a field with a ';' it but is not an RN field
- Init 123456
- Parse 0x00000000 1 "v=0rna=foo:bar;blahrn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 SDPData "a=foo:bar;blahn"
- BufferCount 0 0
- # test session level "c=" line
- Init 123456
- Parse 0x00000000 1 "v=0rnc=IN IP4 123.231.123.123rn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 MulticastAddress "123.231.123.123"
- BufferCount 0 0
- # test media level "c=" line
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rnc=IN IP4 123.231.123.123rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- GetString 1 MulticastAddress "123.231.123.123"
- BufferCount 1 0
- # test session level "c=" line with TTL
- Init 123456
- Parse 0x00000000 1 "v=0rnc=IN IP4 123.231.123.123/10rn"
- IntCount 0 1
- GetInt 0 MulticastTTL 10
- StringCount 0 1
- GetString 0 MulticastAddress "123.231.123.123"
- BufferCount 0 0
- # test media level "c=" line with TTL and address range
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rnc=IN IP4 123.231.123.123/10/3rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 10
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 MulticastRange 3
- GetInt 1 MulticastTTL 10
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 MimeType "video/H263"
- GetString 1 MulticastAddress "123.231.123.123"
- BufferCount 1 0
- # test "t=" lines. We don't really care about these lines
- Init 123456
- Parse 0x00000000 1 "v=0rnt=123456 234567rn"
- IntCount 0 0
- StringCount 0 0
- BufferCount 0 0
- # test session level "b=AS" lines
- Init 123456
- Parse 0x00000000 1 "v=0rnb=AS:100rn"
- IntCount 0 1
- GetInt 0 AvgBitRate 100000
- StringCount 0 0
- BufferCount 0 0
- # test media level "b=AS" lines
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rnb=AS:432rn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 432000
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 2
- GetString 1 ASMRuleBook "marker=0,AverageBandwidth=216000;marker=1,AverageBandwidth=216000;"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # test session level "b=RS" lines
- Init 123456
- Parse 0x00000000 1 "v=0rnb=RS:1234rn"
- IntCount 0 1
- GetInt 0 RtcpRSRate 1234
- StringCount 0 0
- BufferCount 0 0
- # test session level "b=RR" lines
- Init 123456
- Parse 0x00000000 1 "v=0rnb=RR:423rn"
- IntCount 0 1
- GetInt 0 RtcpRRRate 423
- StringCount 0 0
- BufferCount 0 0
- # test session level "i=" line
- Init 123456
- Parse 0x00000000 1 "v=0rni=this is a testrn"
- IntCount 0 0
- StringCount 0 1
- GetString 0 Information "this is a test"
- BufferCount 0 0
- # test media level "i=" line
- Init 123456
- Parse 0x00000000 2 "v=0rnm=video 42 RTP/AVP 34rni=this is a testrn"
- IntCount 0 2
- GetInt 0 LiveStream 1
- GetInt 0 StreamCount 1
- StringCount 0 0
- BufferCount 0 0
- IntCount 1 8
- GetInt 1 AvgBitRate 0
- GetInt 1 Channels 0
- GetInt 1 HXTimestampConversionFactor 1
- GetInt 1 Port 42
- GetInt 1 RTPPayloadType 34
- GetInt 1 RTPTimestampConversionFactor 90
- GetInt 1 SamplesPerSecond 90000
- GetInt 1 StreamNumber 0
- StringCount 1 3
- GetString 1 ASMRuleBook "marker=0,timestampdelivery=1;marker=1,timestampdelivery=1;"
- GetString 1 Information "this is a test"
- GetString 1 MimeType "video/H263"
- BufferCount 1 0
- # test a case where there are 'n' characters in a quoted string. This
- # case was taken from a RealServer that put 'n' characters in the ASMRuleBook
- # field
- Init 1610643188
- Parse 0x00000000 2 "v=0no=- 1061569100 1061569100 IN IP4 172.16.0.99ns=<No title>ni=<No author> <No copyright>nc=IN IP4 0.0.0.0nt=0 0na=SdpplinVersion:1610643188na=Width:integer;662na=Height:integer;443na=IsRealDataType:integer;1na=StreamCount:integer;1na=range:npt=0-5nm=application 0 RTP/AVP 101nb=AS:12na=control:streamid=0na=range:npt=0-5na=length:npt=5na=rtpmap:101 vnd.rn-gifstream2na=mimetype:string;"application/vnd.rn-gifstream2"na=RendererFlags:integer;0na=StartTime:integer;0na=AvgBitRate:integer;12000na=StreamVersion:integer;0na=PreDataAfterSeek:integer;0na=AvgPacketSize:integer;500na=PreData:integer;7310na=PreRollAfterSeek:integer;1na=Preroll:integer;5114na=ContentVersion:integer;0na=PreDataAtStart:integer;1na=PreRollAtStart:integer;0na=MaxPacketSize:integer;600na=MaxBitRate:integer;12000na=OpaqueData:buffer;"AAAAAAAA////AAAAAAAAbQAAAAEAAAASAAAcb0dJRjg5YZYCuwHEAAD////MzMwAAACZmZkAZplkkbZmZmYzZpn/tIz/xaji5+tHREWWsMLO197/oEKxsrMiGRfb4eYEfcT/4dMjHyA9hrESUHcYQFkHcK7t8fTo7O//8uUzMzMAAAAAAAAAAAAh+QQAAAAAACwAAAAAlgK7AQBA"na=ASMRuleBook:string;"AverageBandwidth=12000,nPriority=5;nAverageBandwidth=0,nPriority=9;"n"
- IntCount 0 5
- GetInt 0 Duration 5000
- GetInt 0 Height 443
- GetInt 0 IsRealDataType 1
- GetInt 0 StreamCount 1
- GetInt 0 Width 662
- StringCount 0 2
- GetString 0 "Information" "<No author> <No copyright>"
- GetString 0 "MulticastAddress" "0.0.0.0"
- BufferCount 0 0
- IntCount 1 17
- GetInt 1 AvgBitRate 12000
- GetInt 1 AvgPacketSize 500
- GetInt 1 ContentVersion 0
- GetInt 1 Duration 5000
- GetInt 1 MaxBitRate 12000
- GetInt 1 MaxPacketSize 600
- GetInt 1 PreData 7310
- GetInt 1 PreDataAfterSeek 0
- GetInt 1 PreDataAtStart 1
- GetInt 1 Preroll 5114
- GetInt 1 PreRollAfterSeek 1
- GetInt 1 PreRollAtStart 0
- GetInt 1 RendererFlags 0
- GetInt 1 RTPPayloadType 101
- GetInt 1 StartTime 0
- GetInt 1 StreamNumber 0
- GetInt 1 StreamVersion 0
- StringCount 1 3
- GetString 1 "ASMRuleBook" "AverageBandwidth=12000,nPriority=5;nAverageBandwidth=0,nPriority=9;"
- GetString 1 "Control" "streamid=0"
- GetString 1 "MimeType" "application/vnd.rn-gifstream2"
- BufferCount 1 1
- GetBuffer 1 "OpaqueData" "000000000000ffffff0000000000006d000000010000001200001c6f4749463839619602bb01c40000ffffffcccccc0000009999990066996491b6666666336699ffb48cffc5a8e2e7eb47444596b0c2ced7deffa042b1b2b3221917dbe1e6047dc4ffe1d3231f203d86b11250771840590770aeedf1f4e8eceffff2e533333300000000000000000021f90400000000002c000000009602bb010040"