Skip to main content
Indexing and search have trade-offs between speed, quality, and cost. This guide helps you optimize for your priorities.

Quick Reference


Indexing Cost Factors

Frame Count

More frames = more vision API calls = higher cost.

Scene Interval

Shorter intervals = more scenes = more processing.

Indexing Latency

Time-Based vs Shot-Based

Shot-based detection adds processing overhead but produces more natural boundaries.

Async Processing

For long videos, use callbacks to avoid blocking:

Search Latency

Single Video vs Collection

Reduce Search Space

Metadata filters improve performance:

Limit Results


Optimization Strategies

Tiered Indexing

Create multiple indexes at different quality levels:

Index on Demand

Only index what you need:

Batch Processing

For large libraries, process during off-peak hours:

Cost Estimation

Factors

  1. Video duration - Longer = more scenes
  2. Frame extraction - More frames = more API calls
  3. Scene interval - Shorter = more scenes
  4. Collection size - More videos = more processing

Example Calculations


Recommendations by Use Case

Media Archive (Cost-Sensitive)

Security Monitoring (Quality-First)

E-commerce (Balanced)


Monitoring

Track indexing and search metrics:

Next Steps

Accuracy Tips

Improve search precision

Create an Index

Get started with indexing