Vigiora

Denne artikkelen finnes ikke på Norsk bokmål ennå. Her er den på engelsk.

Set up Lorex cameras or a Lorex recorder with a self-hosted NVR

How to record Lorex cameras on your own Vigiora Server. Which Lorex products have a local stream, the stream address for a camera and for a channel of a Lorex recorder, and what Vigiora finds by itself.

· 5 min lesing · Vis som Markdown

Del
A text card that reads Lorex, works with Vigiora on wired models, and the stream address pattern rtsp://user:password@camera:554/cam/realmonitor?channel=1&subtype=0

Lorex kits are in many homes, cottages and small shops in Canada: a recorder, four or eight wired cameras, and one app. The wired cameras and many of the recorders can also send their video to other software. That means you can record them on a Vigiora Server, with or without the Lorex recorder.

This guide shows which Lorex products can do it, the stream addresses, and the two ways to connect.

Which Lorex products have a local stream#

ProductLocal stream (RTSP)ONVIF
Wired PoE camerasYesYes
Recorders (NVR and DVR)On certain modelsDepends on the model
Wi-Fi camerasDepends on the model and firmwareUsually no
Battery cameras and doorbellsNoNo

Lorex says in its own RTSP article that RTSP works with certain models of recorders and IP cameras, and it does not list them. So test yours first, as shown below. Battery cameras and doorbells are built for the Lorex app and cannot be recorded by another program.

The stream addresses#

Replace the user, password and address with your own.

StreamAddress
Mainrtsp://user:password@192.0.2.21:554/cam/realmonitor?channel=1&subtype=0
Subrtsp://user:password@192.0.2.21:554/cam/realmonitor?channel=1&subtype=1

subtype picks the stream: 0 is the main stream, 1 is the smaller sub-stream. The port is 554 unless you changed it.

channel is 1 when the address is a camera. When the address is a recorder, channel is the number of the camera on it: the third camera is channel=3.

Two diagrams: cameras on a network switch read directly by Vigiora Server, and cameras plugged into a Lorex recorder read through the recorder with channel numbers
The two ways to connect. A drawn diagram, not a screenshot.

Way 1: read the cameras directly#

Use this when the cameras are plugged into your own network switch or PoE switch, so each camera has an address on your network.

  1. Scan

    In Vigiora, open Monitors → Add Monitor → On this network. The scan lists the cameras it finds, with maker and model.

  2. Type the login

    Pick a camera and type its user name and password. Vigiora asks the camera for its main and sub streams.

  3. Save

    Check the picture and save. Repeat for the other cameras.

Way 2: read the cameras through the Lorex recorder#

Use this when the cameras are plugged into the back of the Lorex recorder. Those ports form a small private network inside the recorder, so the cameras are not visible from your own network. The recorder passes their video on.

  1. Find the recorder's address

    On the recorder, open the network or system information page and note its IP address.

  2. Test one channel

    Open the main address above in VLC (Media → Open Network Stream) with the recorder's address and channel=1. If a picture appears, your recorder supports RTSP.

  3. Add each channel in Vigiora

    Open Monitors → Add Monitor → I have the RTSP URL and paste the main address. Vigiora tries the matching subtype=1 sub-stream by itself. Add one monitor for each channel.

With this way, the Lorex recorder keeps recording too. Many people run both for a few weeks, and then decide whether to keep the recorder or move the cameras to a PoE switch.

What Vigiora finds for you#

Current wired Lorex cameras use the same stream addresses as Dahua cameras, and Vigiora treats them the same way.

  1. The scan finds the camera with its maker and model.
  2. It asks for the streams over ONVIF, main and sub.
  3. If ONVIF refuses the login, it tries the main stream address once with the same login before it gives up.
  4. If ONVIF does not answer, it tries the addresses above, and the sub-stream comes with the main one.

If a camera sits on a factory address that clashes with another device, an administrator can click Move camera to DHCP. See Move a camera to DHCP.

Vigiora stops at the first refused password and does not send the same wrong password to that camera again for 30 minutes, so a typing mistake does not lock the camera.

Recording: main stream or sub-stream#

  • Record the main stream at the door, the till and the driveway, where you may need to read a face.
  • Record the sub-stream with Record low quality (sub-stream) elsewhere. It saves most of the disk. See Main stream or sub-stream?.
  • A 4K camera writes about four times the data of a 1080p one. See Camera resolution, pixels and night vision for the sums.
  • The free plan has no camera limit and includes AI on 2 cameras.

Troubleshooting#

  • No picture in VLC from the recorder. Your recorder may be one of the models without RTSP, or an older one with a different address. Some older Lorex recorders use rtsp://user:password@192.0.2.21:554/ch01/0 for the main stream and /ch01/1 for the sub-stream.
  • Wrong camera. Check channel=. It is the camera's number on the recorder.
  • Login refused on a new camera. Newer Lorex cameras have no factory password. Set one in the camera's web page, or let the Lorex recorder set it, before you add the camera.
  • No sub-stream. Check that the second stream is switched on in the camera's or recorder's video settings, then save the monitor again. See No sub-stream.
  • The camera vanished after a power cut. Vigiora follows a camera to a new address by its hardware ID. See Fixed IPs and rediscovery.
  1. Add a camera

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

  2. See them from the cottage or from town

    Remote access with no port to open: View your cameras from anywhere without port forwarding.

  3. Troubleshooting

    Missing stream, wrong path or freezes: Troubleshooting cameras.

Del

Prøv det på dine egne kameraer

Vigiora Server er gratis med ubegrenset antall kameraer. AI på 2 kameraer er gratis i kampanjeperioden. Installer det på en Linux-maskin med én kommando.