compress_video
Compress video files by adjusting quality or targeting a specific file size, with optional hardware acceleration for faster processing.
Instructions
压缩视频文件
Args:
input_path: 输入视频文件路径
output_path: 输出视频文件路径(可选)
quality: 压缩质量(high, medium, low)
target_size_mb: 目标文件大小(MB,可选)
use_hardware_acceleration: 是否使用硬件加速
hwaccel_type: 硬件加速类型(qsv, nvenc, vaapi等)
Returns:
压缩结果信息Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| output_path | No | ||
| quality | No | medium | |
| target_size_mb | No | ||
| use_hardware_acceleration | No | ||
| hwaccel_type | No | qsv |