Rutba Vision
A distributed video surveillance and AI vision platform for camera networks at the scale where an NVR stops coping. Each site runs on its own nodes and keeps its own footage, a hub at HQ brings the sites into one picture, and the parts that define the product (how video comes in, is stored, moves, is analysed, is found and leaves) are our own code. Each camera is pulled once and recorded without being decoded, and AI is switched on per camera, so you pay for inference only where it earns its keep.
Rutba Vision: distributed video surveillance, AI per camera, footage kept on site
Rutba Vision is a distributed video surveillance and AI vision platform for camera networks that have outgrown a single recorder.
Plays from YouTube, with English subtitles. Nothing is loaded from YouTube until you press play. Watch it on YouTube, or see more films on the Tech Style channel.
Camera systems don't fail at ten. They fail at a hundred and fifty.
A handful of cameras is a product you buy. A hundred and fifty writing terabytes a day is an operations problem, and it fails in the same ways every time:
- The disks fill and recording silently stops
- The event database bloats until queries time out
- A camera drifts off the clock and its footage stops counting as evidence
- One box is the whole system, so one failure is an outage
- Every change is forty clicks that nobody can review or roll back
Rutba Vision is built around those failures. Cameras are declared in one file. Each edge node's storage guard enforces retention and free space itself. Metadata is kept in one file per day, so expiring it is deleting a file and nothing bloats. Camera clocks are checked on a schedule. And cameras are assigned to nodes rather than tied to one, so when a node dies its cameras move to the others within seconds.
- Configuration
- One declarative file, no generated config
- Camera load
- One connection per camera, fanned out
- AI
- Enabled and tuned per camera
- Failover
- Cameras move to another node
Four commitments
Distributed by default
Every machine runs the same node agent. Cameras are assigned to nodes, not configured onto them, and move when a node dies. One node is simply the smallest cluster.
Distribution designed in
Streams, events, clips and metrics each have a defined way out: RTSP and HTTP outputs, webhooks, MQTT, signed share links, and a site-to-hub uplink that stores and forwards.
Consolidation
Sites uplink to a hub, and hubs to a higher hub. The hub holds one index, one monitor and one search across the sites, while footage stays on the site that recorded it unless policy says otherwise.
Our own stack
The bus, the media relay, the container format, the recorder, the store, the rules engine, the search, the console and the CLI are our code. Third-party parts are used only where rebuilding them is unreasonable, each behind one interface of ours.
Sites stand alone. HQ sees them together.
Each site records and analyses its own cameras and keeps its own footage. Sites dial out to the hub over TLS, so no site needs an inbound port, and a site's uplink keeps a 30-day outbox that drains in order when the WAN comes back. The hub holds the sites' events, incidents, tracks, thumbnails and health in one store, and asks a site for footage only when someone opens it.
Same software at every size
A branch with a handful of cameras runs the core, edge and analysis roles on one machine. A large site spreads them over several. Nothing changes but the node count.
Hubs above hubs
A regional hub can uplink to a national one, so consolidation follows the way the organisation is run rather than the way the network happens to be wired.
Nothing lost on a bad line
The outbox only moves on when the hub acknowledges, so a WAN outage of days loses nothing. The hub shows the site as stale, not missing.
Footage on demand
Clips and segments are fetched from the site that owns them, over the same uplink, when someone asks. The WAN carries meaning, not continuous video.
One view for HQ
Management sees the sites at a glance from the hub, operators get live view and alerts, and investigators search across sites and keep what they find in cases.
Feeds the systems you run
Video walls and other VMS pull RTSP from Rutba Vision instead of from the cameras. Incidents open tickets in ERP and service desks over signed webhooks, and plant and building systems get doors, lights and alarms over MQTT.
One pull per camera. Meaning travels on the bus.
A site's nodes take three roles. Edge nodes hold the cameras: the relay keeps the only connection to each camera stream and fans it out to the recorder, live view, detection and RTSP out. Analysis nodes run AI and codec work, and you add them as the analytics grow. The core node runs the Vision Bus, the index, the API and console, and the services that turn detections into meaning. One machine can take all three roles, or a site can spread them over several.
The ten components
| Component | What it does |
|---|---|
| 1 · Viewing | Live and recorded playback, the timeline and its activity, saved live views, PTZ control, sound and snapshots, through a player of our own. |
| 2 · Monitoring | Health of cameras, nodes, services, storage and clocks; retention enforcement; scheduled upkeep routines; alerts and metrics. |
| 3 · Detection | Per-camera motion, objects, tracking, zones, masks and filters. What is in the frame. |
| 4 · Aggregating | Rules over tracks in time and space, events, incidents and zone rollups. What it means. |
| 5 · Distribution | The ways data leaves: RTSP out, webhooks, MQTT, share links and the uplink to the hub. |
| 6 · Codec conversion | Hardware-aware transcoding, browser compatibility, and exports with evidence manifests. |
| 7 · AI analysis | Enrichment of tracks: image embeddings, colour attributes and generated descriptions. |
| 8 · Indexing | One writer that turns the event stream into a time-partitioned, searchable store. |
| 9 · Tagging | Automatic and manual tags, cases and evidential holds. |
| 10 · Searching | Structured, keyword, semantic and similarity search, asked in plain language, across sites. |
Recording never decodes
The recorder copies the camera's own stream into self-contained fMP4 segments and hashes each file with SHA-256 as it writes. There is no transcoding on the recording path, so recording costs packet handling, not a GPU.
Segments that play on their own
Each segment file plays by itself, the browser appends segments straight to its player, and an export is the segments joined together, with no re-encoding.
Crash-safe writes
Segments are written to a spool and renamed into place, so a crash never leaves half a segment in the catalogue.
Failover in seconds
The coordinator watches node heartbeats and assigns cameras to nodes. A node silent for 15 seconds loses its cameras to the others and recording resumes there; its earlier footage plays again when it returns.
Video takes the direct path
Live and recorded video reaches the browser through the API, which proxies the edge node that owns the camera. Only meaning rides the bus.
A fallback only where needed
If a browser cannot decode a camera's H.265, the console asks for H.264 and a hardware transcode is inserted for that one viewer, leaving recording untouched.
Live view for the wall, playback for the investigator
The console and its player are ours. Live video plays in the browser through Media Source Extensions with no plug-in, the cameras on a live grid share one connection to the server, and playback marks where the activity was before anyone starts to scrub.
Views made on the wall
A view is made on the live page itself, starting from the grid as it is: drag a tile to move it, drag a corner to resize it, and undo any change. A tile holds one camera, works through the view's cameras in turn, or rotates through a group in sequence or shuffled. Shared views need an operator, and changes to them are audited.
Activity first
Any tile can show the busiest camera first, scored from motion, tracked objects by label and events by severity, fading over about half a minute, and go back to its own camera or rotation when things are quiet. A camera that is always busy shares the wall rather than keeping a tile.
Activity without detection
A camera with detection switched off still shows activity, estimated from the size of its encoded frames with nothing decoded. The console labels it as estimated, because light, rain and wind move it too.
Playback that shows where to look
The playback timeline draws how much happened in each moment and lists the periods worth watching, so an operator steps between them instead of scrubbing. Footage that retention has since removed shows as pruned, not as a gap in recording.
PTZ and motorised lenses
PTZ cameras, over ONVIF or Hikvision ISAPI, move while the button is held and stop when it is released; if the connection drops, the server stops the camera itself. Presets and a home position are kept, the camera returns home after a set time, and detection pauses while it is away, because its zones belong to the home view. Cameras with a motorised zoom or focus lens are found and get the controls their lens has. Both are tested against simulated ONVIF and Hikvision cameras so far, not yet against a real moving camera.
Sound, switched per camera
Live sound is decoded in the browser, so nothing is transcoded for it. Each camera has two switches, one for keeping its sound with the recordings and one for letting people hear it, under a master switch for the site. With listening off, none of that camera's sound reaches live view, playback, RTSP out, share links or exports.
Made for a wall screen
The grid and a running view fill the window, with camera names on the pictures and full screen on one key. A tile opened over the others zooms and pans, and steps to the next camera at once. Each user's choices of gaps, captions and bars are kept on the server, so they follow them to the wall PC.
Server load at a glance
Small meters on the live page show how busy the server's processor, GPU and disks are, coloured by their health, with the figures on hover and the monitor a click away.
Customised per camera, not per system
A car park, a stockroom door and a production line want completely different analytics. Rutba Vision configures motion and object detection, filtering, theft, idle-space and behaviour rules, custom events and enrichment individually, including switching them off entirely on the cameras that only need to record.
Detection & filtering
Per-camera detection
Detection is a per-camera switch with its own stream, resolution and frame rate, so a busy entrance can run rich analytics while a corridor camera costs nothing but disk.
Zones
Define the areas that matter (a doorway, a loading bay, a restricted aisle) and alert on what enters them rather than on everything the lens can see. Zones are drawn relative to the frame, so they survive a change of resolution, and they can be drawn over the camera's picture in the console.
Masks
Exclude the parts of a frame that generate noise: a public pavement, a swaying tree, a neighbouring property you have no business analysing. Flicker that never stops, such as the on-screen clock, a blinking LED or a fan, is learned and left out of motion without a mask.
Object filters
Choose which object classes each camera tracks, with minimum size, ratio and confidence thresholds: the difference between a useful alert stream and one people mute.
Inference hardware
Inference runs through one runtime on a CPU, an Intel GPU or an NVIDIA card. On an Intel or AMD GPU, decoding for detection stays on the card and only the small analysis frames reach the processor. The default detectors are permissively licensed. The choice is configuration, not a different product.
Review & alerting
Detections become tracks with a best-frame snapshot, then events and incidents, routed onward to the systems your team already watches rather than trapped in one console.
Theft & behaviour monitoring
Theft & shrinkage detection
Stock leaving by a route it shouldn't, a vehicle loading outside its window, a pallet that moves after hours. Zones visited in order, line crossings with a direction, dwell thresholds and schedules combine into rules that describe your actual loss paths, so the alert is "goods left the yard through the side gate at 02:14", not "motion detected".
Non-standard behaviour monitoring
Rules describe what should not happen, and when: activity in a building that should be empty, loitering at a gate, someone crossing a line the wrong way, a bay that stays busy long after the shift ended. Each zone's entries, peak count and occupancy are also rolled up minute by minute.
Time-aware rules
The same frame means different things at 14:00 on a working day and 03:00 on a Sunday. Rules carry schedules with their own time zone and holiday dates, so a shift pattern, a delivery window or a closure changes what counts as an exception.
Exceptions that reach someone
Events from nearby cameras are drawn together into one incident with its clips, zones and reasons attached, and routed to the channel your team already watches, so an overnight exception is a message with evidence, not something discovered a week later.
Motion, idle space & custom events
Motion detection
The cheap first pass that gates everything above it: motion measured cell by cell with its own mask, so object detection only runs on frames that actually changed. It also stands on its own: a store cupboard or a plant room can raise events on movement alone, with no inference cost at all.
Idle space detection
The inverse of activity, and often the more valuable half. Zones report occupancy minute by minute (a loading bay empty through a shift, a parking bay free or blocked, a machine standing unattended, a till with nobody on it), turning "is anything happening there?" into utilisation you can report on.
Counts and crossings
How many people are in a zone right now, and for how long; what crossed a line, and in which direction. Each is a rule with its own cameras, labels, schedule and severity.
Custom events
Your own conditions, composed from the same parts: object class, zone, direction, dwell, count, schedule and camera. Events are published over MQTT and signed webhooks with their snapshot and metadata, so they can open a ticket, flag a stock discrepancy, or drive an automation in a system that isn't ours.
Enrichment and search
Search in plain language
Ask "red car at the north gate after 10pm yesterday". The search reads the time, camera, colour and object out of the question, shows how it understood it, and ranks the rest by meaning, with each result opening its playback five seconds before the moment.
Semantic and similar
Each tracked object's best frame is embedded as a vector, so footage can be found by describing it, and "find similar" lists the other sightings that look like this one.
Colour attributes
The dominant colours of each object are named and tagged, so "white van" is a filter rather than a guess.
Generated descriptions
Natural-language descriptions of tracked objects from a vision model running on site, for the tracks that matter, so an operator can read what happened overnight instead of watching it.
Faces and plates
Face and plate analyzers plug into the same per-camera analyzer interface, behind compliance settings agreed with your team.
Processed on your hardware
AI is local-first: a remote model endpoint is refused unless you deliberately allow it, because footage leaving the site is a bandwidth decision and a lawful-basis decision.
A hundred and fifty cameras, one file
The management model is the part that scales. Cameras are declared in one file that the services read directly, with no generated configuration in between, and the file is reviewable and revertible like any other code. A change reaches the nodes over the bus as a new revision, without restarts. Zones, masks and keep rules can also be drawn over a camera's picture in the console, and are checked against the whole configuration before they apply.
# vision.yml: the single source of truth defaults: user: vision # a viewing user, not admin password_env: CAMERA_PASSWORD record: { retain_days: 10 } detect: { enabled: false } cameras: - id: gate_north ip: 192.168.1.201 detect: { enabled: true } ai: { enabled: true } zones: gate: polygon: [[0.2, 0.55], [0.8, 0.55], [0.95, 1], [0.05, 1]] record: keep: # gate activity - { zones: [gate], retain_days: 30 } sub: { retain_days: 30 } # low-res history - id: loading_bay ip: 192.168.1.205 record: { audio: true } - id: stockroom ip: 192.168.1.209 record: { retain_days: 30 } - id: corridor ip: 192.168.1.211 # records only
Validate, diff, apply. The file is checked against its schema and cross-references, the diff shows what changes against the running revision, and apply publishes it to the cluster. A hundred-and-fifty-camera site is a hundred and fifty short entries, and secrets never live in the file: it names environment variables, not passwords.
What the tooling does for you
- Finds ONVIF cameras on the camera VLAN and prints their entries with the stream paths filled in
- Probes each camera and reports model, firmware, codec, resolution, PTZ support and lens
- Validates the file and shows a diff before anything is applied
- Applies changes across the site's nodes without restarting them
- Checks camera clocks on a schedule, four times a day by default
- Checks each Hikvision camera's encoder settings daily against its profile, and pushes the profile when an admin runs it, with an undo
- Changes a camera's picture, day and night mode and microphone from the console, keeping the camera's own settings to restore
- Switches day and night at set times on Hikvision cameras whose light sensor street lights fool
- Groups cameras into operator layouts: by building, by priority, by shift
- Manages console users and their roles from the same CLI
Clock discipline
Scheduled time sync
Camera clocks are checked against the server's time four times a day, over Hikvision ISAPI or ONVIF. A check only reads; a sync changes only what is wrong, setting the time by hand when a camera is far off, then its NTP server, NTP mode and time zone. Where the camera VLAN has no time server, Rutba Vision answers NTP itself.
Evidential value
Footage timestamps never depend on a camera's clock: Rutba Vision stamps video as it arrives, in UTC, and shows the site's time zone only at the edges. Drift is still corrected, because it is silent until someone needs the tape.
Verifiable
A single command reports every camera's clock against the server, so "are we in sync?" is a question with an answer.
The parts that run while nobody is watching
Most of the engineering here is not in the happy path. It is in what happens on day two hundred, when a disk is nearly full, a node has died, and the person who installed the system has left. Retention, storage pressure, clock drift, index repair and service restarts are handled by the system, measured and reported.
| When | What happens |
|---|---|
| A camera drops or reboots | The relay reconnects with backoff, the monitor marks the camera offline after 60 seconds, and the recorder closes the open segment cleanly. |
| A camera's clock resets to 1970 | The scheduled clock sync finds the drift, sets the time by hand, then points the camera at NTP. Footage timestamps never depended on the camera's clock. |
| An edge node dies | Its heartbeat lapses, its cameras are reassigned, and recording resumes on the other nodes. Its footage is marked unavailable, not lost. |
| A service hangs without dying | The liveness routine notices a process that is still running but no longer doing its work, such as segments no longer closing or the index no longer committing, and restarts it through its node agent, at most three times in six hours before it leaves it to a person. |
| The bus restarts | Its streams are durable on disk, and each consumer resumes from the last message it acknowledged. |
| A day of the index is damaged | That day is rebuilt from the node catalogues. Metadata loss is bounded to one day and recoverable; footage is never touched. |
| A node's catalogue is lost | It is rebuilt from the files on disk: file names carry the time, the files carry their durations, and the hashes are recomputed. |
| The disks are filling | The storage guard deletes the footage that expires soonest, never what is on hold or within the minimum retention, forecasts the days left from the measured fill rate, and alerts before it matters. |
| The WAN to the hub is down | The outbox fills (30 days by default) and drains in order on reconnect. The hub shows the site as stale, not missing. |
| AI or detection is down | Recording, live view, retention and export carry on, and the monitor raises an alert. |
Thresholds from measurement
The storage guard forecasts how many days of retention the free space actually buys, from each camera's measured bytes per day, so your thresholds come from your own fill rate, not a round number somebody guessed.
Repair, not just restart
A node agent on every machine restarts any component that dies, and the operating system supervises the agent. A nightly integrity check finds a damaged day of metadata, which is restored from the node catalogues with one command, so a metadata problem never costs footage.
Nothing to bloat
Metadata is partitioned by day, so expiring it is deleting a day's file and no file grows without end. A site needs no database server; a hub that consolidates many sites can keep its store in PostgreSQL, a schema per day, dropped whole when it expires.
Evidence you can defend
Each segment's SHA-256 is recorded as it is written, and an export carries a manifest with those hashes, its own hash, who exported it, when, and the time range: chain of custody by design.
Holds that retention obeys
An evidential hold on a camera's time range is never deleted, whatever the retention setting or the disk pressure, and can be tied to a case and given an expiry.
Capacity you can see
Storage by camera and by day, a dry run that shows exactly what a cleanup would remove before it removes anything, and a comparison of what the retention tiers need once full with the space usable before the guard starts deleting.
Keep what matters longer
A camera's footage is kept for its base retention, and footage with confirmed activity in chosen zones for longer: the person at the door, not the traffic on the road beyond it. Nothing is re-encoded; each segment is stamped with how long it is kept.
Low-resolution history
A camera's sub stream can be recorded beside the main one and kept longer, so footage whose full-resolution recording has been pruned still plays, at lower resolution.
Upkeep you can see
Clock sync, the storage guard, backups, store checks, service liveness, certificate renewal and camera settings checks run as routines, each with a schedule, a run history and a run-now button in the console.
Ours by default, borrowed at the edges
Everything that defines how video enters, is stored, moves, is analysed, is found and leaves is our code. Four engines are borrowed where rebuilding them is unreasonable, for pixel work, inference, the HTTP layer and reading the configuration, and each is reached through one module of ours, so replacing it means replacing that module.
Security
TLS on the API and on the uplinks between sites and hub; an uplink without TLS to a public address is refused unless it is declared to run over a VPN or private circuit. Viewer, operator and admin roles, passwords hashed with PBKDF2-SHA256 and sessions as HMAC-signed tokens. An audit log records exports, shares, holds, tag edits, sign-ins, PTZ commands, sound switches and changes to shared views. Secrets live only in the environment, cameras sit on their own VLAN, and share links are signed, scoped, expiring and revocable.
Observability
Heartbeats every 10 seconds that carry how busy each node's processor, GPU and disks are, alerts that raise and clear, a metrics endpoint in Prometheus format and a health endpoint, bus consumer lag and a storage forecast, so the system's own health is data like everything else.
Governance
Retention per camera, kept longer where there was activity that matters, evidential holds, cases with snapshots of what they contain, SHA-256 manifests on exports, sound kept and heard only where it is switched on, and local-first AI, with footage kept on the site that recorded it.
Our code inside, published standards at the boundary
Where Rutba Vision meets cameras, browsers, networks and the systems you already run, it speaks published standards. A recorded segment or an export is an MP4 file that plays on its own, events arrive as ordinary MQTT messages and signed webhooks, and cameras connect over RTSP; ONVIF cameras can be discovered, and ONVIF and Hikvision cameras set and steered through their own interfaces. Between its own parts it uses protocols of its own, each specified: the Vision Bus Protocol, the segment format and a versioned HTTP API.
| Where | Standard |
|---|---|
| Cameras in | RTSP over TCP, with Digest or Basic authentication sent in headers, never in the stream address. H.264 and H.265 video; G.711 and AAC sound. |
| Finding and controlling cameras | ONVIF Profile S, with WS-Discovery to find cameras and WS-Security UsernameToken to sign in to them; ONVIF PTZ and Imaging; Hikvision ISAPI. |
| Camera clocks | NTP. Where the camera network has no time server, Rutba Vision answers NTP itself. |
| Recording and export | Self-contained fragmented MP4 (ISO BMFF) segments, each hashed with SHA-256 as it is written; an export carries a manifest of those hashes. |
| In the browser | Media Source Extensions for video and Web Audio for sound, with no plug-in; server-sent events for live activity. |
| Video out | RTSP with RTP packetisation to RFC 6184 (H.264) and RFC 7798 (H.265), with Basic or Digest authentication. |
| Events out | MQTT 3.1.1, and webhooks signed with HMAC-SHA256 over a timestamp and the body. |
| API and console | JSON over HTTPS, in a versioned API. The certificate can be issued and renewed automatically over ACME, with a DNS-01 challenge. |
| Site to hub | The Vision Bus Protocol (VBP/1), our own, inside TLS 1.2 or newer, store-and-forward. |
| Sign-in and links | Passwords hashed with PBKDF2-SHA256; sessions, share links and tokens between nodes signed with HMAC-SHA256. |
| Monitoring | Metrics in the Prometheus text format, and a health endpoint that answers without signing in. |
| AI models | ONNX, run by ONNX Runtime on a CPU, an Intel GPU or an NVIDIA card. |
| Metadata | SQL, on SQLite for a site, with PostgreSQL as an option for a hub. |
| Time | UTC inside, with IANA time zones for schedules and display. |
| Configuration | One YAML file, checked against its schema before it applies. |
Three ways to take it on
The platform is the same in each case; what changes is who holds the pager.
On your site
We specify, build and commission the nodes on your site, hand over the inventory file, the CLI and the runbook, and your team operates it. You own the hardware and the footage outright.
Managed
The same nodes, with us monitoring capacity, applying updates, tuning detection as the site changes and responding when something needs a human. Footage stays on your premises.
Multi-site
Each site runs its own nodes, keeps its own footage and uplinks to a hub at HQ, so a chain of branches is one picture to search and monitor rather than twenty separate systems.
Sites this suits
Warehousing & manufacturing
Loading bays, stock areas and production lines, where dwell time and access matter as much as the footage.
Retail & multi-branch
Consistent coverage across branches, consolidated at HQ, with line-crossing and dwell rules at yards and car parks and footage searchable per branch.
Campuses & facilities
Large estates where nobody wants a second full-time job administering the camera system.
Replacing a proprietary NVR
Sites stuck on per-camera licensing, a closed client, one box that is the whole system, or an upgrade path that means buying the cameras again.
Sized to the site, not to a box
Recording is cheap; detection and AI are where the hardware goes. A site's node count follows its camera count, its retention and the analytics it runs.
| A small site | One all-in-one node: the core, edge and analysis roles on one machine. |
|---|---|
| A large site | A core node, edge nodes for the cameras, and analysis nodes for AI and codec work. A 150-camera site records on two or three edge nodes. |
| Recording | Packet handling and hashing only: the relay and recorder never decode. Twenty cameras per media worker process by default. |
| Write rate at 150 cameras | About 2.4 TB a day, around 220 Mbit/s on average and 250 Mbit/s at peak, depending on the cameras' bitrates. |
| Detection | Decoding and inference, kept proportional to what is analysed: sub-streams at 5 frames a second, motion-gated inference, hardware decoding where available, and detection opted in per camera. |
| Storage | Footage is written to the local disks of the edge node that owns the camera. No shared network storage is needed. |
| Retention | A base period per camera, longer for footage with activity in chosen zones, and optionally the sub stream kept longer still at low resolution. Nothing is re-encoded. |
| Metadata store | SQLite on a site, a file per day, with nothing to install or run. A hub that consolidates many sites can use PostgreSQL instead. |
| Platform | Linux with systemd. No container runtime is required. |
| In and out | RTSP over TCP from the cameras, with ONVIF and Hikvision ISAPI for control; RTSP out, the HTTPS API and console, signed webhooks, MQTT 3.1.1, signed share links, and the site-to-hub uplink over TLS. |
Other products
How many cameras are you running?
Tell us the sites, the camera counts and what you actually need to detect. We'll come back with a sized set of nodes, a retention figure and an honest view of which analytics are worth enabling.
