ffmpeg_extract_frames
Extract frames from a video as images. Set an interval (one frame every N seconds) or a total frame count for even distribution. Choose output format: JPG, PNG, or BMP.
Instructions
Extract frames from a video as images.
Args:
file_path: Path to the input video file
interval: Extract one frame every N seconds (e.g., 1.0 for one frame per second)
count: Total number of frames to extract (evenly distributed). Mutually exclusive with interval.
format: Output image format (jpg, png, bmp)
Returns:
Path to the directory containing extracted frames
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": {
"file_path": "<file_path>"
},
"name": "ffmpeg_extract_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| interval | No | ||
| count | No | ||
| format | No | jpg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |