Quick Example
Extraction Strategies
Time-Based Extraction
Split video into fixed intervals. Simple and predictable.
Use either
frame_count or select_frames, not both.- 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.
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