tos_video_snapshot
Extract frames from videos stored in TOS at specific timestamps and save them as images in designated buckets for analysis or processing.
Instructions
视频截帧(支持持久化)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | 存储桶名称 | |
| format | No | 输出格式 | jpg |
| object_key | Yes | 视频对象键名 | |
| save_bucket | Yes | 保存截帧图片的存储桶名称 | |
| save_key | Yes | 保存截帧图片的对象键名 | |
| time | No | 截帧时间点(毫秒),如300表示第300毫秒 |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"description": "存储桶名称",
"type": "string"
},
"format": {
"default": "jpg",
"description": "输出格式",
"enum": [
"jpg",
"png"
],
"type": "string"
},
"object_key": {
"description": "视频对象键名",
"type": "string"
},
"save_bucket": {
"description": "保存截帧图片的存储桶名称",
"type": "string"
},
"save_key": {
"description": "保存截帧图片的对象键名",
"type": "string"
},
"time": {
"default": 300,
"description": "截帧时间点(毫秒),如300表示第300毫秒",
"type": "number"
}
},
"required": [
"bucket_name",
"object_key",
"save_bucket",
"save_key"
],
"type": "object"
}