Dominevo
Detection

Hardware acceleration

Video decode and inference are two different accelerations. Which one you are missing, how to check, and why decode is usually the one that matters.

This page explains the two kinds of hardware acceleration, how to tell which one is limiting your machine, and how to fix it.

Two different things

The single most useful idea on this page:

What it acceleratesSilicon
Video decodeTurning camera H.264/H.265 into framesThe video decode block on a GPU
InferenceRunning the detection model on those framesGPU compute, an NPU, or a Coral

They are separate hardware, separately configured, and a machine can have one without the other. A Coral accelerates inference and cannot decode a single frame. A GPU passed through for decoding does not automatically run your models.

Decode is usually the one that matters. Without it, software decode costs roughly 60 % of a CPU for a handful of 4K HEVC cameras — and that is before any detection has run. That is why every install guide asks you to pass /dev/dri through.

Which one is limiting you

Do this before buying anything.

  1. Look at CPU usage with detection turned off on every camera. Whatever remains is decode plus streaming. If that alone is most of your CPU, decode is your problem and an inference accelerator will not help at all.
  2. Turn detection back on and look at the difference. That difference is inference.
  3. Run the benchmark addon to put a number on what your models cost on this machine, and on each device it could use.

The order matters. People overwhelmingly buy an inference accelerator to fix a decode problem, and are then surprised that nothing improves.

Decode acceleration

Getting it

On Linux with an Intel integrated GPU — the common case, and the reason mini PCs are popular for this — you pass the render device into the container:

devices:
  - /dev/dri:/dev/dri

That is the highest-value single line in your compose file. Nothing else you can do to a Dominevo install has a comparable effect on capacity.

On a Mac, there is nothing to pass through. The desktop app decodes with VideoToolbox, which every Apple silicon and Intel Mac has, and Dominevo picks it on its own.

Choosing a backend

Dominevo probes the host and picks a decode backend automatically. You can override it per node:

BackendFor
AutoDefer to the probe. The default, and usually right.
VAAPILinux, Intel or AMD
QuickSyncIntel
VideoToolboxmacOS
CUDA / NVDECNVIDIA
D3D11VA / DXVA2Windows
AMFAMD
Off (software)No acceleration — the fallback

Leave it on Auto unless you are diagnosing something. The reason to override is a probe that picked a backend your driver handles badly, which does happen; the way you find out is that decode is slower or less stable than software.

A silent fall back to software decode is a bug, not a hardware limit. On a correctly passed-through Intel GPU, VAAPI works. If your machine has the hardware and Dominevo is decoding in software, something is wrong with the passthrough or the driver — investigate rather than accepting it.

If you cannot have it

Some machines simply do not have a usable decode block. Then:

  • Run detection on a lower stream slot. Decoding 1080p costs a quarter of decoding 4K.
  • Use on-motion detection, so you decode only when something is happening. This is the default.
  • Prefer camera-side motion, which needs no decode at all to fire.
  • Move cameras to a machine that does have it — see Adding another machine.

Inference acceleration

Covered in full on Inference engines. The short version:

HardwarePassed in as
Intel integrated GPU/dev/dri — the same device as decode
Intel NPU/dev/accel
Coral USB/dev/bus/usb plus the c 189:* rmw cgroup rule
Coral PCIe / M.2/dev/apex_N, with the host gasket/apex driver

Every device, with the commented compose, Proxmox and Unraid blocks: Accelerator passthrough.

An Intel integrated GPU is a genuinely good deal here: one passthrough, both accelerations.

A Mac with Apple silicon is the other machine that covers both: VideoToolbox decodes, and CoreML runs detection on the Apple Neural Engine. The desktop app uses both with no setup.

Live view needs neither

Worth repeating because it changes how you size a machine: live view is passthrough. Video sent to your browser is the camera's own stream, forwarded without being decoded or re-encoded.

So watching cameras is nearly free, and the number of people watching is not a capacity question. What costs you is detection — the number of cameras decoding and detecting, not the number being watched.

The exception is the transcoded fallback for remote and low-bandwidth clients, which does re-encode and does cost CPU per viewer. See Live view.

A short checklist

  • /dev/dri passed through, if the machine has an Intel GPU. On a Mac, skip this: the app uses VideoToolbox directly.
  • Decode backend on Auto, and not silently on software.
  • Detection on the slot you actually need, not reflexively on high.
  • on-motion detection wherever the motion gate is reliable.
  • Benchmark run, so your next hardware decision is measured rather than guessed.

Then