Vigiora

Dit artikel is nog niet beschikbaar in het Nederlands. Hier is het in het Engels.

Use Ubiquiti UniFi cameras with a self-hosted NVR

How to record UniFi Protect cameras on your own Vigiora Server. Why UniFi cameras stream through the Protect console rather than on their own, how to turn on RTSP in Protect, the RTSPS and RTSP addresses and ports, and how Vigiora connects to the console.

· 4 min lezen · Bekijken als Markdown

Delen
A text card that reads Ubiquiti UniFi, works with Vigiora, and the stream address pattern rtsps://console:7441/token?enableSrtp

UniFi cameras from Ubiquiti are well made, but they are built for one recorder: a UniFi Protect console (a Cloud Key, a Dream Machine, a UNVR or similar). Many people ask whether they can use them on their own, with another recorder. The honest answer: not on their own, but through the console. Protect can share each camera's stream over RTSP, and Vigiora Server can record and analyse that stream.

Before you start: turn on RTSP in Protect#

  1. Open the camera in Protect

    In the Protect web page, open the camera's settings. The setting is easiest to find in the web page; the phone app may not show it.

  2. Find the stream settings

    Open Advanced and look for RTSP or RTSP Stream.

  3. Turn on a quality

    Turn on High, Medium or Low. Each quality has its own link. Protect shows it next to the switch: copy it.

Menu names change between Protect versions. The link always points at the console, not the camera. You only need this step yourself when you add a camera by hand: the next Vigiora Server release turns RTSP on for you (see below).

The stream addresses#

Protect builds the link for you. It looks like this:

FormAddressPort
Encrypted (RTSPS), as Protect shows itrtsps://192.0.2.10:7441/<token>?enableSrtp7441
Plain RTSPrtsp://192.0.2.10:7447/<token>7447

192.0.2.10 stands for your console's address and <token> for the camera's own code from Protect. There is no user name or password in the link: the token is the key, so treat it like a password.

The ports come from Ubiquiti's own list of UniFi ports: 7441 for outgoing RTSPS streams and 7447 for outgoing RTSP streams. The plain form is the encrypted link with rtsps changed to rtsp, the port changed to 7447 and ?enableSrtp removed. The token stays the same.

A text card summarising the UniFi stream addresses and ports from this page
The UniFi stream addresses and ports on one card. A text summary of this page, not a screenshot.

What Vigiora finds for you, and the manual way#

Vigiora's network scan sees UniFi devices by their Ubiquiti hardware address. That address covers all UniFi gear (access points, switches, consoles), so a UniFi camera shows up as a Ubiquiti device rather than a ready-to-add camera. Vigiora connects to your UniFi Protect console, not to each camera. In Add camera, give the console's address and a local UniFi account without two-factor sign-in. The next Vigiora Server release lists every camera on the console; tick the ones you want and choose Add. If RTSP is off for a camera, Vigiora turns it on. If your account may not change camera settings, Vigiora tells you which camera to turn it on for in Protect (Settings → Advanced → RTSP). The streams are plain RTSP on port 7447, with RTSPS on port 7441 as the fallback.

On a current release, or if you prefer, add each camera by hand, once:

  1. Choose I have the RTSP URL

    Go to Monitors, click Add Monitor, then I have the RTSP URL.

  2. Paste the link

    Paste the link from Protect into RTSP URL and give the camera a name, such as Front door.

  3. Save and check

    Save, then open the camera page and check that the picture plays.

Vigiora accepts both rtsps:// and rtsp:// addresses. See Add a camera by its RTSP address.

After that, Vigiora handles the rest as for any camera: recording, motion detection, AI and alerts. Automatic rediscovery doesn't apply here, because the link points at the console: give the console a fixed address on your router. Pan, tilt and zoom on the UniFi PTZ model stays in Protect.

Recording: which quality to pick#

A typed address gives Vigiora one stream, so pick the quality to suit the camera:

  • High where you may need to zoom into faces or plates later.
  • Medium or Low on cameras where detail matters less. They save a lot of disk and keep live view light.
  • Protect keeps recording as set in Protect. Vigiora's recordings are separate, on your own server, with their own retention. See Recording and retention.
  • The free plan has no camera limit and includes AI on 2 cameras.

Troubleshooting#

  • The RTSPS link doesn't play. Some players don't accept Protect's encrypted link. Try the plain RTSP form on port 7447, without ?enableSrtp.
  • The link disappeared. Turning off the stream quality in Protect removes its link. Turn it on again, copy the link Protect shows now and paste it into the camera's RTSP URL in Vigiora.
  • No picture after a console restart or update. Check in Protect that RTSP is still on for that camera.
  • A camera at another site. The server must reach the console. Install a Vigiora Client next to the console. See Add a camera through a Vigiora Client.
  1. Add a camera

    All the ways to connect a camera: Add a camera.

  2. Camera settings

    Recording, AI and motion for each camera: Camera settings.

  3. Troubleshooting

    Missing stream, wrong path or freezes: Troubleshooting cameras.

Delen

Probeer het op je eigen camera's

Vigiora Server is gratis met onbeperkt camera's. AI op 2 camera's is gratis tijdens onze actie. Installeer het op een Linux-machine met één opdracht.