reformat_aspect_ratio
Change a video's aspect ratio to 9:16, 1:1, or 4:5 using blurred borders, solid padding, or center cropping.
Instructions
Change video aspect ratio to 9:16 vertical, 1:1 square, or 4:5 portrait. Adds blurred video borders, solid padding, or center crops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Format mode: 'blur_background' adds blurred video borders, 'fit_pad' adds solid color padding, and 'crop_center' zooms and crops the center. Default: 'blur_background'. | blur_background |
| padColor | No | Background color for fit_pad mode, such as 'black', 'white', or hex '0x1e1e2e'. Default: 'black'. | black |
| inputPath | Yes | Path to the source video file. | |
| blurAmount | No | Blur strength (5 to 50) for blur_background mode. Default: 20. | |
| outputPath | Yes | Destination path for the reformatted video. | |
| targetRatio | No | Target aspect ratio: '9:16' for vertical reels, '1:1' for square, '16:9' for horizontal, or '4:5' for portrait. Default: '9:16'. | 9:16 |
| hardwareAcceleration | No | Use hardware-accelerated video encoding (VideoToolbox, NVENC, QSV, etc.) when available. Default: true. |