Compress Video
compressRe-encode a video to reduce its file size using H.264 CRF levels and an optional width cap; for platform-specific targets, use export presets.
Instructions
Re-encode a video smaller (H.264 CRF ladder, optional width cap). For a platform target use export_preset.
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": "<input>"
},
"name": "compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the source video. | |
| level | No | CRF 23 / 28 / 32 (default medium). | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| maxWidth | No | Width cap in px (only downscales). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Path of the file written. |