VideoDB icon

VideoDB

Interact with the VideoDB API

Generate Stream

AI-generated

Summary

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.

Discussion