reframe
Change a video’s aspect ratio to 16:9, 9:16, 1:1, or 4:5, using pad to preserve all content or crop to fill the frame. Returns the output path.
Instructions
Re-aspect a video to a target ratio (16:9, 9:16, 1:1, 4:5). 'pad' letterboxes so nothing is lost; 'crop' fills the frame and trims the overflow. Returns the output path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | pad (default): scale to fit and letterbox, no content lost. crop: scale to fill and center-crop. | |
| input | Yes | Path to the source video. | |
| aspect | Yes | Target aspect ratio. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |