Skip to main content
Search and get alerts on live cameras
Point it at your cameras. Quiet footage is skipped, the rest becomes searchable, and you get an email when something you described shows up.

Deploy in Studio

Creates every resource below in your organization, with sample data.

Download the manifest

rtsp-live-monitoring.namespace.yaml, the file Studio and the API apply.

Template page

The demo and the use case on mixpeek.com.

At a glance

How the pieces connect

Buckets hold what you upload, collections turn it into searchable documents, and retrievers answer queries over the collections.

Deploy it

1

Get the manifest

2

Validate it

Validate runs every check apply runs and creates nothing. Fix each entry in errors, then run it again.
3

Apply it

Apply creates every resource in one call. wait_for_seed=true also waits until the sample objects are processed, so the first query below has documents to return.
The response lists each resource with its outcome in resources. Apply refuses a resource that already exists and rolls the whole apply back, so to apply the file again over this namespace add ?mode=create_missing, which creates only what is missing.

Run the first query

Look up the namespace id by name, then run segment-search. Check status and warnings along with documents: a run that times out still answers 200, with status degraded.

Add your own data

Each object you add to a bucket is processed by every collection that reads it. This adds one object to camera-segments. NAMESPACE_ID is the id from the namespace lookup above.
The object is PENDING until processing finishes, then COMPLETED or FAILED. Buckets and objects covers object states, retries and duplicates.

Retrievers

similar-segments

The admission gate: embeds a captured segment and searches the analysed footage for its nearest match. Stages: feature_search Searches: segments-analysis Type what you are looking for, for example ‘yellow taxi’, and search the analysed footage. The analyst’s entry point after an alert. Stages: feature_search Searches: segments-analysis

match-monitor

Alert 1’s discriminator. It reads the bucket itself, where an object is searchable the moment it lands, and keeps the arriving object when the gate judged it and the verdict cleared 0.5. Materialises into matched-footage. Searches: camera-segments

match-control

The same filter at a bar nothing clears. An alert on this staying silent is what makes a firing on match-monitor mean something. Materialises into matched-footage-control. Searches: camera-segments

unjudged-monitor

Segments the gate could not judge. On a new namespace the corpus is empty, so the first segments arrive unjudged and this carries them into analysis; once the corpus exists it goes quiet. Materialises into unjudged-footage. Searches: camera-segments

analysis-monitor

Alert 2’s discriminator, on the analysis collection. A segment that decomposed into more than one scene had motion inside the captured window. Materialises into matched-analysis. Searches: segments-analysis

recent-segments

Every kept segment, newest first in the index. The health watch runs this because it needs no input, so an error or a slow run means the wall itself is unwell. Materialises into wall-health-watch. Searches: segments-index

Collections

Each collection runs one extractor over a bucket, or over another collection’s documents.
Payload view of every kept segment: the verdict fields are readable and filterable here without waiting for analysis. Feeds recent-segments.Reads bucket camera-segments with passthrough_extractor v1.
Multimodal embeddings of the segments an alert sent here, and the corpus the admission gate searches, so the gate sharpens as matched footage accrues. Feeds similar-segments, segment-search, analysis-monitor, matched-analysis.Reads bucket camera-segments with multimodal_extractor v2.Inputs: video ← segment

Also created

Alerts
  • matched-footage: Alert 1. Fires as an object lands carrying a verdict that cleared the bar, emails the org notifications address (Settings -> Notifications; unset means opted out) and batches the object into segments-analysis.
  • matched-footage-control: Control for alert 1: the same filter at a bar nothing clears. Quiet is healthy, and quiet next to a firing matched-footage is the proof the alert discriminates.
  • unjudged-footage: Carries footage the gate could not judge into analysis rather than leaving it unanalysed. This seeds the gate’s corpus on a new namespace and goes quiet once the gate has something to search.
  • matched-analysis: Alert 2. Fires when analysed footage lands that broke into more than one scene, which means something moved inside the captured window.
Triggers
  • wall-health-watch: Scheduled watch: runs recent-segments every 5 minutes and emails when the run errors or breaches the latency bound. An empty result is healthy before a camera is added and never pages.
At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about 7,272.39 USD a month (727.22 USD per 1,000 items). The namespace’s daily spend budget pauses new batches before you pass it.

The manifest

Every resource above comes from this file. Change it and apply it again with ?mode=upsert to update what exists. Manifests documents each field.
rtsp-live-monitoring.namespace.yaml

Hand it to an agent

Paste this prompt into Claude Code, Cursor or another coding agent. To give the agent this whole page instead, use Copy page in the menu at the top of the page, or point it at the page’s Markdown at https://mixpeek.com/docs/templates/rtsp-live-monitoring.md.
Prompt