---
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"
---

1.  [](/)
2.  [Code examples](/recipes)
3.  Video Content Analytics Pipeline

Back to code examples

Concepts

# Video Content Analytics Pipeline

Analyze video content at scale to extract insights: scene composition, speaker time, topic distribution, and sentiment across your video library.

video

audio

text

Multi-Tier

[Run in Builder](/build?recipe=video-analytics-pipeline)

Python

cURL

from collections import Counter

from mixpeek import Mixpeek

client \= Mixpeek(api\_key\="YOUR\_API\_KEY", namespace\="video-analytics")

\# 1. A bucket for campaign videos, and a collection that cuts at scene changes,

\#    transcribes, and has Gemini return topic and sentiment per scene

bucket \= client.buckets.create(

    bucket\_name\="campaign-videos",

    bucket\_schema\={"properties": {"video": {"type": "video"}}},

)

collection \= client.collections.create(

    collection\_name\="marketing-videos",

    source\={"type": "bucket", "bucket\_ids": \[bucket\["bucket\_id"\]\]},

    feature\_extractor\={

        "feature\_extractor\_name": "multimodal\_extractor",

        "version": "v1",

        "parameters": {

            "split\_method": "scene",

            "run\_transcription": True,

            "run\_video\_description": True,

            "response\_shape": {

                "type": "object",

                "properties": {

                    "topic": {"type": "string"},

                    "sentiment": {"type": "string", "enum": \["positive", "neutral", "negative"\]},

                },

            },

        },

    },

)

\# 2. Upload and process

client.buckets.upload(

    bucket\["bucket\_id"\],

    blobs\=\[{"property": "video", "type": "video", "data": "s3://your-bucket/campaign-videos/spot-01.mp4"}\],

)

client.collections.trigger(collection\["collection\_id"\])

\# 3. Aggregate across scenes

docs \= client.documents.list(collection\["collection\_id"\], page\_size\=500)

sentiment \= Counter((doc.get("json\_output") or {}).get("sentiment") for doc in docs\["results"\])

seconds\_by\_topic \= Counter()

for doc in docs\["results"\]:

    topic \= (doc.get("json\_output") or {}).get("topic", "unknown")

    seconds\_by\_topic\[topic\] += doc\["end\_time"\] \- doc\["start\_time"\]

print(sentiment.most\_common(), seconds\_by\_topic.most\_common(5))

### Feature Extractors

Multimodal Extractor

Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.

### Retriever Stages

### Related Blog Posts

[Cutsio Case Study: Visual Search for Raw Cinema Footage](/case-studies/video-editor-footage-search)

## Frequently asked questions

### What analytics are extracted?

Scene count, scene duration distribution, speaker time allocation, topic distribution, sentiment analysis, and visual element frequency.

### Can I export analytics data?

Yes. All extracted metadata is accessible via the API and can be exported to your analytics platform.

### Does it work with live streams?

Currently optimized for recorded content. Live stream support is on the roadmap.

## Use Cases Using This Recipe

Advanced

### AI Video Surveillance Analytics

Transform passive camera feeds into actionable security intelligence

85% of events caught live vs. 5% manual baseline

Real-time incident detection rate

[

security

](/solutions/security)

Who It's For

Security operations centers, facility managers, and enterprise security teams monitoring 50+ camera feeds across multiple locations

[View Details](/use-cases/video-surveillance-analytics)

Advanced

### Video Analytics for Sports Broadcasting

Unlock play-by-play intelligence from broadcast footage at scale

Seconds instead of hours per clip

Moment discovery time

[

entertainment

](/solutions/entertainment)

Who It's For

Sports broadcasters, league media teams, sports analytics companies, and OTT platforms managing multi-season video archives across multiple sports

[View Details](/use-cases/video-analytics-sports-broadcasting)

Intermediate

### Automated Video Tagging for Streaming

Auto-generate rich metadata for every scene, shot, and moment in your catalog

10x more tags than manual editorial process

Metadata tags per title

[

entertainment

](/solutions/entertainment)

Who It's For

Streaming platforms, content distributors, and VOD services managing catalogs of 10K+ titles that need rich metadata for discovery and recommendation

[View Details](/use-cases/automated-video-tagging-streaming)

Advanced

### Video Compliance Monitoring

Automatically verify regulatory and policy compliance across video content at scale

10x faster than manual review

Compliance review speed

[

security

](/solutions/security)

Who It's For

Compliance teams, broadcast standards departments, advertising regulators, and enterprise communications teams reviewing video content for regulatory adherence

[View Details](/use-cases/video-compliance-monitoring)

## Related code examples and resources

Pages on the same stages, extractors and patterns.

[

Extractor

### Multimodal Extractor

Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.

Learn more





](/extractors/multimodal)[

Recipe

### Hierarchical Classification

Assign content to multi-level category hierarchies using embedding-based classification. Define your taxonomy once, then classify new content automatically with confidence scores.

Learn more





](/recipes/hierarchical-classification)[

Recipe

### Video Transcription & Indexing Pipeline

Automatically transcribe video content with speaker identification, timestamps, and full-text indexing for downstream search and analytics.

Learn more





](/recipes/video-transcription-pipeline)[

Recipe

### Video RAG Pipeline

Retrieval-augmented generation specifically designed for video content. Decomposes videos into scenes and transcripts, retrieves relevant segments for a given question, and passes them as context to an LLM with precise timestamp citations.

Learn more





](/recipes/video-rag-pipeline)[

Recipe

### Searchable Video Library

Turn an unstructured video archive into a fully searchable library. Each video is decomposed into scenes with transcriptions, visual embeddings, and metadata. Users search by natural language and jump directly to the relevant moment in any video.

Learn more





](/recipes/searchable-video-library)[

Recipe

### Semantic Join

Bridge extracted content features with business reference data. Join video clips to product catalogs, detected faces to employee directories, or documents to compliance frameworks-all via embedding similarity.

Learn more





](/recipes/semantic-join)