Installation¶
Prerequisites¶
- A Debian-based Proxmox LXC running systemd as PID 1.
- Root access during installation and service setup.
ffmpeg,curl,findutils, andgit.- go2rtc installed separately with a
go2rtc.serviceunit. - A writable recording mount, preferably mounted before the recorder starts.
Camera selection¶
Pair this recorder with security cameras that perform detection on the device. This project stores continuous video but does not generate motion or object alerts. Camera-side detection can provide those alerts without adding a video analysis workload to the LXC.
Choose a mains-powered or Power over Ethernet (PoE) camera that exposes a continuous Real-Time Streaming Protocol (RTSP) stream. Open Network Video Interface Forum (ONVIF) support is also useful for compatibility with other local software. Confirm these features for the exact hardware revision before buying. Many battery-powered cameras do not expose a continuous local stream. Tapo maintains a list of models with RTSP and ONVIF support.
The author's installation uses the Tapo C100 indoors and Tapo C320WS outdoors. Both work well with this recorder. These cameras and the alternatives below perform detection on the camera and provide a local stream:
| Model | Placement and network | On-device detection | Local stream |
|---|---|---|---|
| Tapo C100 | Indoor, 2.4 GHz Wi-Fi | Motion; other detection types vary by revision and region | RTSP and ONVIF |
| Tapo C320WS | Outdoor, Ethernet or 2.4 GHz Wi-Fi | Motion, person, vehicle, intrusion, and line crossing | RTSP and ONVIF |
| Tapo C120 | Indoor or outdoor, 2.4 GHz Wi-Fi | Motion, person, vehicle, pet, sound, and line crossing | RTSP and ONVIF |
| Tapo C225 | Indoor pan and tilt, 2.4 GHz Wi-Fi | Motion, person, vehicle, pet, and line crossing | RTSP and ONVIF |
| Reolink RLC-820A | Indoor or outdoor, PoE | Motion, person, vehicle, and animal | RTSP |
Install packages with:
Install from a clone¶
git clone <your-repository-url> /opt/camera-recording
cd /opt/camera-recording
cp config/camera-recorder.conf.example /etc/camera-recorder.conf
cp config/go2rtc.yaml.example /etc/go2rtc/go2rtc.yaml
# Edit both files with your camera details.
./install.sh
install.sh copies scripts to /usr/local/bin, units to
/etc/systemd/system, creates /media/recordings, reloads systemd, and enables
the three maintenance timers and four recorder instances. It preserves an
existing /etc/camera-recorder.conf.
Install without Git¶
Copy this repository to the LXC by any trusted method, then run the same
./install.sh command from its directory. Do not copy recordings or private
configuration files into the repository archive.
Verify¶
systemctl list-timers --all | grep camera
systemctl --no-pager --type=service 'camera-recorder@*'
systemctl is-active go2rtc.service
If go2rtc has a different unit name, update the Requires= line in
systemd/camera-recorder@.service before installation.