Skip to content
English
  • There are no suggestions because the search field is empty.

Adding Cameras to you AiVR

How to Discover, Add and Verify IP Cameras on Your Alocity AiVR

The AiVR finds cameras on its local network, pulls one stream from each camera, records it and runs AI detection on it. This article explains how to prepare cameras, discover them with a network scan, add them, add a camera manually by RTSP, and confirm each one is streaming correctly.


1. Before You Start

The AiVR finds cameras through ONVIF and reads their video over RTSP, but it can't change camera settings. Every setting is made on the camera itself. Check that:


2. Prepare Each Camera

Some cameras work with the AiVR straight out of the box; others need ONVIF switched on, a separate streaming user, or the clock corrected. Check each camera from its web interface, or through the NVR for cameras an NVR manages.

  1. Reach the camera. Find its address in the manufacturer's discovery tool, the router's DHCP list or the NVR's camera list. Some new cameras must be activated with a password before they stream.
  2. Set the time. Point the camera at an NTP server and set the correct time zone. ONVIF logins are time-stamped, so a camera whose clock is wrong rejects correct credentials as "unauthorized".
  3. Confirm the credentials. Find out which account opens the stream. Some cameras use the main account for everything, and some need a separate ONVIF user. If you create a user, avoid the characters @ : / # ? % in its password, because they break RTSP addresses.
  4. Turn on ONVIF if it's off. Look in the network settings for ONVIF, Integration Protocol or Platform Access.
  5. Get the RTSP URL. See Common RTSP Stream URLs by Camera Manufacturer.
  6. Test it. From a laptop on the same network, open the RTSP URL in a media player that supports RTSP, such as VLC (Media › Open Network Stream). If the video plays, the AiVR can use it.
  7. Fix the address. Give the camera a DHCP reservation or a static IP. The AiVR connects by IP address, so a camera whose address changes drops off until the AiVR is updated.

IMPORTANT: The NVR's login is not the camera's login. The camera streaming login is what the AiVR uses. It's often the same as the camera's web login, but some cameras keep a separate ONVIF user list. Always test credentials directly against the camera, not the recorder.

Note: Many cameras lock an account for a few minutes after repeated failed logins. Test the credentials from your laptop before entering them on the AiVR.


3. Cameras Managed by an Existing NVR or VMS

  • Credentials. Recorders often change camera passwords when they adopt a camera. Get the camera credentials from the site owner or previous integrator, or from the camera entries in the NVR's settings, and test them directly against the camera.
  • Cameras on an NVR's built-in PoE ports. These sit on a private network inside the NVR (often 192.168.254.x) that the AiVR can't reach. Prepare the camera through the NVR (often called virtual host), then move it to a PoE switch on the AiVR's network.
  • Old recorder still running. Two recorders means the camera sends two streams, which can overload a low-cost camera, and a VMS can overwrite the settings you apply for the AiVR. Plan the switchover.
  • Video through the old recorder. Most NVRs can re-stream their channels over RTSP, but the AiVR then can't adjust the camera and depends on the old recorder staying up. Check with Alocity support before planning this.
  • Unknown credentials. Ask the manufacturer's support about password recovery first. A factory reset is the last resort: it erases every setting, including the IP address.

4. Check for a Free Camera Slot

Open AiVR, click the AiVR's name and look at CAMERA SLOTS on the Camera Streams tab. Each stream uses one slot. A four-sensor camera uses four slots. If every slot is used, the Add → buttons in the scan results are greyed out with the message No camera slots available.


5. Scan the Network for Cameras

  1. Go to AiVR and click the AiVR's name.
  2. On the Camera Streams tab, click Scan network.
  3. The Scan network window opens and starts discovering RTSP and ONVIF cameras on the AiVR's local network. The status changes from Scanning… to Scan complete, usually within 10–20 seconds.

The left panel shows counters for FOUND, NEW and ADDED cameras and a log of the scan. The right panel lists every camera found. Use the chips All, Already added and New to filter the list. Each result card shows a thumbnail if available, the camera's name, IP address and port, Online or Offline, the protocol (RTSP or ONVIF), an amber in use chip if it's already on this AiVR, and the manufacturer and MAC address.


6. Add a Discovered Camera

  1. Click Add → on the camera's card. (Cameras already added show View → instead.)
  2. Under IDENTIFY, enter a Name that describes the camera's view, for example "Front Door Exterior".
  3. Under CONNECTION, enter the camera's streaming User and Password. Check the IP and Port (554 by default) and the Append URL.
  4. Under PLACE, select the Zone (site and area) the camera belongs to.
  5. Click Test stream and wait for the preview to play.
  6. Click Save. The camera takes a slot and appears on the Camera Streams tab.


7. Add a Camera Manually by RTSP

With ONVIF working, the AiVR reads the stream address from the camera by itself. Use a manual RTSP connection when ONVIF isn't available or the scan doesn't find the camera. Split the camera's RTSP URL into the form fields:

Part of the URL Example Form field
Camera login admin:password User / Password
Camera IP 10.156.59.230 IP
RTSP port 554 Port
Everything after the port profile2/media.smp Append URL

Leave INFERENCE URL blank. The AI analyzes the same stream the AiVR records. For the stream paths used by common manufacturers, see Common RTSP Stream URLs by Camera Manufacturer.

Tip: Don't count rows in the camera's profile list to guess the profile number. A profile listed fourth can still be profile2 in the URL. Test the full URL in VLC before saving.


8. Fisheye and Multi-Sensor Cameras

  • Fisheye: appears as one camera and one stream. Dewarping (Virtual PTZ, Panorama, Quad) is done in the player. See Alocity as a VMS. If the camera offers separate fisheye and quad channels, add only the channel the site needs; each channel added is a separate stream.
  • Multi-sensor and PTZ: usually one address per sensor or view. Add each sensor as its own stream, using the sensor or channel number in the Append URL. Each sensor uses one camera slot.

9. Confirm the Camera Is Working

  • The camera's card shows Live and REC.
  • The codec and resolution on the card match the profile set on the camera.
  • STREAMING increases by one and the camera doesn't appear under Degraded or Offline.

Note: Live view can take up to a minute to start after a camera is added. Changing a camera's stream settings while the AiVR is connected can drop the stream briefly; the AiVR reconnects on its own.


10. Managing an Added Camera

  • ⋮ menu on the camera card: Change Location or Remove. Removing a camera frees its slot.
  • View → in the scan results, or the camera card, opens the camera panel with the tabs Stream, Recording, AI Agents, License Plate Access, Privacy & Zones and Advanced.
  • The Stream tab shows the live preview, codec, resolution, STREAM URL, INFERENCE URL, MAC address and manufacturer, plus the connection fields. Use Test stream and Save after any change.


11. Troubleshooting

Symptom Likely cause Fix
Camera isn't discovered AiVR and camera on different VLANs; ONVIF off or no ONVIF user; non-standard ONVIF port Same VLAN, or route multicast UDP 3702; enable ONVIF and create a user; give Alocity support the ONVIF port (often 8000 or 8080)
Discovered but won't add Camera clock wrong; wrong RTSP port or credentials; NVR login used instead of the camera's Point the camera at an NTP server; confirm the RTSP port (554 by default) and the camera's own streaming account
401 Unauthorized Wrong credentials, special characters in the password, or account locked after failed logins Test the login against the camera; avoid @ : / # ? % in the password; wait for the lockout to clear
404 or stream not found Wrong path or profile number Use an ONVIF test tool to read the exact stream URL; see Common RTSP Stream URLs by Camera Manufacturer
Camera keeps going offline IP address changed; camera overloaded by extra streams or on-camera analytics DHCP reservation or static IP, then notify Alocity support of any change; turn off unused streams and on-camera analytics
Works in VLC, fails on the AiVR Camera clock wrong, or codec not set on the stream Set NTP; try H.264 if H.265 shows grey frames
Wrong view on a multi-sensor camera Channel or sensor index Hanwha starts at 0, most other brands at 1
Add → is greyed out No camera slots available Remove an unused camera or add another AiVR

For picture quality and detection problems, see the troubleshooting table in Best Camera Configuration for AiVR.

For questions or assistance, please contact your account manager or email support@alocity.com.