Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wyze-Bridge Authentication Problem #16

Open
Cortexian opened this issue Dec 8, 2024 · 2 comments
Open

Wyze-Bridge Authentication Problem #16

Cortexian opened this issue Dec 8, 2024 · 2 comments

Comments

@Cortexian
Copy link

Cortexian commented Dec 8, 2024

I am using Wyze-Bridge to generate an RTSP stream from a Wyzecam V3. The RTSP stream is verified working, with a username and password in VLC. When this RTSP stream is configured in rtsp-to-onvif, no matter what combination of usernames and passwords I use from Wyze-Bridge, Protect is spitting out an Invalid credentials error.

Anyone else using Wyze-Bridge with rtsp-to-onvif for Protect?

Edit: Solved my own problem - I needed to specify the rtsp-to-onvif server port in UniFi Protect.

@ronaldt80
Copy link

can you share your configuration?

@Cortexian
Copy link
Author

Cortexian commented Jan 28, 2025

onvif:
  - name: Wyzecam
    dev: ens18
    target:
      hostname: raspberrypi4-1.localhost
      ports:
        rtsp: 8554
        snapshot: 5000
    highQuality:
      rtsp: /basement
      snapshot: /snapshot/basement.jpg
      width: 1920
      height: 1080
      framerate: 20
      bitrate: 1200
      quality: 4
    ports:
      server: 8081
      rtsp: 8555
      snapshot: 8080

The RTSP URL from Wyze-Bridge is: rtsp://username:[email protected]:8554/basement

As soon as I try and add the camera in Protect I get the following:

rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/device_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/device_service
rtsp-to-onvif_1  | SERVER: Trying Device from path /onvif/device_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><tds:GetSystemDateAndTimeResponse xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns="http://www.onvif.org/ver10/device/wsdl"><tds:SystemDateAndTime><tds:DateTimeType>NTP</tds:DateTimeType><tds:DaylightSavings>false</tds:DaylightSavings><tds:TimeZone><tds:TZ>UTC+0</tds:TZ></tds:TimeZone><tds:UTCDateTime><tds:Time><tds:Hour>7</tds:Hour><tds:Minute>47</tds:Minute><tds:Second>41</tds:Second></tds:Time><tds:Date><tds:Year>2025</tds:Year><tds:Month>1</tds:Month><tds:Day>28</tds:Day></tds:Date></tds:UTCDateTime><tds:LocalDateTime><tds:Time><tds:Hour>7</tds:Hour><tds:Minute>47</tds:Minute><tds:Second>41</tds:Second></tds:Time><tds:Date><tds:Year>2025</tds:Year><tds:Month>1</tds:Month><tds:Day>28</tds:Day></tds:Date></tds:LocalDateTime><tds:Extension></tds:Extension></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/device_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">QhKkQEXjr9ZgDMy5L7heeA==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.001Z</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>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/device_service
rtsp-to-onvif_1  | SERVER: Trying Device from path /onvif/device_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><tds:GetServicesResponse xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns="http://www.onvif.org/ver10/device/wsdl"><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.1.22.17:8081/onvif/device_service</tds:XAddr><tds:Version><tds:Major>2</tds:Major><tds:Minor>5</tds:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.1.22.17:8081/onvif/media_service</tds:XAddr><tds:Version><tds:Major>2</tds:Major><tds:Minor>5</tds:Minor></tds:Version></tds:Service></tds:GetServicesResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/media_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">wnx+oen6ca36hKpwL672yg==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.076Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetProfiles xmlns="http://www.onvif.org/ver10/media/wsdl"/></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/media_service
rtsp-to-onvif_1  | SERVER: Trying Media from path /onvif/media_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><trt:GetProfilesResponse xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns="http://www.onvif.org/ver10/media/wsdl"><trt:Profiles token="main_stream"><trt:Name>MainStream</trt:Name><trt:VideoSourceConfiguration token="video_src_config_token"><trt:Name>VideoSource</trt:Name><trt:UseCount>2</trt:UseCount><trt:SourceToken>video_src_token</trt:SourceToken><trt:Bounds x="0" y="0" width="1920" height="1080"></trt:Bounds></trt:VideoSourceConfiguration><trt:VideoEncoderConfiguration token="encoder_hq_config_token"><trt:Name>CardinalHqCameraConfiguration</trt:Name><trt:UseCount>1</trt:UseCount><trt:Encoding>H264</trt:Encoding><trt:Resolution><trt:Width>1920</trt:Width><trt:Height>1080</trt:Height></trt:Resolution><trt:Quality>4</trt:Quality><trt:RateControl><trt:FrameRateLimit>20</trt:FrameRateLimit><trt:EncodingInterval>1</trt:EncodingInterval><trt:BitrateLimit>1200</trt:BitrateLimit></trt:RateControl><trt:H264><trt:GovLength>20</trt:GovLength><trt:H264Profile>Main</trt:H264Profile></trt:H264><trt:SessionTimeout>PT1000S</trt:SessionTimeout></trt:VideoEncoderConfiguration></trt:Profiles></trt:GetProfilesResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/media_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">2mrL1lQztLXXDGEI2AZ41g==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.084Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetVideoSources xmlns="http://www.onvif.org/ver10/media/wsdl"/></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/media_service
rtsp-to-onvif_1  | SERVER: Trying Media from path /onvif/media_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><trt:GetVideoSourcesResponse xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns="http://www.onvif.org/ver10/media/wsdl"><trt:VideoSources token="video_src_token"><trt:Framerate>20</trt:Framerate><trt:Resolution><trt:Width>1920</trt:Width><trt:Height>1080</trt:Height></trt:Resolution></trt:VideoSources></trt:GetVideoSourcesResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/device_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">hWgYnE29OuxNeTjWpLmi6w==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.114Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetDeviceInformation xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/device_service
rtsp-to-onvif_1  | SERVER: Trying Device from path /onvif/device_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><tds:GetDeviceInformationResponse xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns="http://www.onvif.org/ver10/device/wsdl"><tds:Manufacturer>rtsp-2-onvif</tds:Manufacturer><tds:Model>Wyzecam</tds:Model><tds:FirmwareVersion>1.0.0</tds:FirmwareVersion><tds:SerialNumber>Wyzecam-0000</tds:SerialNumber><tds:HardwareId>Wyzecam-1001</tds:HardwareId></tds:GetDeviceInformationResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/media_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">KrtyqT2Di9zOgHQTRdT57Q==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.130Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSnapshotUri xmlns="http://www.onvif.org/ver10/media/wsdl"><ProfileToken>main_stream</ProfileToken></GetSnapshotUri></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/media_service
rtsp-to-onvif_1  | SERVER: Trying Media from path /onvif/media_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><trt:GetSnapshotUriResponse xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns="http://www.onvif.org/ver10/media/wsdl"><trt:MediaUri><trt:Uri>http://10.1.22.17:8080/snapshot/basement.jpg</trt:Uri><trt:InvalidAfterConnect>false</trt:InvalidAfterConnect><trt:InvalidAfterReboot>false</trt:InvalidAfterReboot><trt:Timeout>PT30S</trt:Timeout></trt:MediaUri></trt:GetSnapshotUriResponse></soap:Body></soap:Envelope>
rtsp-to-onvif_1  | SERVER: Handling POST on /onvif/media_service
rtsp-to-onvif_1  | SERVER: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken><Username>username</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">/NOTmyPASSWORDisTHISaHASH?</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">H96G8UHMUjwZfpbBRWOLXw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-01-28T07:47:41.147Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetStreamUri xmlns="http://www.onvif.org/ver10/media/wsdl"><StreamSetup><Stream xmlns="http://www.onvif.org/ver10/schema">RTP-Unicast</Stream><Transport xmlns="http://www.onvif.org/ver10/schema"><Protocol>RTSP</Protocol></Transport></StreamSetup><ProfileToken>main_stream</ProfileToken></GetStreamUri></s:Body></s:Envelope>
rtsp-to-onvif_1  | SERVER: Attempting to bind to /onvif/media_service
rtsp-to-onvif_1  | SERVER: Trying Media from path /onvif/media_service
rtsp-to-onvif_1  | SERVER: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"  xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><trt:GetStreamUriResponse xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns="http://www.onvif.org/ver10/media/wsdl"><trt:MediaUri><trt:Uri>rtsp://10.1.22.17:8555/basement</trt:Uri><trt:InvalidAfterConnect>false</trt:InvalidAfterConnect><trt:InvalidAfterReboot>false</trt:InvalidAfterReboot><trt:Timeout>PT30S</trt:Timeout></trt:MediaUri></trt:GetStreamUriResponse></soap:Body></soap:Envelope>

@Cortexian Cortexian reopened this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants