Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bcpcap
command
Command bcpcap decodes a Baichuan conversation out of a packet capture.
|
Command bcpcap decodes a Baichuan conversation out of a packet capture. |
|
bcprobe
command
Command bcprobe connects to one camera and writes its video elementary stream to stdout.
|
Command bcprobe connects to one camera and writes its video elementary stream to stdout. |
|
reocam
command
Command reocam controls a camera over Baichuan.
|
Command reocam controls a camera over Baichuan. |
|
reoevent
command
Command reoevent turns a battery camera's cloud event reports into local MQTT.
|
Command reoevent turns a battery camera's cloud event reports into local MQTT. |
|
reostream
command
Command reostream serves Reolink camera video as MPEG-TS over HTTP for every camera listed in a config file, reconnecting failed streams with backoff and never running two connections to the same stream at once.
|
Command reostream serves Reolink camera video as MPEG-TS over HTTP for every camera listed in a config file, reconnecting failed streams with backoff and never running two connections to the same stream at once. |
|
talkstop
command
|
|
|
internal
|
|
|
adpcm
Package adpcm encodes 16 bit mono PCM as IMA ADPCM, the "DVI4" variant the Reolink cameras accept for two-way audio.
|
Package adpcm encodes 16 bit mono PCM as IMA ADPCM, the "DVI4" variant the Reolink cameras accept for two-way audio. |
|
alarms
Package alarms follows a camera's own detection state: it holds a Baichuan session subscribed to alarm events (message 31, then 33 pushes) and reports each change -- motion starting or stopping, an object type appearing or going away.
|
Package alarms follows a camera's own detection state: it holds a Baichuan session subscribed to alarm events (message 31, then 33 pushes) and reports each change -- motion starting or stopping, an object type appearing or going away. |
|
baichuan
Package baichuan implements the Reolink Baichuan protocol.
|
Package baichuan implements the Reolink Baichuan protocol. |
|
bcevent
Package bcevent interprets the cloud event reports a battery camera emits (bcudp cf31 packets) as motion, recording and status.
|
Package bcevent interprets the cloud event reports a battery camera emits (bcudp cf31 packets) as motion, recording and status. |
|
bcudp
Package bcudp carries a Baichuan byte stream over the UDP transport that battery cameras speak instead of TCP port 9000.
|
Package bcudp carries a Baichuan byte stream over the UDP transport that battery cameras speak instead of TCP port 9000. |
|
cgi
Package cgi talks to a Reolink camera's HTTP API.
|
Package cgi talks to a Reolink camera's HTTP API. |
|
config
Package config loads the TOML file that lists the cameras reostream serves.
|
Package config loads the TOML file that lists the cameras reostream serves. |
|
control
Accounts: read only, on purpose, with no exception carved out anywhere in this file.
|
Accounts: read only, on purpose, with no exception carved out anywhere in this file. |
|
fakecam
Package fakecam fakes a Baichuan camera for tests, without a socket library of its own and without any protocol logic.
|
Package fakecam fakes a Baichuan camera for tests, without a socket library of its own and without any protocol logic. |
|
fakenvr
Package fakenvr fakes a Reolink NVR's Baichuan port for tests: it logs a client in, then serves every preview the client asks for, as many as it asks for and on as many channels, interleaved on the one connection the way a recorder interleaves them.
|
Package fakenvr fakes a Reolink NVR's Baichuan port for tests: it logs a client in, then serves every preview the client asks for, as many as it asks for and on as many channels, interleaved on the one connection the way a recorder interleaves them. |
|
frames
Package frames serves a camera stream's access units over HTTP, one length-prefixed record per frame, for a client that owns its own decoder.
|
Package frames serves a camera stream's access units over HTTP, one length-prefixed record per frame, for a client that owns its own decoder. |
|
ftpd
Package ftpd is the small FTP server cameras upload their clips to.
|
Package ftpd is the small FTP server cameras upload their clips to. |
|
hub
Package hub broadcasts MPEG-TS chunks from one camera goroutine to any number of HTTP clients.
|
Package hub broadcasts MPEG-TS chunks from one camera goroutine to any number of HTTP clients. |
|
mp4read
Package mp4read reads the video track of the MP4 files Reolink cameras write (to their SD card, and over FTP): one plain, non-fragmented moov with an avc1 or hvc1 track.
|
Package mp4read reads the video track of the MP4 files Reolink cameras write (to their SD card, and over FTP): one plain, non-fragmented moov with an avc1 or hvc1 track. |
|
mqtt
Package mqtt is a minimal MQTT 3.1.1 client: enough to feed motion and status into mosquitto / Home Assistant / Frigate, and to hear another tool's motion (Subscribe), without pulling in a full client library.
|
Package mqtt is a minimal MQTT 3.1.1 client: enough to feed motion and status into mosquitto / Home Assistant / Frigate, and to hear another tool's motion (Subscribe), without pulling in a full client library. |
|
presence
Package presence keeps a battery camera present to a recorder without waking it.
|
Package presence keeps a battery camera present to a recorder without waking it. |
|
rtsp
Package rtsp serves camera streams over RTSP.
|
Package rtsp serves camera streams over RTSP. |
|
server
Package server exposes hub streams as MPEG-TS over HTTP.
|
Package server exposes hub streams as MPEG-TS over HTTP. |
|
stream
Package stream joins one camera to one hub: dial, depacketize, mux, publish, on repeat until the context is canceled or something fails.
|
Package stream joins one camera to one hub: dial, depacketize, mux, publish, on repeat until the context is canceled or something fails. |
|
supervisor
Package supervisor keeps every configured camera stream running, one goroutine per stream, restarting it with backoff when it fails.
|
Package supervisor keeps every configured camera stream running, one goroutine per stream, restarting it with backoff when it fails. |
|
talk
Package talk plays audio from an RTSP client through a camera's speaker.
|
Package talk plays audio from an RTSP client through a camera's speaker. |
|
ts
Package ts muxes decoded camera frames into an MPEG-TS byte stream.
|
Package ts muxes decoded camera frames into an MPEG-TS byte stream. |
|
webui
Package webui is the session, auth and rendering plumbing behind the reostream daemon's operator page -- one process, one page, covering both the fleet and the cameras on it.
|
Package webui is the session, auth and rendering plumbing behind the reostream daemon's operator page -- one process, one page, covering both the fleet and the cameras on it. |
Click to show internal directories.
Click to hide internal directories.

