extract_frames
Extract frames from video files as sequential images, allowing control over frame rate, format, quality, and time segments for analysis or processing.
Instructions
Extract frames from a video as sequential image files
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>"
},
"name": "extract_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Path to the input video file | |
| outputDir | No | Directory to save the extracted frames (default: 'output') | |
| frameRate | No | Frame extraction rate (e.g., '1' for every frame, '0.5' for every 2nd frame, '1/30' for 1 frame per 30 seconds) | |
| format | No | Output image format (jpg, png, etc., default: jpg) | |
| quality | No | Image quality for jpg format (1-100, default: 95) | |
| startTime | No | Start time to begin extraction (format: HH:MM:SS.mmm or seconds) | |
| duration | No | Duration to extract frames (format: HH:MM:SS.mmm or seconds) |