AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.99k stars 399 forks source link

Onvif unsupported request - hikvision dvr as client #1299

Open memphisdj opened 2 months ago

memphisdj commented 2 months ago

Hi,

I am trying to use the onvif module of go2rtc, to add already existing camera in go2rtc to a hikvision dvr for viewing and recording.

I had to enable auth on the RTSP stream, because the DVR requires it:

image

The dvr is reporting Offline (Parameter Error)

The log in go2rtc is as follows:

image

Please let me know, if i can make this work and if it is at all possible.

Thanks in advance !

AlexxIT commented 2 months ago

It's better to add logs as text, not as pictures.

memphisdj commented 2 months ago

Hi, sorry about that, the picture looked better formatted. Here is the log:

5:20:22.026 PM | debug | [onvif] unsupported request:<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="[http://www.onvif.org/ver10/schema">](http://www.onvif.org/ver10/schema%22%3E)soap:Header<wsse:Security soap:mustUnderstand="true" xmlns:wsse="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%22%3E)<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd%22%3E)wsse:Usernameadmin</wsse:Username><wsse:Password Type="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Um609QzCBAdQrPJW7tpEUSLWThk=](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest%22%3EUm609QzCBAdQrPJW7tpEUSLWThk=)</wsse:Password><wsse:Nonce EncodingType="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">UvUznxjrT3Gzx/dn6i5jwA==](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary%22%3EUvUznxjrT3Gzx/dn6i5jwA==)</wsse:Nonce>wsu:Created2024-08-07T14:20:22Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header>soap:Bodytds:SetSystemDateAndTimetds:DateTimeTypeManual</tds:DateTimeType>tds:DaylightSavingstrue</tds:DaylightSavings>tds:TimeZonett:TZEET-2</tt:TZ></tds:TimeZone>tds:UTCDateTimett:Timett:Hour15</tt:Hour>tt:Minute20</tt:Minute>tt:Second21</tt:Second></tt:Time>tt:Datett:Year2024</tt:Year>tt:Month8</tt:Month>tt:Day7</tt:Day></tt:Date></tds:UTCDateTime></tds:SetSystemDateAndTime></soap:Body></soap:Envelope>

5:20:22.029 PM | debug | [onvif] unsupported request:<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="[http://www.onvif.org/ver10/schema">](http://www.onvif.org/ver10/schema%22%3E)soap:Header<wsse:Security soap:mustUnderstand="true" xmlns:wsse="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%22%3E)<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd%22%3E)wsse:Usernameadmin</wsse:Username><wsse:Password Type="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">kl8mDmQUrD7NX4Rk3+zG5WC2klI=](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest%22%3Ekl8mDmQUrD7NX4Rk3+zG5WC2klI=)</wsse:Password><wsse:Nonce EncodingType="[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JH1pGhe0QPe3Gc+NteqOOg==](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary%22%3EJH1pGhe0QPe3Gc+NteqOOg==)</wsse:Nonce>wsu:Created2024-08-07T15:20:20Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header>soap:Bodytds:GetServicestds:IncludeCapabilityfalse</tds:IncludeCapability></tds:GetServices></soap:Body></soap:Envelope>

nerodark commented 2 months ago

1304

Also can confirm for hikvision DVR on my side

MangoScango commented 2 weeks ago

I appear to be having the same issue trying to manually adopt cameras in Unifi Protect now that ONVIF is supported, they also require authentication.

[onvif] unsupported request:
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
      <UsernameToken>
        <Username>admin</Username>
        <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">ylmSiFres2b55aZPg7m6gA9Rj/4=</Password>
        <Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">7rewB1hSxsA/LUhY3+jg9w==</Nonce>
        <Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2024-10-14T14:57:31.000Z</Created>
      </UsernameToken>
    </Security>
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GetServices xmlns="http://www.onvif.org/ver10/device/wsdl">
      <IncludeCapability>true</IncludeCapability>
    </GetServices>
  </s:Body>
</s:Envelope>