compress
Re-encode a video to a smaller file using a CRF quality level and optional width cap, returning the output path.
Instructions
Re-encode a video to a smaller file with a CRF quality ladder and an optional width cap. Returns the output path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the source video. | |
| level | No | How hard to compress (CRF 23 / 28 / 32). Default medium. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| maxWidth | No | Optional width cap in px; only ever downscales. Height follows aspect. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |