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
- Video duration - Longer = more scenes
- Frame extraction - More frames = more API calls
- Scene interval - Shorter = more scenes
- 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