extract_frames
Extract frames from a video into sequential image files, allowing precise control over frame rate, start time, duration, and output format for efficient video analysis or processing.
Instructions
Extract frames from a video as sequential image files
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration | No | Duration to extract frames (format: HH:MM:SS.mmm or seconds) | |
format | No | Output image format (jpg, png, etc., default: jpg) | |
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) | |
inputPath | Yes | Path to the input video file | |
outputDir | No | Directory to save the extracted frames (default: 'output') | |
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) |
Input Schema (JSON Schema)
{
"properties": {
"duration": {
"description": "Duration to extract frames (format: HH:MM:SS.mmm or seconds)",
"type": "string"
},
"format": {
"description": "Output image format (jpg, png, etc., default: jpg)",
"type": "string"
},
"frameRate": {
"description": "Frame extraction rate (e.g., '1' for every frame, '0.5' for every 2nd frame, '1/30' for 1 frame per 30 seconds)",
"type": "string"
},
"inputPath": {
"description": "Path to the input video file",
"type": "string"
},
"outputDir": {
"description": "Directory to save the extracted frames (default: 'output')",
"type": "string"
},
"quality": {
"description": "Image quality for jpg format (1-100, default: 95)",
"type": "number"
},
"startTime": {
"description": "Start time to begin extraction (format: HH:MM:SS.mmm or seconds)",
"type": "string"
}
},
"required": [
"inputPath"
],
"type": "object"
}