cut_video_segment
Cut a video segment by specifying start time and either end time or duration. Supports hardware acceleration and precise cutting.
Instructions
切割视频片段
Args:
input_path: 输入视频文件路径
start_time: 开始时间(格式:HH:MM:SS)
end_time: 结束时间(格式:HH:MM:SS,与duration二选一)
duration: 持续时间(格式:HH:MM:SS,与end_time二选一)
output_path: 输出视频文件路径(可选)
use_hardware_acceleration: 是否使用硬件加速(需要重新编码)
hwaccel_type: 硬件加速类型(qsv, nvenc, vaapi等)
precise_cut: 是否精确切割(重新编码,速度较慢但更精确)
Returns:
切割结果信息
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_path": "<input_path>",
"start_time": "<start_time>"
},
"name": "cut_video_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| start_time | Yes | ||
| end_time | No | ||
| duration | No | ||
| output_path | No | ||
| use_hardware_acceleration | No | ||
| hwaccel_type | No | qsv | |
| precise_cut | No |