Guides · Camera setup
Uniview RTSP and ONVIF setup
Updated 29 September 2026
Uniview cameras stream over RTSP and have ONVIF on by default, so most of the work is finding the right stream address.
At a glance
| Main stream | rtsp://USERNAME:PASSWORD@CAMERA-IP:554/unicast/c1/s0/live |
|---|---|
| Sub stream | rtsp://USERNAME:PASSWORD@CAMERA-IP:554/unicast/c1/s1/live |
| RTSP port | 554 |
| ONVIF port | 80 (the camera’s HTTP port) |
| Account | admin, or any user you create on the camera |
Replace USERNAME, PASSWORD, and CAMERA-IP with your own. The main stream is the full-resolution one to record; the sub stream is a lighter copy for small previews. Uniview cameras also answer on /media/video1 (main) and /media/video2 (sub). On a Uniview NVR, c1 is the channel: c2 for camera 2, and so on.
Before you start
- Give the camera a fixed IP address with a DHCP reservation on your router, so its stream address never changes.
- Use a strong password, but avoid
@,:,/, and#. They have special meanings in stream addresses, and some cameras mishandle them. - Update the camera’s firmware. Menu names differ between firmware versions and models, so treat the ones below as a guide to where to look.
Turn on RTSP and ONVIF
- Open the camera’s web interface at its IP address and sign in as admin.
- RTSP and ONVIF are on by default. The ports are listed under Setup › Network › Port.
- If a recorder is refused over ONVIF, look for the ONVIF authentication option in the security or network settings, and connect with the admin account.
Turn on motion events
- Under Setup › Events, enable motion detection and set the area and sensitivity.
Add the camera to Loki Eye
- Add the camera in Loki Eye with its main stream address from the table above. Loki Eye probes the stream to check that it plays.
- Enter the ONVIF port so motion events can reach the recorder. Loki Eye tests the port as you add the camera.
- Choose continuous recording, or recording on motion with pre-roll and post-roll.
Things to know about Uniview cameras
- Uniview’s smart codec, U-Code, lowers the bitrate by stretching the gap between keyframes. If playback seeks slowly, turn it off for the main stream.
If it does not work
- The stream will not open. Try the same address in VLC, under Media › Open Network Stream. If VLC cannot play it either, the problem is on the camera: RTSP switched off, the wrong port, or the wrong password.
- You are not sure of the stream address. ONVIF Device Manager, a free Windows tool, finds cameras on your network and shows their stream addresses.
- The stream drops when another app is watching. Cameras accept only a few stream connections at once. Close other viewers, or point them at the sub stream.
- No motion events arrive. Check that motion detection is on in the camera, that the ONVIF port is right, and that the camera clock is correct. ONVIF requests carry a timestamp, and a camera whose clock is minutes off can refuse them. Setting the camera to sync with an NTP time server fixes this for good.
Questions
What is the Uniview RTSP URL?
rtsp://USERNAME:PASSWORD@CAMERA-IP:554/unicast/c1/s0/live for the main stream and /unicast/c1/s1/live for the sub stream. /media/video1 and /media/video2 also work on cameras.
What is the Uniview ONVIF port?
The camera’s HTTP port, 80 by default.
Loki Eye records your cameras to your own disk on Windows, macOS, and Linux. Free for two cameras, with no account.
Download free