extract_frames
Extract evenly-spaced frames from a video as JPEG images, either for direct viewing via base64 or as saved files for batch analysis. Preview video content over time.
Instructions
Extract evenly-spaced frames from a video file as JPEG images. Returns the frames as base64 images that can be viewed directly. Useful for understanding what happens in a video over time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | No | End time in seconds (default: end of video) | |
| file_path | Yes | Absolute path to the video file | |
| num_frames | No | Number of frames to extract (1-20, default 10). Frames are evenly spaced across the time range. | |
| output_dir | No | If provided, save frames as JPEG files to this directory instead of returning base64 images. Returns file paths and timestamps as text. Useful for batch processing where you don't want images in the response. | |
| start_time | No | Start time in seconds (default: beginning of video) |