---
title: "Set up a Uniview camera with a self-hosted NVR"
description: "How to record a Uniview (UNV) camera on your own Vigiora Server. Set the password, know the /media/video stream addresses, turn on ONVIF and check RTSP authentication, and see what Vigiora finds by itself."
url: https://vigiora.com/articles/uniview-camera-self-hosted-nvr
language: en
date: 2026-11-16
updated: 2026-11-16
tags: [how-to]
scenario: false
---

# Set up a Uniview camera with a self-hosted NVR

> How to record a Uniview (UNV) camera on your own Vigiora Server. Set the password, know the /media/video stream addresses, turn on ONVIF and check RTSP authentication, and see what Vigiora finds by itself.

Uniview (UNV) cameras are built for recorders: every model streams over RTSP, most speak ONVIF, and the stream addresses are short and predictable. That makes them a good fit for a self-hosted recorder such as Vigiora Server. Here is what to set on the camera, and what Vigiora does for you.

> **What you need**
>
> - A Uniview camera on the same network as the server.
> - A web browser for the camera's web page, or Uniview's EZTools to find it on the network.
> - A Vigiora Server on the same network. See [Install on Linux](https://vigiora.com/docs/getting-started/install-linux).
>

## Before you start: password, ONVIF and RTSP

1. **Set the admin password**

   On current firmware, the camera asks for a new password at the first login on its web page. The user is `admin`.

2. **Turn on ONVIF**

   According to Uniview's own guides, ONVIF is under **Setup → Network → Access Platform → ONVIF** on older firmware and under **Configuration → Network → Advanced Settings → Integration Protocol** on newer firmware. Uniview recommends an ONVIF user with administrator rights, created in the security settings.

3. **Leave RTSP authentication on**

   Uniview lets you turn RTSP authentication off. Keep it on: Vigiora sends the login, and a camera that streams to anyone on the network is a risk.

Menu names change between firmware versions. If yours differ, look for ONVIF, Integration Protocol or Access Platform in the network settings.

## The stream addresses

Replace the user, password and address with your own. RTSP uses port 554.

| Stream | Address |
| --- | --- |
| Main | `rtsp://user:password@192.0.2.25:554/media/video1` |
| Sub | `rtsp://user:password@192.0.2.25:554/media/video2` |
| Third stream | `rtsp://user:password@192.0.2.25:554/media/video3` |

The number after `video` picks the stream: 1 is the main stream, 2 the sub-stream, 3 the third stream. From Uniview's documentation: fisheye cameras offer their extra views as `video4` to `video7` and the panorama as `video8`, and the second lens of a dual-lens camera uses `/media2/` instead of `/media/`.

The ports that matter: **554** for RTSP, **80** for the web page and ONVIF.

![A text card summarising the Uniview stream addresses and ports from this page](https://vigiora.com/articles/img/uniview-camera-self-hosted-nvr/cheat-sheet.webp)

*The Uniview stream addresses and ports on one card. A text summary of this page, not a screenshot.*

## What Vigiora finds for you

In the [setup wizard](https://vigiora.com/docs/getting-started/setup-wizard), or with **Monitors → Add Monitor → On this network**, you type only the login:

1. **The scan finds the camera** and recognises Uniview by its hardware address.
2. **It asks for the streams over ONVIF** on port 80, main and sub, with the camera's model, firmware and serial.
3. **If ONVIF doesn't answer**, it tries `/media/video1`, and `/media/video2` as the sub-stream.
4. **It learns the features**: pan, tilt and zoom on PTZ models, the microphone and the speaker. On Uniview Prime models, **KM** in the model name means a built-in microphone, and **KMC** adds a speaker.

You never type a stream address, and the camera is created with its sub-stream. That is the better route: with **I have the RTSP URL**, Vigiora guesses a sub-stream only for Hikvision and Dahua addresses, so a typed Uniview address gets the main stream alone.

Vigiora stops at the first refused password and doesn't send the same wrong password to that camera again for 30 minutes, so a typo doesn't lock the camera.

## Recording: main stream or sub-stream

- **Record the main stream** at entrances and tills, where you may need to zoom into faces or plates.
- **Record the sub-stream** with **Record low quality (sub-stream)** on the other cameras. It saves about 60–80% of disk. See [Main stream or sub-stream?](https://vigiora.com/docs/cameras/recording-and-retention#main-stream-or-sub-stream).
- Uniview's own compression, U-Code, can confuse other recorders. If the picture stutters, turn U-Code off and choose H.264 or H.265 in the camera's video settings.
- The free plan has no camera limit and includes AI on 2 cameras.

## Troubleshooting

- **ONVIF login refused.** Create an ONVIF user with administrator rights in the camera's security settings, or check the ONVIF authentication mode under Integration Protocol.
- **RTSP refused even with the right password.** Some firmware works better with RTSP authentication set to Digest or Basic: try the other one, never "none".
- **The picture stutters or stays black.** Turn U-Code off and set the stream to H.264.
- **Wrong path (404).** Check the stream number and, for a recorder, use the camera's channel. See [Wrong stream path (404)](https://vigiora.com/docs/cameras/troubleshooting-cameras#wrong-stream-path-404).

## Related docs

1. **Add a camera**

   All the ways to connect a camera: [Add a camera](https://vigiora.com/docs/cameras/add-a-camera).

2. **Rediscovery**

   How Vigiora follows a camera to a new address: [Fixed IPs and rediscovery](https://vigiora.com/docs/cameras/fixed-ips-and-rediscovery).

3. **Troubleshooting**

   Missing stream, wrong path or freezes: [Troubleshooting cameras](https://vigiora.com/docs/cameras/troubleshooting-cameras).

---

Source: https://vigiora.com/articles/uniview-camera-self-hosted-nvr · Published 2026-11-16
