reformat_aspect_ratio
Change a video's aspect ratio to 9:16, 1:1, 4:5, or 16:9 using blurred borders, solid padding, or center cropping for platform-ready output.
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.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "reformat_aspect_ratio"
}
}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. |