Dominevo

How it works

The path a frame takes — from the camera's RTSP stream to a notification on your phone — and which stage each setting acts on.

This page follows a frame from the camera to your phone, so you know which stage each later setting belongs to.

You do not need this page to install Dominevo. You need it the first time something does not behave the way you expected, because almost every confusing setting is confusing only until you know which stage it acts on.

The short version

camera ──RTSP──▶ stream broker ──▶ decode ──▶ motion ──▶ object detection ──▶ tracks
                      │                                                         │
                      ├──▶ live view (WebRTC)                                   ├──▶ enrichment
                      └──▶ recording                                            └──▶ notifications

Two things about this diagram matter more than the boxes:

  • The broker is the only thing that talks to the camera. Live view, recording and detection are all consumers of the same connection. Ten browser tabs do not open ten RTSP sessions.
  • The stages are gated independently. A camera can record without running detection, run detection without recording, and do neither until motion fires. Nothing downstream runs "because it is there".

Stage 1 — the stream broker dials the camera

The broker holds the RTSP connection, keeps a short pre-buffer, and serves that video to whoever asks: the browser over WebRTC, the recorder, the detection pipeline, or another piece of software over RTSP restream.

It dials on demand. With no consumer attached, Dominevo is not connected to your camera at all. When the last consumer goes away, it tears the connection down again.

This is why a camera can look "offline" in a tile that nothing is watching, and why a battery camera is not kept awake merely by existing in your camera list. It is also why the pre-buffer exists: a recording that started the instant motion fired would begin after the interesting part, so the broker keeps the preceding seconds in memory and the recorder uses them.

A camera usually publishes more than one stream. Dominevo does not consume them by their vendor names — it sorts them by resolution into three slots, high, mid and low, and every consumer asks for a slot. That indirection is what lets motion run on the cheap stream while detection runs on the detailed one. See Streams.

Stage 2 — decode

Detection needs pixels; RTSP carries compressed H.264 or H.265. Something has to turn one into the other, and this is the single most expensive thing Dominevo does.

  • With hardware decode — an Intel integrated GPU exposed to the container as /dev/dri — this is nearly free.
  • Without it, software decode costs roughly 60 % of a CPU for a handful of 4K HEVC cameras.

That is the whole reason Planning your install spends a section on /dev/dri. See Hardware acceleration for the distinction between decode acceleration and inference acceleration — they are different things and a machine can have one without the other.

Live view does not go through this stage. Video sent to your browser is passed through in its original codec, not decoded and re-encoded. Decode is for detection.

Stage 3 — motion, the cheap gate

Running object detection on every frame of every camera forever is possible but wasteful. Motion is the cheap filter in front of it.

Dominevo takes motion from one of two sources, and this is a per-camera setting:

SourceWhat it isCost
onboardThe camera's own firmware motion eventFree — the camera does the work
analyzerDominevo comparing frames itselfRequires decode to be running

Prefer onboard where the camera offers it. It is free, and for a battery camera it is the only option that does not defeat the point of the battery.

The analyzer defaults to the low stream slot — it is looking for change, not for detail, so the cheapest stream is the right one.

Motion is reported before anything filters it: a motion event carries the changed regions and a score, whether or not detection subsequently finds anything in them. That is deliberate — it lets you see that the camera saw something even when detection found no object you care about.

A motion zone is not the same thing as a zone. A motion zone is a mask configured on the camera itself, by vendors that support it, restricting where the camera reports motion at all. A zone is drawn in Dominevo and is used to reason about where a detected object was.

Stage 4 — object detection

This is the stage that uses your accelerator. A detection model looks at a whole frame and returns boxes: a class, a score, a rectangle.

When it runs is a per-camera choice, and it is the setting that decides how much hardware you need:

detectionModeBehaviour
on-motionDetection attaches when the motion gate opens and releases when it closes. The default.
always-onDetection runs continuously, motion or not.
disabledThe pipeline stays wired and configurable; nothing fires.

on-motion is the default because it is right for most cameras most of the time — a driveway camera watching an empty driveway has nothing to detect. Choose always-on where the motion gate is unreliable or where you cannot afford the moment it takes to open.

Battery cameras get on-motion and audio analysis off automatically, from a built-in device profile. This is a default, not a rule: change it and your change sticks, because nothing re-applies a profile over a choice you have made.

Detection defaults to the high stream slot — the opposite of motion, and deliberately so. Motion only needs to notice that something changed; detection has to recognise what it is, and small objects at a distance disappear on a low-resolution stream. If detection is your bottleneck, moving it to mid is the first lever to try, and Streams is where you pull it.

Which hardware executes the model is a separate question again, answered in Inference engines.

Stage 5 — tracks

A detection is one object in one frame. On its own it is almost useless: a person walking across your garden produces dozens of them, and you do not want dozens of notifications.

Dominevo groups detections it believes are the same object over time into a track. One person crossing the garden is one track.

Tracks are the unit everything downstream is built on — the event list, the notification rules, the recorded clip, the search. When the documentation says "an event", it means a track.

Stage 6 — enrichment

Enrichment is the optional second look: recognising a face, reading a license plate, classifying which animal it is.

The important thing about enrichment is when it runs. Detection runs on frames; enrichment runs on tracks. A face-recognition pass does not run on every frame of a person walking past — it runs a small, bounded number of times per track, on a crop of that track's box, and it can be configured to re-run only when it gets a better look at the subject.

That distinction is why enrichment is affordable at all. It also has two consequences you will meet:

  • Enrichment can be skipped for a low-confidence detection. There is a minimum parent score below which a child step does not bother.
  • Enrichment results appear shortly after the track does, not at the same instant. A track can be created, notified on, and only then acquire a name on the face it contains.

See Enrichments.

Stage 7 — recording and notifications

Both consume tracks; neither is a stage the frame passes through.

  • Recording is driven by the pipeline and bounded by a retention policy that genuinely deletes. See Recording.
  • Notifications are rules evaluated against what was detected — this class, in this zone, on this camera — and delivered to a channel. See Notifications.

Where each stage runs

Everything above describes one machine. If you add a second machine as an agent, the whole chain for a given camera runs on the node that owns that camera: its broker, its decode, its detection, its recordings, on its own disk.

That is the practical meaning of adding a machine — you are not spreading one camera's work across two boxes, you are moving whole cameras. Plan storage and hardware per machine, not per cluster.

Then