batch_screenshot
Extract screenshots from videos at fixed intervals, specifying start time, end time, output format, and resolution. Save multiple frames to a designated directory with customizable file naming.
Instructions
按固定时间间隔批量截取视频画面
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endTime | No | 结束时间(秒),默认为视频结束 | |
format | No | 输出格式,默认为 jpg | |
height | No | 输出高度(像素) | |
interval | Yes | 截图时间间隔(秒) | |
maxCount | No | 最大截图数量 | |
outputDir | No | 输出目录,默认为 ./screenshots | |
prefix | No | 文件名前缀,默认为 screenshot | |
quality | No | 图片质量(1-100,仅对 jpg 有效),默认为 90 | |
startTime | No | 开始时间(秒),默认为 0 | |
videoPath | Yes | 视频文件路径 | |
width | No | 输出宽度(像素) |
Input Schema (JSON Schema)
{
"properties": {
"endTime": {
"description": "结束时间(秒),默认为视频结束",
"type": "number"
},
"format": {
"description": "输出格式,默认为 jpg",
"enum": [
"jpg",
"png",
"webp"
],
"type": "string"
},
"height": {
"description": "输出高度(像素)",
"type": "number"
},
"interval": {
"description": "截图时间间隔(秒)",
"type": "number"
},
"maxCount": {
"description": "最大截图数量",
"type": "number"
},
"outputDir": {
"description": "输出目录,默认为 ./screenshots",
"type": "string"
},
"prefix": {
"description": "文件名前缀,默认为 screenshot",
"type": "string"
},
"quality": {
"description": "图片质量(1-100,仅对 jpg 有效),默认为 90",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"startTime": {
"description": "开始时间(秒),默认为 0",
"type": "number"
},
"videoPath": {
"description": "视频文件路径",
"type": "string"
},
"width": {
"description": "输出宽度(像素)",
"type": "number"
}
},
"required": [
"videoPath",
"interval"
],
"type": "object"
}