Skip to main content
Flag video that needs moderation review
Cut every video into scenes and record what is in each one, so reviewers see the moments that need a decision and why they were flagged.

Deploy in Studio

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

Download the manifest

video-moderation.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 brand-mark-match. 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 brand-mark-refs. 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

brand-mark-match

Searches brand-mark-index across 1 feature index. Stages: feature_search Searches: brand-mark-index

roll-up-by-segment

Pipeline retriever over video-segments. Groups documents by segment_id. Stages: attribute_filter → group_by Searches: video-segments Plain-text search over every segment of your footage, the foundation’s own entry point: describe what is on screen and get the segments back with their source. Stages: feature_search Searches: video-segments

review-queue

Every segment whose decision is review, the borderline set a person decides. Empty until segment-verdicts carries decisions. Searches: segment-verdicts Searches video-segments across 3 feature indexes with learned fusion. Stages: feature_search Searches: video-segments

cleared-set-export

Every segment whose decision is cleared, the set to publish or hand on. Empty until segment-verdicts carries decisions. Searches: segment-verdicts

flagged-segment-monitor

The alert’s check: does the segment just written show nudity, violence or a weapon. The search is scoped to that one segment, so earlier footage is never re-reported, and an llm_filter watches the segment and keeps it only when it does. Materialises into flagged-segment. Stages: feature_search → llm_filter Searches: video-segments

Collections

Each collection runs one extractor over a bucket, or over another collection’s documents.
multimodal_extractor@v2 over bucket source-video. Feeds flagged-segment-monitor, flagged-segment, faces, keyframes, onscreen-text, segment-rollup, roll-up-by-segment, segment-search, moderation-search.Reads bucket source-video with multimodal_extractor v2.Inputs: video ← contentCopied onto each document: file_location, segment_id, start_time, end_time
image_extractor@v1 over bucket brand-mark-refs. Feeds brand-mark-match.Reads bucket brand-mark-refs with image_extractor v1.Inputs: image ← contentCopied onto each document: mark_name, rule
image_extractor@v1 over collection video-segments. Feeds violence-context.Reads collection video-segments with image_extractor v1.Inputs: image ← thumbnail_urlCopied onto each document: thumbnail_url, segment_id, frame_ts
Cluster segment-rollup is the intended producer and is emitted commented out below. Until it applies, this collection holds a plain copy of video-segments’s rows, with none of the fields this view describes. One document per segment_id. Writes back n_person. Declared as a passthrough collection so the retrievers that name it still resolve; read what they return as source rows, not as this view’s output. decision, reason, n_minor and n_unaged wait on the age-estimation block above, n_borderline on violence-context.Reads collection video-segments with passthrough_extractor v1.

Also created

Alerts
  • flagged-segment: Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly written segment looks like nudity, violence or a weapon, so it reaches review without anyone searching for it.
At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about 7,287.81 USD a month (728.76 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.
video-moderation.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/video-moderation.md.
Prompt