go2rtc
go2rtc copied to clipboard
Onvif unsupported request - hikvision dvr as client
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:
The dvr is reporting Offline (Parameter Error)
The log in go2rtc is as follows:
Please let me know, if i can make this work and if it is at all possible.
Thanks in advance !
It's better to add logs as text, not as pictures.
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>
#1304 Also can confirm for hikvision DVR on my side
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>
You should test latest master version.
Hi @AlexxIT , tried it, this is the result below (debug log level), it still doesnt want to add it and shows it as offline:
3:18:29.840 PM warn [onvif] unsupported operation: GetOSDOptions
3:18:29.840 PM debug [onvif] unsupported request:
<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<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">
<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">g+XIMxvElADSeywRdqiWApFpiG8=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">VexFo2JTTdakaAcWWsV4+Q==</wsse:Nonce>
<wsu:Created>2025-03-10T13:18:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<trt:GetOSDOptions>
<trt:ConfigurationToken>unifi_camera</trt:ConfigurationToken>
</trt:GetOSDOptions>
</soap:Body>
</soap:Envelope>
3:18:29.843 PM warn [onvif] unsupported operation: GetVideoEncoderConfigurationOptions
3:18:29.843 PM debug [onvif] unsupported request:
<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<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">
<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">MqrmV+XgjNgJQHZ5oz7djhJeaX4=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">poRKRYK4QpW4c7yPv7Lh2g==</wsse:Nonce>
<wsu:Created>2025-03-10T13:18:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<trt:GetVideoEncoderConfigurationOptions>
<trt:ConfigurationToken>vec</trt:ConfigurationToken>
<trt:ProfileToken>unifi_camera</trt:ProfileToken>
</trt:GetVideoEncoderConfigurationOptions>
</soap:Body>
</soap:Envelope>
3:18:29.844 PM warn [onvif] unsupported operation: GetVideoEncoderConfiguration
3:18:29.844 PM debug [onvif] unsupported request:
<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<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">
<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">RLYrZJMvVeJN7CJK30IoNnDD7OA=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">6zTFzfXyQ4e4gHeiA//24w==</wsse:Nonce>
<wsu:Created>2025-03-10T13:18:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<trt:GetVideoEncoderConfiguration>
<trt:ConfigurationToken>vec</trt:ConfigurationToken>
</trt:GetVideoEncoderConfiguration>
</soap:Body>
</soap:Envelope>
3:18:29.847 PM warn [onvif] unsupported operation: GetVideoEncoderConfiguration
3:18:29.847 PM debug [onvif] unsupported request:
<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
<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">
<wsse:UsernameToken wsu:Id="UsernameToken-35" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">5Oy+YbHQ+I4xTs93RKCBrww2EeA=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">TkMLVXnuSmuoEvyMSclF0A==</wsse:Nonce>
<wsu:Created>2025-03-10T13:18:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<trt:GetVideoEncoderConfiguration>
<trt:ConfigurationToken>vec</trt:ConfigurationToken>
</trt:GetVideoEncoderConfiguration>
</soap:Body>
</soap:Envelope>
coming here to report I too have this same issue, but not with HikVision. I'm having this same 21:23:18.543 WRN [onvif] unsupported operation: GetVideoEncoderConfigurationOptions issue with a Reolink NVR.
Same here, for Hikvision DVR -
7:43:22.021 PM | warn | [onvif] unsupported operation: GetVideoEncoderConfigurationOptions 7:43:22.039 PM | warn | [onvif] unsupported operation: GetVideoEncoderConfiguration 7:43:22.054 PM | warn | [onvif] unsupported operation: GetVideoEncoderConfiguration 7:43:36.403 PM | warn | [onvif] unsupported operation: GetOSDOptions