Quick Example
Stream Generation
From Search Results
Search returns matching segments. Generate a stream to play them as a single video.From Timestamps
Create streams from specific time ranges.From Timeline
Export composed timelines as streams.Stream URL Format
All generated streams use HLS format:| Property | Value |
|---|---|
| Format | HLS (HTTP Live Streaming) |
| Container | .m3u8 manifest with .ts segments |
| Compatibility | All modern browsers, native apps |
Download and Export
Get Video URL
Get Audio URL
Get Image URL
Embedding Streams
HTML5 Video
With HLS.js
React Component
VideoDB Console Player
Use the built-in player:Clip Export Patterns
Export Search Results as Clips
Batch Export
Combine Multiple Videos
Merge Clips from Different Videos
Collection Highlights
URL Lifecycle
| Stage | Duration | Notes |
|---|---|---|
| Generation | Instant | Stream URL returned immediately |
| Playback | 24 hours | URL valid for playback |
| Regeneration | Anytime | Call generate_stream again for new URL |
Refresh Expired URLs
Reframe and Aspect Ratio Conversion
reframe()
Convert a video to a different aspect ratio. Useful for repurposing landscape content to vertical formats for social media.
| Parameter | Type | Description |
|---|---|---|
target | str or dict | "vertical", "square", "landscape", or {"width": int, "height": int} |
mode | str | "simple" or "smart" (default). Smart mode uses object-aware tracking. |
start | float | Optional start time in seconds |
end | float | Optional end time in seconds |
callback_url | str | Optional URL for async completion callback |
smart_vertical_reframe()
Convenience method that reframes to vertical (9:16) with smart object tracking in a single call:
Next Steps
Publishing Patterns
Embed players and share content
Timeline Architecture
Build complex compositions