frames
Extract frames from video as JPG, PNG, or BMP image sequences. Set FPS to control extraction rate and start time or duration for precise frame sampling.
Instructions
Extract frames from video as image sequence (JPG/PNG/BMP). Control extraction rate with FPS parameter.
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": {
"input": "<input>",
"output_dir": "<output_dir>"
},
"name": "frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second to extract (e.g., 1=one per second, 0.2=one per 5 seconds) | |
| input | Yes | Input video file path | |
| start | No | Start time (HH:MM:SS) | |
| format | No | Output image format | jpg |
| duration | No | Duration (HH:MM:SS or seconds) | |
| output_dir | Yes | Output directory for extracted frames |