extract_frames
Extract individual frames from a video at specified intervals, start time, and duration, saving them as images for analysis or thumbnails.
Instructions
从视频中提取帧图片
Args:
input_path: 输入视频文件路径
output_dir: 输出图片目录(可选)
fps: 提取帧率(如1表示每秒1帧,0.5表示2秒1帧)
start_time: 开始时间(格式:HH:MM:SS)
duration: 持续时间(格式:HH:MM:SS)
image_format: 图片格式(jpg, png, bmp)
Returns:
提取结果信息Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| output_dir | No | ||
| fps | No | ||
| start_time | No | ||
| duration | No | ||
| image_format | No | jpg |