---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

Compliance

8 min read

Updated 2026-11-10

# How Do I Check Video Against My Own Compliance Rules?

Write each rule as examples, phrases or a yes-or-no question, index every video into scenes with transcript and on-screen text, and run one retriever per video that returns the scenes breaking a rule, with start and end times. Covers visual rules as a taxonomy, banned phrases, required disclosures, judgment calls, face, logo and slogan checks, cost and limits.

![Ethan Steininger](/people/ethan.webp)

By [Ethan Steininger](/blog/authors/ethan), Founder & CEO, Mixpeek

Video Compliance

Ad Review

Brand Safety

Taxonomy

Content Moderation

Video Understanding

IP Clearance

[Check your own videos against your rules. Try it as you read.Index your videos →](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide&utm_campaign=guide_cta&utm_content=video_compliance)

[One-click templateVideo Moderation Extraction FoundationSegment a video corpus, extract a keyframe record for every segment, and match brand marks against a reference set you upload. Face and public-figure matching run on a dedicated or customer-hosted deployment. This deploy is the extraction layer a moderation policy sits on, and the page carries a state on every part so you can see which policy pieces are yours to add.Deploy it](/templates/video-moderation)

## How do I check video against my own compliance rules?

  
  
Turn each rule into something a machine can test: example images of what is not allowed, a list of banned phrases, a line that must appear on screen, or a yes-or-no question. Index every video into scenes, each with its speech transcript, on-screen text and start and end time. Then check each video's scenes against every rule and keep the scenes that break one. What comes back is a list of flagged moments per video: the rule, how close the match was, and where it happens. A person reviews those moments instead of watching every video end to end.  
  

## What kinds of rules can a machine check?

  
  
Most compliance rules fall into five shapes, and each shape uses a different signal:  
  

Rule shape

Example

Signal

How Mixpeek checks it

Something must not be shown

No alcohol near a minor, no competitor product on screen

The scene's picture

A taxonomy built from your example images

Something must not be said or written

"Guaranteed results", "risk-free", "cure"

Transcript and on-screen text

Phrase match on `transcription` and `ocr_text`

Something must be present

"Results not typical" on screen, a required disclaimer

On-screen text

A phrase query; no matching scene means it is missing

A judgment call

A claim that implies a health benefit

Transcript, on-screen text, sometimes the clip

A yes-or-no question per scene, answered by a model

A person, logo or slogan you have no rights to

A public figure, another brand's mark

Faces, logos, copy

Mixpeek's marketplace IP retrievers

  
  
Write the rules down in these shapes before building anything. A rule like "nothing off-brand" has no shape yet, and no system can check it until someone says what it looks or sounds like.  
  

## Step 1: index each video into scenes

  
  
Upload each video to a bucket with an ID you can filter on, such as `asset_id`, then create a collection with the [multimodal extractor](https://mixpeek.com/docs/processing/extractors/multimodal). Split by scene, and turn on transcription and on-screen text, because spoken and written claims are where most ad rules apply:

{
  "collection\_name": "ads",
  "source": { "type": "bucket", "bucket\_ids": \["bkt\_ads"\] },
  "feature\_extractor": {
    "feature\_extractor\_name": "multimodal\_extractor",
    "version": "v1",
    "input\_mappings": { "video": "video\_url" },
    "field\_passthrough": \[
      { "source\_path": "metadata.asset\_id" },
      { "source\_path": "metadata.market" }
    \],
    "parameters": {
      "split\_method": "scene",
      "run\_multimodal\_embedding": true,
      "run\_transcription": true,
      "run\_ocr": true,
      "run\_video\_description": true,
      "enable\_thumbnails": true
    }
  }
}

Every scene becomes a document with `start_time`, `end_time`, `transcription`, `ocr_text`, `description`, a thumbnail and a 1,408-float embedding of the picture. Scenes longer than `max_segment_duration` (30 seconds by default) are split further.  
  

## Step 2: write the visual rules as a taxonomy

  
  
A [taxonomy](https://mixpeek.com/docs/enrichment/taxonomies) in Mixpeek labels documents by matching them against a reference collection. For compliance, the reference collection is your rule book: one document per example of a violation, each carrying the rule it belongs to.  
  
Put a few example frames per rule in a second bucket, each with `rule_id`, `rule` and `severity` as metadata, and index them with the same extractor so their embeddings sit in the same space as your scenes:

{
  "collection\_name": "rule-examples",
  "source": { "type": "bucket", "bucket\_ids": \["bkt\_rule\_examples"\] },
  "feature\_extractor": {
    "feature\_extractor\_name": "multimodal\_extractor",
    "version": "v1",
    "input\_mappings": { "image": "example\_image" },
    "field\_passthrough": \[
      { "source\_path": "metadata.rule\_id" },
      { "source\_path": "metadata.rule" },
      { "source\_path": "metadata.severity" }
    \],
    "parameters": { "run\_multimodal\_embedding": true }
  }
}

The taxonomy needs a retriever that finds the nearest examples to a scene's embedding:

{
  "retriever\_name": "nearest-rule",
  "collection\_identifiers": \["rule-examples"\],
  "input\_schema": { "vector": { "type": "array", "required": true } },
  "stages": \[
    { "stage\_name": "nearest", "stage\_type": "filter",
      "config": { "stage\_id": "feature\_search", "parameters": {
        "final\_top\_k": 3,
        "searches": \[ { "feature\_uri": "mixpeek://multimodal\_extractor@v1/vertex\_multimodal\_embedding",
          "query": { "input\_mode": "vector", "value": "{{INPUT.vector}}" }, "top\_k": 3 } \] } } }
  \]
}

Then the taxonomy itself, which feeds each scene's embedding to that retriever and copies the matched example's rule fields onto the scene:

POST /v1/taxonomies
{
  "taxonomy\_name": "ad\_rules",
  "config": {
    "taxonomy\_type": "flat",
    "retriever\_id": "<nearest-rule retriever ID>",
    "input\_mappings": \[
      { "input\_key": "vector", "source\_type": "vector",
        "path": "multimodal\_extractor\_v1\_multimodal\_embedding" }
    \],
    "source\_collection": {
      "collection\_id": "<rule-examples collection ID>",
      "enrichment\_fields": \[
        { "field\_path": "metadata.rule\_id", "target\_field": "rule\_id", "merge\_mode": "replace" },
        { "field\_path": "metadata.severity", "target\_field": "severity", "merge\_mode": "replace" }
      \]
    }
  }
}

Adding a rule is adding example images to the bucket. Nothing is retrained, and the next check uses them.  
  

## Step 3: check one video against the visual rules

  
  
This retriever loads every scene of one video, labels each with its nearest rule, keeps the scenes that matched one closely enough, and sorts them by time. It uses [Attribute Filter](https://mixpeek.com/docs/retrieval/stages/attribute-filter), which reads documents straight from the collection when it is the first stage, and [Taxonomy Enrich](https://mixpeek.com/docs/retrieval/stages/taxonomy-enrich):

{
  "retriever\_name": "check-visual-rules",
  "collection\_identifiers": \["ads"\],
  "input\_schema": { "asset\_id": { "type": "text", "required": true } },
  "stages": \[
    { "stage\_name": "one\_video", "stage\_type": "filter",
      "config": { "stage\_id": "attribute\_filter", "parameters": {
        "field": "metadata.asset\_id", "operator": "eq", "value": "{{INPUT.asset\_id}}" } } },
    { "stage\_name": "label", "stage\_type": "enrich",
      "config": { "stage\_id": "taxonomy\_enrich", "parameters": {
        "taxonomy\_id": "<ad\_rules taxonomy ID>", "top\_k": 1, "min\_score": 0.75 } } },
    { "stage\_name": "flagged\_only", "stage\_type": "filter",
      "config": { "stage\_id": "attribute\_filter", "parameters": {
        "field": "rule\_id", "operator": "exists", "value": true } } },
    { "stage\_name": "in\_order", "stage\_type": "sort",
      "config": { "stage\_id": "sort\_attribute", "parameters": {
        "field": "start\_time", "direction": "asc" } } }
  \]
}

Each result is a flagged moment: `start_time`, `end_time`, `rule_id`, `severity`, the thumbnail, and the match score in a `_taxonomy_..._score` field named after the taxonomy ID.  
  
`min_score` decides how many moments come back. Set it on your own videos: label a few dozen scenes by hand, run the retriever at a few thresholds, and pick the one that misses nothing your reviewers would have flagged. Scores depend on your examples, so a threshold from someone else's rule book will not carry over.  
  

## Step 4: banned phrases, required lines and judgment calls

  
  
**Banned phrases.** Match them in the transcript and on-screen text with the `phrase` operator, which matches the words in order at word boundaries:

{ "stage\_name": "banned\_phrases", "stage\_type": "filter",
  "config": { "stage\_id": "attribute\_filter", "parameters": { "conditions": { "AND": \[
    { "field": "metadata.asset\_id", "operator": "eq", "value": "{{INPUT.asset\_id}}" },
    { "OR": \[
      { "field": "transcription", "operator": "phrase", "value": "guaranteed results" },
      { "field": "ocr\_text", "operator": "phrase", "value": "guaranteed results" },
      { "field": "transcription", "operator": "phrase", "value": "risk free" },
      { "field": "ocr\_text", "operator": "phrase", "value": "risk free" }
    \] }
  \] } } } }

**Required lines.** Run the same query with the line that must appear, such as `{"field": "ocr_text", "operator": "phrase", "value": "results not typical"}`. An empty result means the video never shows it, which is the flag.  
  
**Judgment calls.** Some rules need reading, such as "the ad implies the product treats a medical condition". Load the video's scenes with the first stage above, then add [LLM Filter](https://mixpeek.com/docs/retrieval/stages/llm-filter) with the rule as its criteria:

{ "stage\_name": "judgment", "stage\_type": "filter",
  "config": { "stage\_id": "llm\_filter", "parameters": {
    "criteria": "Keep only scenes where the speech or on-screen text says or implies the product treats, cures or prevents a medical condition",
    "include\_reasoning": true } } }

The model reads each scene's transcript, on-screen text and description. Set `include_media` to true when the picture matters, and the scene goes to Gemini as video. LLM Filter makes one model call per scene, and its docs advise narrowing first when more than 100 documents reach it. A 30-second ad has a handful of scenes, so per-video checks stay small.  
  

## Step 5: faces, logos and slogans

  
  
Mixpeek's marketplace has public retrievers for the rights side of review:  
  
*   [IP Screen](https://mixpeek.com/marketplace/ip-screen): one frame in, every public figure and
brand mark it contains, scored.*   [Celebrity Face Match](https://mixpeek.com/marketplace/celebrity-face-match): the public figures
a face matches, with a confidence score.*   [Brand Logo Match](https://mixpeek.com/marketplace/brand-logo-match): the reference marks that
look most like a frame, ranked for review.*   [Trademark Slogan Match](https://mixpeek.com/marketplace/trademark-slogan-match): the registered
slogans a line of copy resembles, and who owns them.  
  
Send each scene's thumbnail to IP Screen and each transcript or on-screen line to Trademark Slogan Match, through `POST /v1/marketplace/catalog/{public_name}/execute` with `{"inputs": {"query": "<frame URL or text>"}}`. Without an API key each listing allows 10 requests a minute per IP address, which is enough to try it.  
  

## Where does this run, and on whose storage?

  
  
Mixpeek reads the videos from your bucket (S3, GCS or another object store you connect) and keeps the scenes, transcripts and labels in your namespace. You call it through the API, so the flagged moments go wherever your review happens: a ticket, a spreadsheet, your own review screen. On the Enterprise plan the whole stack can also run in your own AWS, GCP or Azure account.  
  

## What does it cost?

  
  
At the rates in Mixpeek's public features API on 2026-11-22, video indexing with scenes, speech transcript and descriptions is $0.045 a minute, and on-screen text adds $0.1098 a minute. Taxonomy enrichment is included.  
  

Library

Minutes

Indexing

On-screen text

Total

One 30-second ad

0.5

$0.0225

$0.0549

$0.0774

1,000 thirty-second ads

500

$22.50

$54.90

$77.40

100 hours of long-form video

6,000

$270

$658.80

$928.80

  
  
You pay to index each video once. Rerunning the checks after a rule changes reads the stored scenes and does not re-index anything. LLM Filter calls are extra, one per scene that reaches the stage.  
  

## What you build on top

  
  
Mixpeek returns the flagged moments and the evidence for each one. It has no reviewer screen or approve-and-reject queue, no signed report format, and no ready-made rule packs for particular regulators or markets. Teams write their own rules from their policy documents and route the results into the tools their reviewers already use. Published accuracy figures for any compliance tool depend on the rules and footage they were measured on, so measure on yours.  
  

## Frequently Asked Questions

  
  

### What is video compliance software?

  
  
Software that checks videos against a set of rules, such as ad standards, platform policies or brand guidelines, and points to the moments that break them. The useful output is a list of timestamps per rule, so a reviewer checks those moments instead of watching every video in full.  
  

### Can I use my own rules instead of a fixed list of categories?

  
  
Yes. In Mixpeek the visual rules are a taxonomy built from your own example images, phrase rules are lists you write, and judgment rules are plain sentences a model answers per scene. Changing a rule means changing those inputs, and the next check uses them without re-indexing the videos.  
  

### How do I check that a required disclaimer appears in a video?

  
  
Index the video with on-screen text turned on, then query its scenes for the disclaimer with a phrase match on `ocr_text`. If no scene matches, the video never shows the line. Spoken disclaimers work the same way against `transcription`.  
  

### How do I find the exact timestamp where a rule is broken?

  
  
Index the video into scenes so every scene carries its own start and end time, then check scenes one at a time. Each flagged scene comes back with `start_time` and `end_time` in seconds, which a player can jump to directly.  
  

### How is this different from a brand safety tool?

  
  
A brand safety tool scores content against a shared list of categories, such as violence or adult content, so advertisers can avoid placements near it. A compliance check uses your own rules on your own videos before they ship. The pipelines overlap, and our guide on [brand safety vs brand suitability](https://mixpeek.com/guides/brand-safety-vs-brand-suitability-video) covers the category side.  
  

## Related reading

  
  
*   [Brand safety vs brand suitability for video](https://mixpeek.com/guides/brand-safety-vs-brand-suitability-video)
*   [Our brand safety tool flags too many false positives on video](https://mixpeek.com/guides/brand-safety-tool-false-positives-on-video)
*   [How to check if a video is copyrighted](https://mixpeek.com/guides/how-to-check-if-video-is-copyrighted)
*   [Taxonomies in the Mixpeek docs](https://mixpeek.com/docs/enrichment/taxonomies)

## Check your own videos against your rules

Mixpeek reads video from S3, GCS or any bucket, cuts it into scenes with transcript and on-screen text, and returns the scenes that break your rules with timestamps.

[Index your videos](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide&utm_campaign=guide_cta&utm_content=video_compliance)[See pricing](/pricing)

[Explore MVS](/mvs)[See pricing](/pricing)

## Related guides

[

Compliance

### How Do You Detect and Redact PII in Images, Video, and Audio?

Text redaction is a solved problem and media redaction is not. A face is PII, a voice is PII, and so is the licence plate reflected in a shop window behind your subject. This works through what counts as identifying in each modality, why detect-then-blur leaves the original recoverable, how redaction interacts with an embedding you already computed, the irreversibility test that separates real redaction from a visual effect, and how to verify a redaction rather than trust the pipeline that claims it.

Read guide →](/guides/pii-detection-and-redaction-in-images-video-and-audio)[

Search & Discovery

### Brand Safety vs Brand Suitability: How AI Classifies Video for Advertisers

Safety is a universal floor; suitability is a per-brand tolerance curve over graded risk tiers: and the GARM-style taxonomy remains the reference for both even after the organization wound down. How multimodal classification actually works on video (visual + speech + on-screen text + adjacency), why treatment beats topic, why moderation APIs can't express per-brand tiers, and the query-time reclassification pattern that avoids re-paying analysis.

Read guide →](/guides/brand-safety-vs-brand-suitability-video)[

Data Infrastructure

### What Does It Cost to Make a Video Library Searchable?

Making a video library searchable costs roughly $3 to $21 per hour of video to process once, depending on how many things you extract (a transcript, visual search, faces, on-screen text), plus a small storage bill for the index and the full processing cost again whenever you change models. This guide shows where each number comes from, a worked example for 1,000 hours, and how to cut each cost.

Read guide →](/guides/cost-to-make-a-media-library-searchable)