Actions40
- Index Spoken Words
- Get Transcript
- Search in a Video
- Generate Stream
- Index Scenes
- List Scene Indexes
- Get Scene Index
- Delete Scene Index
- Add Subtitle
- Translate Transcript
- Generate Audio URL
- Generate Image URL
- Create Collection
- Download
- Get Collection
- Get Collections
- Update Collection
- YouTube Search
- Delete Audio
- Delete Image
- Delete Video
- Delete Collection
- Dub Video
- Generate Image
- Generate Music
- Generate Sound Effect
- Generate Voice
- Generate Video
- Generate Text
- Get Audio
- Get Audios
- Get Image
- Get Images
- Get Video
- Get Videos
- Search in a Collection
- Upload
- Record Meeting
- Get Meeting
- Compile Timeline (VideoDB's Video Editor)
Generate Stream
AI-generatedSummary
Generates a stream URL for a video within a collection.
Inputs
- collection_id (required) — Choose from the list, or specify an ID using an expression
- video_id (required) — The ID of the video
- timeline — A list of start and end times to create a custom timeline for the stream. e.g. [[start1, end1], [start2, end2]]
- length — The length of the video stream to generate
Output shape
A stream URL for the specified video segment.
The operation POSTs to /video/{video_id}/stream with a body containing the resolved timeline and length parameters. video_id depends on collection_id via loadOptionsDependsOn.
Examples
Example 1: Generate a 30-second stream clip from 0s to 30s of a video in a collection
Set collection_id to the desired collection, video_id to the target video, timeline to [[0, 30]], and length to 30.