⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tsdpparse.in

📁 著名的 helix realplayer 基于手机 symbian 系统的 播放器全套源代码
💻 IN
📖 第 1 页 / 共 2 页
字号:
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=0\r\na=SdpplinVersion:123456\r\nm=video 42 RTP/AVP 34\r\n"
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=0\r\na=SdpplinVersion:187654321\r\n"


# SdpplinVersion test where version does not match w an m= line
Init 123456
Parse 0x80040017 0 "v=0\r\na=SdpplinVersion:187654321\r\nm=video 42 RTP/AVP 34\r\n"

# length field test
Init 123456
Parse 0x00000000 1 "v=0\r\na=length:10\r\n"
IntCount 0 1
GetInt 0 Duration 10
StringCount 0 0
BufferCount 0 0

# length field propagation test
Init 123456
Parse 0x00000000 2 "v=0\r\na=length:10\r\nm=video 42 RTP/AVP 34\r\n"
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=0\r\na=length:10\r\nm=video 42 RTP/AVP 34\r\na=length:73\r\n"
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=0\r\na=length:10\r\nm=video 42 RTP/AVP 34\r\na=length:73\r\nm=video 44 RTP/AVP 0\r\n"
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=0\r\nm=video 42 RTP/AVP 34\r\na=length:73\r\nm=video 44 RTP/AVP 0\r\n"
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=0\r\na=length:npt=42.234\r\n"
IntCount 0 1
GetInt 0 Duration 42234
StringCount 0 0
BufferCount 0 0

# test invalid range
Init 123456
Parse 0x00000000 1 "v=0\r\na=range:npt=42\r\n"
IntCount 0 0
StringCount 0 0
BufferCount 0 0

# test open ended range
Init 123456
Parse 0x00000000 1 "v=0\r\na=range:npt=0-\r\n"
IntCount 0 1
GetInt 0 Duration 0
StringCount 0 0
BufferCount 0 0

# test open ended range
Init 123456
Parse 0x00000000 1 "v=0\r\na=range:npt=64-\r\n"
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=0\r\na=range:64\r\n"
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=0\r\na=range:npt=-71.98\r\n"
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=0\r\na=range:npt=65.28-71.98\r\n"
IntCount 0 1
GetInt 0 Duration 6700
StringCount 0 0
BufferCount 0 0

# test length before range
Init 123456
Parse 0x00000000 1 "v=0\r\na=length:32\r\na=range:64\r\n"
IntCount 0 1
GetInt 0 Duration 64
StringCount 0 0
BufferCount 0 0

# test range before length
Init 123456
Parse 0x00000000 1 "v=0\r\na=range:32\r\na=length:64\r\n"
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=0\r\na=range:32\r\na=length:64\r\nm=video 42 RTP/AVP 34\r\n"
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=0\r\na=control:rtsp://foobar.com/blah.rm\r\n"
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=0\r\na=anint:integer;100\r\n"
IntCount 0 1
GetInt 0 anint 100
StringCount 0 0
BufferCount 0 0

# test RN string field
Init 123456
Parse 0x00000000 1 "v=0\r\na=astring:string;\"this is a test\"\r\n"
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=0\r\na=abuffer:buffer;\"TWFjIFRWAA==\"\r\n"
IntCount 0 0
StringCount 0 0
BufferCount 0 1
GetBuffer 0 abuffer "4d616320545600"

# test illegal RN buffer field
Init 123456
Parse 0x00000000 1 "v=0\r\na=abuffer:buffer;\"TWFjIFRWAA=\"\r\n"
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=0\r\na=foo:bar;blah\r\n"
IntCount 0 0
StringCount 0 1
GetString 0 SDPData "a=foo:bar;blah\n"
BufferCount 0 0

# test session level "c=" line
Init 123456
Parse 0x00000000 1 "v=0\r\nc=IN IP4 123.231.123.123\r\n"
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=0\r\nm=video 42 RTP/AVP 34\r\nc=IN IP4 123.231.123.123\r\n"
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=0\r\nc=IN IP4 123.231.123.123/10\r\n"
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=0\r\nm=video 42 RTP/AVP 34\r\nc=IN IP4 123.231.123.123/10/3\r\n"
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=0\r\nt=123456 234567\r\n"
IntCount 0 0
StringCount 0 0
BufferCount 0 0

# test session level "b=AS" lines
Init 123456
Parse 0x00000000 1 "v=0\r\nb=AS:100\r\n"
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=0\r\nm=video 42 RTP/AVP 34\r\nb=AS:432\r\n"
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=0\r\nb=RS:1234\r\n"
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=0\r\nb=RR:423\r\n"
IntCount 0 1
GetInt 0 RtcpRRRate 423
StringCount 0 0
BufferCount 0 0

# test session level "i=" line
Init 123456
Parse 0x00000000 1 "v=0\r\ni=this is a test\r\n"
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=0\r\nm=video 42 RTP/AVP 34\r\ni=this is a test\r\n"
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=0\no=- 1061569100 1061569100 IN IP4 172.16.0.99\ns=<No title>\ni=<No author> <No copyright>\nc=IN IP4 0.0.0.0\nt=0 0\na=SdpplinVersion:1610643188\na=Width:integer;662\na=Height:integer;443\na=IsRealDataType:integer;1\na=StreamCount:integer;1\na=range:npt=0-5\nm=application 0 RTP/AVP 101\nb=AS:12\na=control:streamid=0\na=range:npt=0-5\na=length:npt=5\na=rtpmap:101 vnd.rn-gifstream2\na=mimetype:string;\"application/vnd.rn-gifstream2\"\na=RendererFlags:integer;0\na=StartTime:integer;0\na=AvgBitRate:integer;12000\na=StreamVersion:integer;0\na=PreDataAfterSeek:integer;0\na=AvgPacketSize:integer;500\na=PreData:integer;7310\na=PreRollAfterSeek:integer;1\na=Preroll:integer;5114\na=ContentVersion:integer;0\na=PreDataAtStart:integer;1\na=PreRollAtStart:integer;0\na=MaxPacketSize:integer;600\na=MaxBitRate:integer;12000\na=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"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -