Skip to main content

Quick Example


Extraction Strategies

Time-Based Extraction

Split video into fixed intervals. Simple and predictable. Time-based extraction example showing consistent frame sampling at regular intervals
Use either frame_count or select_frames, not both.
Best for:
  • Surveillance and monitoring
  • Live streams
  • Content with no clear scene boundaries
  • Consistent sampling across long videos

Shot-Based Extraction

Detect visual transitions (cuts, fades) to identify natural scene boundaries. Shot-based extraction example showing automatic detection of visual transitions and scene boundaries
Best for:
  • Movies and TV shows
  • Edited content with clear cuts
  • Music videos
  • Commercials

Prompt Engineering

The prompt shapes what gets extracted. Think of it as telling the vision model what to look for.

Basic Prompts

Domain-Specific Prompts

Structured Output Prompts

Guide the model to produce consistent, parseable output:

Frame Selection Strategy

More frames = more detail but higher cost. Choose based on your content.

Static Content (1 frame)

For content where a single frame captures the scene:

Motion and Activity (3-5 frames)

For understanding movement and temporal changes:

Key Moment Selection

Select specific frames within each scene:

Combining Modalities

Index both spoken and visual content, then search across both:

Extraction Examples

Traffic Monitoring

Educational Content


Next Steps

Multiple Indexes

Layer different perspectives on the same media

Accuracy Tips

Improve precision and recall

Use VideoDB in your agent

VideoDB lets an AI agent watch, search and clip video.Free to start: $10 of credits, no credit card. Steps for every client