rtsp取流流程:
OPTIONS rtsp:
//10
.7.36.222:554
/Streaming/Channels/101
?transportmode=unicast&profile=Profile_1 RTSP
/1
.0
CSeq: 2
User-Agent: LIVE555 Streaming Media v2013.02.11
RTSP
/1
.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
Date: Tue, Jun 14 2016 20:24:15 GMT
DESCRIBE rtsp:
//10
.7.36.222:554
/Streaming/Channels/101
?transportmode=unicast&profile=Profile_1 RTSP
/1
.0
CSeq: 3
User-Agent: LIVE555 Streaming Media v2013.02.11
Accept: application
/sdp
RTSP
/1
.0 401 Unauthorized
CSeq: 3
WWW-Authenticate: Digest realm=
"2857be2d7a59"
, nonce=
"035b16a6435f6cd4711bf4d9ab7bc6dc"
, stale=
"FALSE"
WWW-Authenticate: Basic realm=
"2857be2d7a59"
Date: Tue, Jun 14 2016 20:24:15 GMT
DESCRIBE rtsp:
//10
.7.36.222:554
/Streaming/Channels/101
?transportmode=unicast&profile=Profile_1 RTSP
/1
.0
CSeq: 4
Authorization: Digest username=
"admin"
, realm=
"2857be2d7a59"
, nonce=
"035b16a6435f6cd4711bf4d9ab7bc6dc"
, uri=
"rtsp://10.7.36.222:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1"
, response=
"97b478326058cdcc44e0345e7f224d88"
User-Agent: LIVE555 Streaming Media v2013.02.11
Accept: application
/sdp
RTSP
/1
.0 200 OK
CSeq: 4
Content-Type: application
/sdp
Content-Base: rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/
Content-Length: 707
v
=0
o=- 1465935855045660 1465935855045660 IN IP4 10.7.36.222
s=Media Presentation
e=NONE
b=AS:5050
t=0 0
a=control:rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/
?transportmode=unicast&profile=Profile_1
m=video 0 RTP
/AVP
96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:1280,720
a=control:rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/trackID
=1?transportmode=unicast&profile=Profile_1
a=rtpmap:96 H264
/90000
a=fmtp:96 profile-level-
id
=420029; packetization-mode=1; sprop-parameter-sets=Z00AH5plAoAt
/4C1AQEBQAAA
+gAAMNQ6GAA
/zgAA/zSu8uNDAAf5wAAf5pXeXCg
=,aO48gA==
a=Media_header:MEDIAINFO=494D4B48010100000400010000000000000000000000000000000000000000000000000000000000;
a=appversion:1.0
SETUP rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/trackID
=1?transportmode=unicast&profile=Profile_1 RTSP
/1
.0
CSeq: 5
Authorization: Digest username=
"admin"
, realm=
"2857be2d7a59"
, nonce=
"035b16a6435f6cd4711bf4d9ab7bc6dc"
, uri=
"rtsp://10.7.36.222:554/Streaming/Channels/101/"
, response=
"29bf4aa9cf8a03a9f74389cdcfa6f958"
User-Agent: LIVE555 Streaming Media v2013.02.11
Transport: RTP
/AVP/TCP
;unicast;interleaved=0-1
RTSP
/1
.0 200 OK
CSeq: 5
Session: 1109141164;timeout=60
Transport: RTP
/AVP/TCP
;unicast;interleaved=0-1;ssrc=58fa9010;mode=
"play"
Date: Tue, Jun 14 2016 20:24:15 GMT
PLAY rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/
?transportmode=unicast&profile=Profile_1 RTSP
/1
.0
CSeq: 6
Authorization: Digest username=
"admin"
, realm=
"2857be2d7a59"
, nonce=
"035b16a6435f6cd4711bf4d9ab7bc6dc"
, uri=
"rtsp://10.7.36.222:554/Streaming/Channels/101/"
, response=
"670f09199ee1f39679b54c1fb41108ae"
User-Agent: LIVE555 Streaming Media v2013.02.11
Session: 1109141164
Range: npt=0.000-
RTSP
/1
.0 200 OK
CSeq: 6
Session: 1109141164
RTP-Info: url=rtsp:
//10
.7.36.222:554
/Streaming/Channels/101/trackID
=1?transportmode=unicast&profile=Profile_1;
seq
=30683;rtptime=984527520
Date: Tue, Jun 14 2016 20:24:15 GMT
|
ipc组播报文地址:239.255.255.250:3702
/Uuid
>
/Types
>
/DeviceType
>
/DeviceDescription
>
/DeviceSN
>
/CommandPort
>
/HttpPort
>
/MAC
>
/IPv4Address
>
/IPv4SubnetMask
>
/IPv4Gateway
>
/IPv6Address
>
/IPv6Gateway
>
/IPv6MaskLen
>
false
<
/DHCP
>
/AnalogChannelNum
>
/DigitalChannelNum
>
/SoftwareVersion
>
/DSPVersion
>
/BootTime
>
false
<
/ResetAbility
>
/DiskNumber
>
true
<
/Activated
>
true
<
/PasswordResetAbility
>
<
/ProbeMatch
>
|
注:海康ipc组播报文(一直在发送的)中不含有设备webserver地址
GetScopes:
POST
/onvif/device_service
HTTP
/1
.1
Content-Type: application
/soap
+xml; charset=utf-8; action=
"http://www.onvif.org/ver10/device/wsdl/GetScopes"
Host: 10.7.36.222
Content-Length: 905
Accept-Encoding:
gzip
, deflate
Connection: Close
HTTP
/1
.1 200 OK
Content-Type: application
/soap
+xml; charset=utf-8
Content-Length:2922
<
env
:Envelope xmlns:
env
=
"http://www.w3.org/2003/05/soap-envelope"
xmlns:soapenc=
"http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:tt=
"http://www.onvif.org/ver10/schema"
xmlns:tds=
"http://www.onvif.org/ver10/device/wsdl"
xmlns:trt=
"http://www.onvif.org/ver10/media/wsdl"
xmlns:timg=
"http://www.onvif.org/ver20/imaging/wsdl"
xmlns:tev=
"http://www.onvif.org/ver10/events/wsdl"
xmlns:tptz=
"http://www.onvif.org/ver20/ptz/wsdl"
xmlns:tan=
"http://www.onvif.org/ver20/analytics/wsdl"
xmlns:tst=
"http://www.onvif.org/ver10/storage/wsdl"
xmlns:ter=
"http://www.onvif.org/ver10/error"
xmlns:dn=
"http://www.onvif.org/ver10/network/wsdl"
xmlns:tns1=
"http://www.onvif.org/ver10/topics"
xmlns:tmd=
"http://www.onvif.org/ver10/deviceIO/wsdl"
xmlns:wsdl=
"http://schemas.xmlsoap.org/wsdl"
xmlns:wsoap12=
"http://schemas.xmlsoap.org/wsdl/soap12"
xmlns:http=
"http://schemas.xmlsoap.org/wsdl/http"
xmlns:d=
"http://schemas.xmlsoap.org/ws/2005/04/discovery"
xmlns:wsadis=
"http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsnt=
"http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa=
"http://www.w3.org/2005/08/addressing"
xmlns:wstop=
"http://docs.oasis-open.org/wsn/t-1"
xmlns:wsrf-bf=
"http://docs.oasis-open.org/wsrf/bf-2"
xmlns:wsntw=
"http://docs.oasis-open.org/wsn/bw-2"
xmlns:wsrf-rw=
"http://docs.oasis-open.org/wsrf/rw-2"
xmlns:wsaw=
"http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsrf-r=
"http://docs.oasis-open.org/wsrf/r-2"
xmlns:trc=
"http://www.onvif.org/ver10/recording/wsdl"
xmlns:tse=
"http://www.onvif.org/ver10/search/wsdl"
xmlns:trp=
"http://www.onvif.org/ver10/replay/wsdl"
xmlns:tnshik=
"http://www.hikvision.com/2011/event/topics"
xmlns:hikwsd=
"http://www.onvifext.com/onvif/ext/ver10/wsdl"
xmlns:hikxsd=
"http://www.onvifext.com/onvif/ext/ver10/schema"
><
env
:Body>
/tt
:ScopeDef>
//www
.onvif.org
/type/video_encoder
<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/Profile/Streaming
<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/Profile/G
<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/type/audio_encoder
<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/hardware/DS-2CD2122FWD-IWS
<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/name/HIKVISION
%20DS-2CD2122FWD-IWS<
/tt
:ScopeItem>
<
/tds
:Scopes>
/tt
:ScopeDef>
//www
.onvif.org
/location/city/hangzhou
<
/tt
:ScopeItem>
<
/tds
:Scopes>
<
/tds
:GetScopesResponse>
<
/env
:Body>
<
/env
:Envelope>
|
GetDeviceInformation:
POST
/onvif/device_service
HTTP
/1
.1
Content-Type: application
/soap
+xml; charset=utf-8; action=
"http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation"
Host: 10.7.36.222
Content-Length: 916
Accept-Encoding:
gzip
, deflate
Connection: Close
HTTP
/1
.1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 2256
Content-Type: application
/soap
+xml; charset=utf-8
<
env
:Envelope xmlns:
env
=
"http://www.w3.org/2003/05/soap-envelope"
xmlns:soapenc=
"http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:tt=
"http://www.onvif.org/ver10/schema"
xmlns:tds=
"http://www.onvif.org/ver10/device/wsdl"
xmlns:trt=
"http://www.onvif.org/ver10/media/wsdl"
xmlns:timg=
"http://www.onvif.org/ver20/imaging/wsdl"
xmlns:tev=
"http://www.onvif.org/ver10/events/wsdl"
xmlns:tptz=
"http://www.onvif.org/ver20/ptz/wsdl"
xmlns:tan=
"http://www.onvif.org/ver20/analytics/wsdl"
xmlns:tst=
"http://www.onvif.org/ver10/storage/wsdl"
xmlns:ter=
"http://www.onvif.org/ver10/error"
xmlns:dn=
"http://www.onvif.org/ver10/network/wsdl"
xmlns:tns1=
"http://www.onvif.org/ver10/topics"
xmlns:tmd=
"http://www.onvif.org/ver10/deviceIO/wsdl"
xmlns:wsdl=
"http://schemas.xmlsoap.org/wsdl"
xmlns:wsoap12=
"http://schemas.xmlsoap.org/wsdl/soap12"
xmlns:http=
"http://schemas.xmlsoap.org/wsdl/http"
xmlns:d=
"http://schemas.xmlsoap.org/ws/2005/04/discovery"
xmlns:wsadis=
"http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsnt=
"http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa=
"http://www.w3.org/2005/08/addressing"
xmlns:wstop=
"http://docs.oasis-open.org/wsn/t-1"
xmlns:wsrf-bf=
"http://docs.oasis-open.org/wsrf/bf-2"
xmlns:wsntw=
"http://docs.oasis-open.org/wsn/bw-2"
xmlns:wsrf-rw=
"http://docs.oasis-open.org/wsrf/rw-2"
xmlns:wsaw=
"http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsrf-r=
"http://docs.oasis-open.org/wsrf/r-2"
xmlns:trc=
"http://www.onvif.org/ver10/recording/wsdl"
xmlns:tse=
"http://www.onvif.org/ver10/search/wsdl"
xmlns:trp=
"http://www.onvif.org/ver10/replay/wsdl"
xmlns:tnshik=
"http://www.hikvision.com/2011/event/topics"
xmlns:hikwsd=
"http://www.onvifext.com/onvif/ext/ver10/wsdl"
xmlns:hikxsd=
"http://www.onvifext.com/onvif/ext/ver10/schema"
><
env
:Body>
/tds
:Manufacturer>
/tds
:Model>
/tds
:FirmwareVersion>
/tds
:SerialNumber>
/tds
:HardwareId>
<
/tds
:GetDeviceInformationResponse>
<
/env
:Body>
<
/env
:Envelope>
|
GetNetworkInterfaces:
POST
/onvif/device_service
HTTP
/1
.1
Content-Type: application
/soap
+xml; charset=utf-8; action=
"http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces"
Host: 10.7.36.222
Content-Length: 916
Accept-Encoding:
gzip
, deflate
Connection: Close
HTTP
/1
.1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 3564
Content-Type: application
/soap
+xml; charset=utf-8
<
env
:Envelope xmlns:
env
=
"http://www.w3.org/2003/05/soap-envelope"
xmlns:soapenc=
"http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:tt=
"http://www.onvif.org/ver10/schema"
xmlns:tds=
"http://www.onvif.org/ver10/device/wsdl"
xmlns:trt=
"http://www.onvif.org/ver10/media/wsdl"
xmlns:timg=
"http://www.onvif.org/ver20/imaging/wsdl"
xmlns:tev=
"http://www.onvif.org/ver10/events/wsdl"
xmlns:tptz=
"http://www.onvif.org/ver20/ptz/wsdl"
xmlns:tan=
"http://www.onvif.org/ver20/analytics/wsdl"
xmlns:tst=
"http://www.onvif.org/ver10/storage/wsdl"
xmlns:ter=
"http://www.onvif.org/ver10/error"
xmlns:dn=
"http://www.onvif.org/ver10/network/wsdl"
xmlns:tns1=
"http://www.onvif.org/ver10/topics"
xmlns:tmd=
"http://www.onvif.org/ver10/deviceIO/wsdl"
xmlns:wsdl=
"http://schemas.xmlsoap.org/wsdl"
xmlns:wsoap12=
"http://schemas.xmlsoap.org/wsdl/soap12"
xmlns:http=
"http://schemas.xmlsoap.org/wsdl/http"
xmlns:d=
"http://schemas.xmlsoap.org/ws/2005/04/discovery"
xmlns:wsadis=
"http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsnt=
"http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa=
"http://www.w3.org/2005/08/addressing"
xmlns:wstop=
"http://docs.oasis-open.org/wsn/t-1"
xmlns:wsrf-bf=
"http://docs.oasis-open.org/wsrf/bf-2"
xmlns:wsntw=
"http://docs.oasis-open.org/wsn/bw-2"
xmlns:wsrf-rw=
"http://docs.oasis-open.org/wsrf/rw-2"
xmlns:wsaw=
"http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsrf-r=
"http://docs.oasis-open.org/wsrf/r-2"
xmlns:trc=
"http://www.onvif.org/ver10/recording/wsdl"
xmlns:tse=
"http://www.onvif.org/ver10/search/wsdl"
xmlns:trp=
"http://www.onvif.org/ver10/replay/wsdl"
xmlns:tnshik=
"http://www.hikvision.com/2011/event/topics"
xmlns:hikwsd=
"http://www.onvifext.com/onvif/ext/ver10/wsdl"
xmlns:hikxsd=
"http://www.onvifext.com/onvif/ext/ver10/schema"
><
env
:Body>
/tt
:Name>
/tt
:HwAddress>
/tt
:MTU>
<
/tt
:Info>
true
<
/tt
:AutoNegotiation>
/tt
:Speed>
/tt
:Duplex>
<
/tt
:AdminSettings>
true
<
/tt
:AutoNegotiation>
/tt
:Speed>
/tt
:Duplex>
<
/tt
:OperSettings>
/tt
:InterfaceType>
<
/tt
:Link>
true
<
/tt
:Enabled>
/tt
:Address>
/tt
:PrefixLength>
<
/tt
:Manual>
false
<
/tt
:DHCP>
<
/tt
:Config>
<
/tt
:IPv4>
true
<
/tt
:Enabled>
false
<
/tt
:AcceptRouterAdvert>
/tt
:DHCP>
/tt
:Address>
/tt
:PrefixLength>
<
/tt
:LinkLocal>
/tt
:Address>
/tt
:PrefixLength>
<
/tt
:FromDHCP>
<
/tt
:Config>
<
/tt
:IPv6>
<
/tds
:NetworkInterfaces>
/tt
:Name>
/tt
:HwAddress>
/tt
:MTU>
<
/tt
:Info>
true
<
/tt
:Enabled>
/tt
:Address>
/tt
:PrefixLength>
<
/tt
:FromDHCP>
true
<
/tt
:DHCP>
<
/tt
:Config>
<
/tt
:IPv4>
<
/tds
:NetworkInterfaces>
<
/tds
:GetNetworkInterfacesResponse>
<
/env
:Body>
<
/env
:Envelope>
|
GetDNS:
POST
/onvif/device_service
HTTP
/1
.1
Content-Type: application
/soap
+xml; charset=utf-8; action=
"http://www.onvif.org/ver10/device/wsdl/GetDNS"
Host: 10.7.36.222
Content-Length: 902
Accept-Encoding:
gzip
, deflate
Connection: Close
HTTP
/1
.1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 2135
Content-Type: application
/soap
+xml; charset=utf-8
<
env
:Envelope xmlns:
env
=
"http://www.w3.org/2003/05/soap-envelope"
xmlns:soapenc=
"http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:tt=
"http://www.onvif.org/ver10/schema"
xmlns:tds=
"http://www.onvif.org/ver10/device/wsdl"
xmlns:trt=
"http://www.onvif.org/ver10/media/wsdl"
xmlns:timg=
"http://www.onvif.org/ver20/imaging/wsdl"
xmlns:tev=
"http://www.onvif.org/ver10/events/wsdl"
xmlns:tptz=
"http://www.onvif.org/ver20/ptz/wsdl"
xmlns:tan=
"http://www.onvif.org/ver20/analytics/wsdl"
xmlns:tst=
"http://www.onvif.org/ver10/storage/wsdl"
xmlns:ter=
"http://www.onvif.org/ver10/error"
xmlns:dn=
"http://www.onvif.org/ver10/network/wsdl"
xmlns:tns1=
"http://www.onvif.org/ver10/topics"
xmlns:tmd=
"http://www.onvif.org/ver10/deviceIO/wsdl"
xmlns:wsdl=
"http://schemas.xmlsoap.org/wsdl"
xmlns:wsoap12=
"http://schemas.xmlsoap.org/wsdl/soap12"
xmlns:http=
"http://schemas.xmlsoap.org/wsdl/http"
xmlns:d=
"http://schemas.xmlsoap.org/ws/2005/04/discovery"
xmlns:wsadis=
"http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsnt=
"http://docs.oasis-open.org/wsn/b-2"
xmlns:wsa=
"http://www.w3.org/2005/08/addressing"
xmlns:wstop=
"http://docs.oasis-open.org/wsn/t-1"
xmlns:wsrf-bf=
"http://docs.oasis-open.org/wsrf/bf-2"
xmlns:wsntw=
"http://docs.oasis-open.org/wsn/bw-2"
xmlns:wsrf-rw=
"http://docs.oasis-open.org/wsrf/rw-2"
xmlns:wsaw=
"http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsrf-r=
"http://docs.oasis-open.org/wsrf/r-2"
xmlns:trc=
"http://www.onvif.org/ver10/recording/wsdl"
xmlns:tse=
"http://www.onvif.org/ver10/search/wsdl"
xmlns:trp=
"http://www.onvif.org/ver10/replay/wsdl"
xmlns:tnshik=
"http://www.hikvision.com/2011/event/topics"
xmlns:hikwsd=
"http://www.onvifext.com/onvif/ext/ver10/wsdl"
xmlns:hikxsd=
"http://www.onvifext.com/onvif/ext/ver10/schema"
><
env
:Body>
false
<
/tt
:FromDHCP>
/tt
:Type>
/tt
:IPv4Address>
<
/tt
:DNSManual>
<
/tds
:DNSInformation>
<
/tds
:GetDNSResponse>
<
/env
:Body>
<
/env
:Envelope>
|