• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unifi Camera Update! (Fix Available for Testing Now)

    Support
    32
    125
    16868
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dcode @Monocle last edited by

      @Monocle That’s great news, thanks! And I totally agree, Amazon devices should not be so rigid.

      1 Reply Last reply Reply Quote 0
      • M
        monome last edited by

        happy dance :-) Thank you Robert

        1 Reply Last reply Reply Quote 0
        • N
          navy2x last edited by

          Robert this is great news! Thank you very much for your continued support of this project. My family and I used to rely on this integration multiple times a day and it will be great to get it back to working status. I’d be happy to do some testing if needed.

          1 Reply Last reply Reply Quote 0
          • N
            nicholasng @Monocle last edited by

            @Monocle That’s fantastic - many thanks Robert!

            1 Reply Last reply Reply Quote 0
            • V
              vmsman last edited by

              Thanks Robert! I have a couple Unifi Cameras in protect and since Protect 2.01, things broke as you know. I want to publish an update to my YouTube Video when you get the fix. --Scott

              1 Reply Last reply Reply Quote 0
              • B
                bk last edited by

                Robert, Thank you very much for the effort and work. I’ve been missing my gateway. Essentially making my Shows useless. W/O the gateway, might was well have a dot or what ever they are called now a days.

                1 Reply Last reply Reply Quote 0
                • D
                  deepbluesee last edited by

                  Great Thanks! Any news so far?

                  1 Reply Last reply Reply Quote 0
                  • T
                    Toto last edited by

                    hope to See it soon

                    1 Reply Last reply Reply Quote 0
                    • Monocle
                      Monocle last edited by

                      @All

                      Just an update …

                      I have updated the codebase for Monocle Gateway and now have it working for RTSP and RTSPS.
                      Using the tag @noaudio or @fixaudio will both remove the “opus” encoded audio stream in the stream descriptor. (which makes Alexa/Echo devices happy)

                      I will probably auto-assign the @fixaudio behind the scene for cameras labeled with the manufacturer “Unifi” or “Ubiquity”. We currently do this for “Foscam” cameras for a separate compatibility issue.

                      No releases to test with yet. I need to update the portal web UI and create new builds. Hopefully tomorrow.

                      Thanks, Robert

                      Monocle: https://monoclecam.com
                      Getting Started | Troubleshooting Guide | FAQ | Contact Support

                      M 1 Reply Last reply Reply Quote 3
                      • V
                        vmsman last edited by

                        Awesome Robert. Tag up with me if you want me to test.

                        1 Reply Last reply Reply Quote 0
                        • Monocle
                          Monocle last edited by Monocle

                          @All

                          I have run into some build issues and have to rework some of the continuous integration workflow. So that is delaying some of the work to get this update more polished and released. However, I do have test builds available if anyone wants to test them. These are currently untested/unverified builds but feel free to play with it and report back if it’s working for you.


                          Download Test Builds Here:

                          Monocle Gateway (v0.0.6)
                          https://download.monoclecam.com/monocle-gateway/monocle-gateway-0.0.6-beta/


                          Required Tags

                          Make sure to use the tag @noaudio or @fixaudio with your Unifi camera in addition to the @tunnel tag.

                          The need for this tag may be removed in a final release.

                          (See the @insecure tag below if you are using RTSPS encrypted connections.)


                          Unifi Camera RTSP URLs

                          Note both RTSP and RTSPS (TLS) are supported.

                          Unifi URL Examples Examples:

                          • rtsp://10.1.1.1:7447/Aqf2cTyOvd96zDde
                          • rtsps://10.1.1.1:7441/Aqf2cTyOvd96zDde

                          Please note that the default RTSPS URL provided by your Unifi camera includes an “?enableSrtp” parameter at the end of the URL. (Example: rtsps://10.1.1.1:7441/Aqf2cTyOvd96zDde?enableSrtp) You will need to omit this parameter for use with Monocle Gateway. This parameter enables Secure-RTP (SRTP) protocol inside the TLS encrypted stream — unfortunately Alexa/Echo devices don’t know how to handle the SRTP protocol and Monocle Gateway does not touch the stream packets, it only passes them across the tunneled connection.

                          Also note that the Monocle Web Portal will display an error if you use the “RTSPS” prefix in the RTPS URL. Just ignore the error and continue, it will still save the RTSPS URL you entered.


                          Self Signed Certificates

                          For RTSPS URLs, these are using a secure connection via TLS. Secure connections expect a valid SSL certificate to fully validate the encrypted connection. However, if you are just using the Unifi camera out of the box, it will only provide a self-signed certificate. You will need to also include the @insecure tag to tell the Monocle Gateway to accept self-signed or non-validated certificates. It will still use an encrypted TLS connection but it won’t enforce validation on the certificate.


                          Multiple Monocle Gateway Instances

                          You may not be aware, but you can run multiple Monocle Gateway instances simultaneously!

                          Each instance does need a separate/unique authentication token. The last one to come online takes the “master” role and services all camera requests. If the current “master” falls offline, then one of the other connected gateway’s is promoted to the “master” role. This concept allows for failover but you can also test a new version of Monocle Gateway in a new instance without touching your existing working version of the gateway.

                          Just thought I would throw that out there for anymore wanting to test this new version …


                          Thanks, Robert

                          Monocle: https://monoclecam.com
                          Getting Started | Troubleshooting Guide | FAQ | Contact Support

                          T D R 3 Replies Last reply Reply Quote 5
                          • T
                            toksvaeth @Monocle last edited by

                            @Monocle

                            Thanks so much for the update. I can confirm it works with rtsp/rtsps on my echo show 10 (2nd gen). (Using tags: tunnel,fixaudio,insecure)

                            Unfortunately, whilst the fixaudio tag seems to work, the noaudio tag does not. This is my preferred setup as I don’t like the echo to make noise.

                            Monocle 1 Reply Last reply Reply Quote 0
                            • Monocle
                              Monocle @toksvaeth last edited by Monocle

                              @toksvaeth

                              I just tested it here on my Unifi G4 Pro using both RTSP and RTSPS and @noaudio is working here.
                              (Running on Linux-x64 and OSX-x64.)

                              You should see a section in the log with “[CLIENT RESPONSE] <-- [BODY]” followed by the SDP (stream descriptor) information. Post what yours shows and lets see if the opus audio is still present.

                              Here is an example of mine … using @noaudio

                              2022-07-30T14:15:57.930Z [TRACE] [172.17.0.1:58208 <qRO0EG-76>] [CLIENT RESPONSE] <-- [BODY]
                               v=0
                              o=- 146 0 IN IP4 10.1.1.1
                              s=D021F9925C56_0
                              u=www.evostream.com
                              c=IN IP4 10.1.1.1
                              t=0 0
                              a=control:*
                              a=recvonly
                              a=range:npt=now-
                              m=video 0 RTP/AVP 97
                              a=rtpmap:97 H264/90000
                              a=fmtp:97 profile-level-id=4d4033; packetization-mode=1; sprop-parameter-sets=Z01AM42NQB4AIf/gLcBAQFAAAD6AAAu4CdoIhGo=,aO44gA==
                              a=control:trackID=2
                              a=recvonly
                              

                              Monocle: https://monoclecam.com
                              Getting Started | Troubleshooting Guide | FAQ | Contact Support

                              T T 2 Replies Last reply Reply Quote 0
                              • T
                                Toto @Monocle last edited by

                                @Monocle
                                i ´ve updated my System Linux-x64 and try with @noaudio or @fixaudio
                                but always camera is´nt responding…Echo Show8

                                Start Server again , same thing…

                                1 Reply Last reply Reply Quote 0
                                • D
                                  deepbluesee @Monocle last edited by

                                  @Monocle
                                  I upgraded too with my Unifi Cams and it work very well with the last Protect update (2.1.2)!
                                  I used @tunnel an @fixaudio
                                  I use a UDMPRO and 3x G3Pro and 1xG4 Doorbell
                                  And I use 3x Echo Show 5 and 8

                                  T Monocle 2 Replies Last reply Reply Quote 0
                                  • T
                                    Toto @deepbluesee last edited by

                                    @deepbluesee

                                    ok, my fault…

                                    need to set " , " between the tags…did´nt know

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      deepbluesee @Toto last edited by

                                      @Toto
                                      Ok I used one character distance between

                                      1 Reply Last reply Reply Quote 0
                                      • Monocle
                                        Monocle @deepbluesee last edited by Monocle

                                        @deepbluesee

                                        Thanks for the confirmation report! Glad to hear its working for you!

                                        Monocle: https://monoclecam.com
                                        Getting Started | Troubleshooting Guide | FAQ | Contact Support

                                        V 1 Reply Last reply Reply Quote 0
                                        • V
                                          vmsman @Monocle last edited by

                                          @Monocle I used the @fixaudio and @tunnel and I have Unifi Protect 2.1.2 with G3 Instant cameras and I am unable to display on Echo Shows or Fire TV 4k Max. Both of which worked back with Unifi Protect 2.0.
                                          3a4c63aa-1062-4af8-ab29-1c64646a0e5c-unifi.png file:///home/scott/Desktop/Staging/unifi.png

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            toksvaeth @Monocle last edited by

                                            @Monocle Thank you.

                                            • noaudio log (not working)
                                            • fixaudio log (working)

                                            Same behaviour with either of rtsp/s.

                                            Looking at a diff between yours and mine, the only major difference seems to be on the a=fmtp line.

                                            V T 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Privacy Policy  |  Terms & Conditions

                                            © 2018 shadeBlue, LLC.