reframe
Change a video's aspect ratio to 9:16, 1:1, 16:9, or 4:5 using centered crop, solid-color padding, or blurred-background padding; crop mode supports focus bias and subject tracking.
Instructions
Reframe a video to 9:16, 1:1, 16:9 or 4:5. Modes: a centered crop (default), solid-color padding, or blurred-background padding. In "crop" mode, focusX/focusY bias the crop (0..1), and "follow" tracks the subject across time using an optional, lazily-loaded face detector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "crop" (default), "pad" (solid color) or "blur-pad" (blurred background). | |
| input | Yes | Path to the source video | |
| aspect | Yes | Target aspect ratio | |
| focusX | No | Horizontal crop focus, 0 (left) .. 1 (right). Default 0.5 (center). | |
| focusY | No | Vertical crop focus, 0 (top) .. 1 (bottom). Default 0.5 (center). | |
| follow | No | Track the subject over time with a lazy face detector (crop mode only). | |
| height | No | Output height in pixels (default: crop/source height). | |
| output | Yes | Path of the reframed video to write | |
| padColor | No | ffmpeg pad color for "pad" mode (e.g. "black", "0x0000ff"). Default "black". | |
| overwrite | No | Replace the output file if it exists (default false). |