From 392939ac536ebf58c89afb6ac5f576f078ad4f4c Mon Sep 17 00:00:00 2001 From: ginnoir Date: Thu, 8 Oct 2026 01:14:00 -0500 Subject: [PATCH] =?UTF-8?q?docs(cameras):=20E1=20has=20no=20RTSP=20?= =?UTF-8?q?=E2=80=94=20bridge=20via=20neolink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- ...026-10-08-reolink-camera-frigate-design.md | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/docs/superpowers/specs/2026-10-08-reolink-camera-frigate-design.md b/docs/superpowers/specs/2026-10-08-reolink-camera-frigate-design.md index 3031054..b9b237d 100644 --- a/docs/superpowers/specs/2026-10-08-reolink-camera-frigate-design.md +++ b/docs/superpowers/specs/2026-10-08-reolink-camera-frigate-design.md @@ -25,9 +25,12 @@ explicitly **out of scope**. ## Architecture ``` -Reolink E1 (WiFi, RTSP :554) - │ main stream (h264Preview_01_main) ──► go2rtc (inside frigate) ──► browser MSE via Caddy - │ sub stream (h264Preview_01_sub) ──► frigate detect (OpenVINO CPU) +Reolink E1 (WiFi, 192.168.1.99) — Baichuan :9000 ONLY (no RTSP/RTMP/HTTP/ONVIF) + │ + ▼ +neolink (Baichuan → RTSP bridge, serves rtsp://neolink:8554/e1/{mainStream,subStream}) + │ mainStream ──► go2rtc (inside frigate) ──► browser MSE via Caddy + │ subStream ──► frigate detect (OpenVINO CPU) ▼ frigate ──snapshots──► /storage1/labdata/frigate/ ▲ @@ -35,13 +38,21 @@ frigate ──snapshots──► /storage1/labdata/frigate/ frigate-notify ──► https://ntfy.ginnoir.com/ (snapshot attached) ``` -go2rtc re-streams the camera, so the E1 sees one RTSP client no matter how many viewers -there are. The E1 handles few concurrent connections. +**The original E1 has no RTSP.** A port probe from valhalla on 2026-10-08 found only 9000 +open (80/443/554/1935/8000 closed), and the app's Server Settings shows only the media port. +Neolink speaks Reolink's proprietary Baichuan protocol on :9000 and re-serves the streams +as RTSP. It is the only camera client. go2rtc re-streams neolink, so the E1 sees one +Baichuan session no matter how many viewers there are. ## Components ### `stacks/cameras/docker-compose.yml` (new Portainer git stack) +- **`neolink`** + - `quantumentangledandy/neolink:` (the maintained fork) + - Config at `/config/neolink/neolink.toml`: camera `e1`, `address = "192.168.1.99:9000"`, + username/password, `stream = "both"` + - Network: `cameras` only. The RTSP output is unauthenticated, but only frigate can reach it - **`frigate`** - `ghcr.io/blakeblackshear/frigate:` (non-GPU image; OpenVINO CPU is built in) - `env_file: stack.env`, `shm_size: 256mb`, tmpfs `/tmp/cache` (1 GB) @@ -60,8 +71,9 @@ there are. The E1 handles few concurrent connections. Var names are exactly what the containers read: -- `FRIGATE_RTSP_USER`, `FRIGATE_RTSP_PASSWORD`, `FRIGATE_CAMERA_HOST` - - Frigate substitutes `{FRIGATE_*}` into stream URLs, so no credentials end up in config.yml +- Camera credentials do **not** go here. Neolink's TOML has no env substitution, so they + live in `stacks/cameras/neolink/neolink.toml` (secrets are versioned in the private repo + by policy), which is seeded to `/config/neolink/` - frigate-notify ntfy settings: server `https://ntfy.ginnoir.com`, topic, and an ntfy access token (ntfy has `NTFY_ENABLE_LOGIN=true`) @@ -75,7 +87,8 @@ Var names are exactly what the containers read: - `auth.enabled: false` - `proxy.header_map.user: x-authentik-username` - `detectors: ov: {type: openvino, device: CPU}` with the bundled SSDLite model - - `go2rtc.streams.e1` = main stream, `e1_sub` = sub stream + - `go2rtc.streams.e1` = `rtsp://neolink:8554/e1/mainStream`, + `e1_sub` = `rtsp://neolink:8554/e1/subStream` - `cameras.e1`: - Detect role on `rtsp://127.0.0.1:8554/e1_sub`, 640×360 at 5 fps - `record.enabled: false` @@ -105,11 +118,13 @@ cam.ginnoir.com { ## Camera-side prerequisites (manual, ginnoir) -1. In the Reolink app, enable RTSP: Settings → Network → Advanced → Server Settings. -2. Create a dedicated non-admin camera user if the firmware allows. Otherwise use the - admin credentials. -3. Add a DHCP static reservation in OPNsense, then put that IP in `FRIGATE_CAMERA_HOST`. -4. Make sure the E1 is on a 2.4 GHz SSID with decent signal. WiFi drops show up as Frigate +1. ~~Enable RTSP~~: not available on the E1. Neolink replaces it. +2. Camera credentials: admin account (provided 2026-10-08). +3. DHCP static reservation in OPNsense for 192.168.1.99 (confirm it is a reservation, not + just the current lease). +4. Keep the Reolink app free of other viewers during testing. The E1 allows few + simultaneous Baichuan sessions. +5. Make sure the E1 is on a 2.4 GHz SSID with decent signal. WiFi drops show up as Frigate "no frames" warnings. ## Error handling / operations @@ -123,6 +138,7 @@ cam.ginnoir.com { ## Verification +0. `neolink` logs show a login to `e1` and both streams available. 1. The `frigate` container stays healthy. Its logs show the `e1` and `e1_sub` streams connected and the OpenVINO detector loaded on CPU. 2. `https://cam.ginnoir.com` redirects to Authentik on the LAN. After login it shows a