compress_video
Reduce video file size by re-encoding with adjustable quality (CRF). Lower CRF preserves quality; higher CRF yields smaller files.
Instructions
Reduce a video file size by re-encoding it with a given quality level (CRF). Lower CRF = higher quality/larger file; higher CRF = smaller file/lower quality. 28 is a reasonable default.
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>",
"output_path": "<output_path>"
},
"name": "compress_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | ||
| preset | No | medium | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| output_path | Yes | Destination path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |