
纯 C#/.NET 版 Reolink 相机桥接与 NVR — RTSP 重传、多相机 Web UI、事件录制
English · Français · Deutsch · Español · Nederlands · Polski · Português
RTSP bridge + web viewer for Reolink cameras that speak the proprietary Baichuan protocol.
Neolink.NET is for Reolink IP cameras that talk the proprietary "Baichuan" protocol on TCP port 9000 instead of standard RTSP/ONVIF (B800/D800, B400/D400, E1, Lumus, 510A, Duo, TrackMix, and many others).
Your NVR software (Frigate, Blue Iris, Home Assistant, Shinobi, VLC, ffmpeg, …) connects to Neolink.NET, which logs into the camera, demuxes its media stream, and re-serves it as standards-compliant RTSP. On top of that, Neolink.NET ships a built-in browser UI — a multi-camera wall with live low-latency video, no plugins, no transcoding, no GStreamer — and a native MQTT integration for Home Assistant: each camera appears in HA automatically (via MQTT Discovery) with motion/person/vehicle/animal sensors, controls, and availability, driven by the camera's own detections.
The cameras are unmodified and no Reolink NVR is required.
┌──────────┐ Baichuan (9000) ┌─────────────────┐ RTSP (8654) ┌──────────────────┐
│ Reolink │ ────────────────► │ │ ─────────────► │ Frigate / VLC / │
│ cameras │ │ Neolink.NET │ │ Blue Iris / HA │
└──────────┘ │ (one process) │ HTTP/WS (8655)┌──────────────────┐
│ │ ─────────────► │ Browser web UI │
└─────────────────┘ └──────────────────┘Events page — deep-linkable review, filters, 1–16× playback
Timeline — synced scrubbing, event marks, export
Monitor — server health, camera uptime, fill forecasts
Recording setup — events, 24/7, lifecycle, per camera
Camera settings — staged changes, applied only when you say so
All screenshots show synthetic demo footage.
A note on camera coverage
Reolink ships a large and ever-growing range of cameras, and their firmwares genuinely differ — the same feature can work on one model, answer differently on the next, and be broken outright on a third. Neolink.NET is developed and tested against the cameras I actually own, which is a handful, not the catalogue: cameras are expensive, and I maintain this project alone in my spare time. So: everything here works on the models it was built against; on models I've never touched, it should work, but I simply cannot promise it until someone with that hardware tells me.
This is where you come in. If your camera misbehaves, an issue with logs is genuinely valuable — most model-specific quirks in this project were found and fixed exactly that way. And if you can go one step further, pull requests are very welcome: a fix validated on hardware I don't have is the one contribution I cannot make myself.
docker run --rm -p 8655:8655 ghcr.io/borexola/neolink.net:latest --demoOpen and you're looking at the real product with a fake
world behind it: four synthetic cameras with live moving video, detections
firing every minute or two, a seeded event history, 24/7 recordings scrubbing
on the timeline. No real footage anywhere, nothing saved — the demo world
lives in a temp folder, resets itself every six hours, and vanishes with the
container. The same showroom runs on bare metal too: neolink.net --demo
(needs ffmpeg on PATH).
Running Home Assistant OS (or Supervised)? Neolink.NET installs as a native add-on — no Docker commands, no YAML files:
https://github.com/borexola/neolink.net), then install Neolink.NET.If the Mosquitto broker add-on is installed, the MQTT connection is wired
up automatically at every start — cameras appear as Home Assistant devices with
no further setup. Recordings land in /media/neolink, so clips show up in HA's
media browser. Full details in the add-on's Documentation tab
(neolink-addon/DOCS.md).
Prefer to write the config yourself? Empty the add-on's camera list
(cameras: []) and it stops touching cameras — then edit config.json in
/addon_configs/…_neolink/ (Samba/SSH/Studio Code Server) and restart. That
folder also holds settings.json and the rest of the UI state. Every option
below works there; a // comment in the file stops the add-on merging
anything at all, MQTT included. For a NAS, add it under Settings → System →
Storage and point path/archive_path at /media/ or
/share/ — add-ons cannot take Docker-style volume mappings.
Running Home Assistant in a plain container (no Supervisor)? Use the Docker route below — everything works the same, including the MQTT integration.
Full guide: docs/docker-install.md — image
tags, docker compose, Unraid template, upgrading, building the image yourself.
mkdir -p config
docker run -d --name neolink --restart unless-stopped \
-p 8654:8654 -p 8655:8655 \
-e TZ=Europe/London \
-v "$PWD/config:/config" \
ghcr.io/borexola/neolink.net:latestFirst start writes a commented starter config into config/ and opens the
**web UI at ** — add your cameras under Server settings
(the gear icon) with the same login you use in the Reolink app, restart, and
streams serve at rtsp://localhost:8654/. Images are multi-arch
(amd64 + arm64: x86 servers, Raspberry Pi 4/5, ARM NAS); pin a version tag
like :1.0.1 in production.
Host networking (
--network host) is required for UDP-only battery cameras and RTSP over UDP transport — everything else works with plain port mapping.
Step-by-step with screenshots: docs/windows-install.md
— every click from download to your cameras on screen.
One MSI, two shapes. Download Neolink.NET.Desktop-X.Y.Z-win-x64.msi from the
releases page and run it:
http://localhost:8655, and cameras, accounts and recording all get set up
from the web UI there.The MSI is not code-signed yet, so SmartScreen shows "Windows protected your PC" on first run — click More info → Run anyway. Details in the desktop guide.
Requires the .NET 10 SDK.
git clone https://github.com/borexola/neolink.net.git
cd neolink.net
cp src/Neolink.Server/config.example.json src/Neolink.Server/config.json # edit it
dotnet run --project src/Neolink.Server -c ReleaseSingle-file, self-contained binaries:
dotnet publish src/Neolink.Server -c Release -r linux-x64 # or win-x64, linux-arm64, ...Neolink.NET runs no object detection of its own: it never decodes, transcodes, or analyses a single video frame for motion or AI. All of that already happens on the camera, whose dedicated silicon detects motion and classifies people, vehicles and animals in real time. Neolink.NET simply listens for the alarm messages the camera pushes over the Baichuan connection (the same events that drive Reolink's own app) and relays them to Home Assistant as MQTT sensors — and doorbell button presses as MQTT events. That means:
The trade-off is that detection quality and available classes are whatever your camera model provides (rather than a tunable server-side model like Frigate's); in exchange you get an integration light enough to leave running forever.
RTSP bridge
Web UI (optional, built in) — full tour in docs/web-ui.md
暂无开放 Issues,或尚未同步最近议题。