view_frames
Extract timestamped frames from a video as images, so image-only models can inspect specific moments or ranges. Adjust start, end, interval, format, and max_edge to match your sampling needs.
Instructions
Sample a video and return frames as images, each preceded by its timecode — the only thing tying an image to a moment. Set start == end to look at a single moment (returns a lossless PNG); the interval is ignored in that case. Range requests default to jpeg, which is about an order of magnitude smaller and fits far more frames in the same budget. Frames are cached by absolute timestamp, so overlapping ranges reuse work. max_frames defaults to 12; raising it up to the image limit trades away detail — lower max_edge or use format="jpeg" to afford more frames. All of these limits are set by whoever deployed this server, not by you. Server limits for this deployment: at most 20 images per call, each at most 10 MB, 40 MB per result. Frames are never silently dropped or resampled, so the interval you ask for is the interval you get. Requests past a limit fail with the numbers and concrete alternatives — the server never truncates a range or coarsens your interval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| video | Yes | ||
| format | No | ||
| quality | No | ||
| interval | No | ||
| max_edge | No | ||
| max_frames | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |