Processing camera events before saving lets a home NVR classify, track, filter, and rank activity before deciding what deserves long-term retention.
A camera produces continuous frames, but a household usually cares about a person at the door, a vehicle entering the driveway, a package left in a zone, or an unusual sound—not every shadow, tree movement, exposure shift, or empty hallway. Event processing converts raw motion into temporal context, object identity, zone entry, confidence, and alert significance before storage policy acts. The sections below trace that pipeline and explain why event-aware retention improves search, notifications, storage efficiency, and later review.
Raw Motion Is Only a Candidate for Deeper Analysis
A video frame can change because of a person, an animal, headlights, rain, insects, infrared switching, camera noise, or moving foliage. Treating every pixel change as a durable event would create excessive analysis and fill the review timeline with low-value activity.
Frigate uses motion detection as the first check for regions worth inspecting with object detection. This low-cost gate narrows the frame area and time range sent to a more expensive model.
The separation matters because motion is sensitive but not semantic. It answers “Did the image change?” while later stages answer “What moved, where did it go, and does the household care?”
Object Tracking Adds Context Across Multiple Frames
One detection describes one frame, but a useful event needs continuity. The NVR must associate detections over time, estimate whether they belong to the same object, and determine when the activity started, changed, or ended.
The Frigate video pipeline combines motion regions with object detection before retention rules choose recordings and snapshots. Tracking turns isolated boxes into an event that can carry duration, label, confidence, and movement history.
This temporal context prevents every frame containing the same parked vehicle from becoming a separate saved incident. It also gives later filters enough information to distinguish entry, exit, lingering, and stationary behavior.
Processing before retention therefore reduces duplication at the event level, not merely at the file-compression level.
Zones and Filters Decide Whether the Event Is Relevant
Object identity alone is not enough. A person on the public sidewalk may be normal, while the same person entering a porch zone may deserve an alert and longer retention.
Frigate camera zones apply location context to tracked objects. Labels, confidence thresholds, required zones, masks, size filters, and dwell behavior can reduce events that are technically valid but operationally unimportant.
The filtering order protects storage and attention. A high-confidence person detection can still be excluded from an alert if it never enters the defined area, while a lower-bandwidth preview can remain available for general review.
Event Quality Determines Which Snapshot and Clip Are Useful
The first frame of an event may show only part of an object, motion blur, or a person at the edge of the image. Saving immediately can preserve a poor thumbnail even when a clearer frame appears moments later.
Frigate evaluates the best snapshot across the tracked event instead of automatically keeping every frame. Confidence, object size, edge position, and useful attributes can influence the selected image.
The same principle applies to clips. Pre-event and post-event context, the active portion of the track, and overlapping objects help determine which recording segment is understandable during review.
Saving after event interpretation does not mean delaying all writes until the event ends. A practical NVR can record short rolling segments continuously, then use event metadata to decide which segments receive longer retention.
Retention Policy Converts Processed Events Into Stored Evidence
After motion, detection, tracking, and filtering, the NVR has enough context to apply different retention periods to continuous footage, motion segments, detections, and alerts. The storage decision can reflect value instead of treating every second equally.
Frigate can retain event recordings that overlap alerts or detections without storing duplicate clips for overlapping tracked objects. This links the durable video to the event database rather than creating one independent file per object.
A ZimaSpace smart home design similarly separates cameras, NVR processing, accelerators, MQTT, and recording storage. That NVR service boundary lets detection load and retention capacity scale independently.
Validate the policy with representative daytime, nighttime, weather, pet, delivery, and household activity. The goal is not the fewest saved events; it is the smallest retained set that still contains the context needed for alerts, search, and incident review.
Tech & AI HUB
More to Read

Runtime State vs Persistent State in Home Assistant: What Must Survive Restart?
Home Assistant does not persist every live value; config, registries, selected restored states, history, and deployment data play different restart roles.

How Does Home Assistant Authenticate Local and Remote Sessions?
Local and remote Home Assistant sessions use the same server-side identity model; remote access changes the route and TLS boundary, not the core token...

Why Can Home Assistant History Queries Slow as Recorder Data Grows?
Recorder growth can raise History query cost when the requested range touches more rows, cache misses increase, or storage and index work become slower.

