Cameras: video surveillance on the NAS itself
The Cameras app turns the NAS into the recorder for the cameras you already own. Each camera records to your disk, in your folder, and you watch it from the panel without going through the manufacturer's cloud or their app.
What it does: find the cameras on your network, show the live view, record in chunks, keep the recordings for as long as you say and let you review them. What it does not do, on purpose: move the camera (PTZ), configure it or motion detection. The manufacturer's app is there for that, and it does it better.
Adding a camera
Cameras → Add. There are three routes, in this order:
1. Search the network (ONVIF)
The Search for cameras button sends a probe to every network the NAS is on and lists the ones that answer, with their name and model. You pick one, enter the camera's username and password —the camera's, not the NAS's— and it tells you its own video address.
This is the good route: every manufacturer writes the RTSP address differently and hunting for it in the manual is exactly what makes people give up.
If none show up:
- ONVIF ships switched off on many cameras (Reolink, Tapo, Ezviz…). You turn it on from their phone app, usually under Advanced settings → ONVIF, and it normally asks you to create a separate user there for it. This is reason number one.
- The camera and the NAS have to be on the same network. A camera on the guest Wi-Fi or on another VLAN never gets the probe, which does not cross routers.
- Some cameras only answer during the first minute after powering up. Restart it and search again.
- If nothing works, carry on with the other two routes: you are not left without a camera.
2. By brand
If you know the brand, pick it from the list and enter the IP, the username and the password: the NAS builds that brand's known address (Hikvision, Dahua, Reolink, Tapo, Foscam, Axis and the generic ones). No ONVIF needed.
3. By hand
By pasting the full RTSP address, if you know it:
rtsp://username:password@192.168.1.60:554/Streaming/Channels/101
In all three cases, Test connects to the camera before saving and says what happened: if the password is wrong, if it does not answer or if the video cannot be understood. Saving a camera that does not work is no use to anyone.
Recording
Each camera records into the folder you choose, inside a shared folder (so it shows up over SMB and goes into the backups like everything else). Recording is continuous and split into chunks of a few minutes: if something breaks, you lose one chunk, not the whole day.
- Days of retention: how long recordings are kept before deleting themselves. Think about the disk: a 1080p camera takes on the order of 20–40 GB a day at high quality.
- Size cap: in case the sum above gets away from you. On reaching the cap the oldest recordings are deleted even if they have not served their days.
- The clean-up runs on its own; there is also a button to run it right now.
Video is stored exactly as the camera sends it, without re-encoding: the NAS spends no CPU on this and a modest machine copes with several cameras at once.
Watching the live view and the recordings
- Live: the panel shows the camera's picture. Nothing to install.
- Recordings: the list of chunks by day and hour, with their size. You watch them in the browser or download them.
Each camera records with its own system service (lgm-camara@<id>), so a camera that hangs does not drag the others down with it.
How the live view gets to you (and why it matters)
The live video arrives exactly as it leaves the camera, without re-encoding, and the browser plays it with under a second of delay. The NAS decodes nothing: it only splits it up. The corner of the picture says DIRECTO when it is working that way.
If the camera records in H.265, hardly any browser can paint it that way, so the panel switches itself to MJPEG —and says so in the corner—. That one does re-encode and does use the processor, which is exactly what is avoided in the normal case. If your camera allows it, set it to H.264: you will notice it in the NAS's load.
One single connection per camera. It does not matter how many people are watching the same camera or how many tabs you have open: the NAS opens one connection to it and shares the picture out. It matters because many home cameras only accept a couple of video connections at once and, past those, they start failing —recording included—. When the last window closes, the connection is released a few seconds later; reloading the page does not force a fresh negotiation with the camera. System check → Cameras shows how many live views are open right now.
Network tips
- Give every camera a fixed IP on the router (a reservation by MAC). If the router changes its IP, recording stops until you fix the address. If you use the NAS's DHCP, the reservation is made from the panel.
- Use the secondary channel (sub stream) if you only want surveillance and not cinema quality: it takes a quarter of the space.
- Do not open the cameras' port on the router. Cheap cameras are among the most attacked things there are. To watch the live view from outside, come in through the VPN.
- The recordings are ordinary files inside a shared folder: they go into the backups if you include that folder —and mind the size if you do.