transcode_video
Normalize a video to a fixed aspect ratio (9:16, 1:1, or 16:9) by adding padding and re-encoding. Rejects invalid aspect values to prevent silent failures.
Instructions
Normalize a video to a fixed aspect ratio (9:16, 1:1 or 16:9) with padding, re-encoded. Unknown aspect values are rejected — nothing silently falls back.
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": {
"video_path": "<video_path>",
"aspect": "<aspect>"
},
"name": "transcode_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aspect | Yes | Target aspect ratio | |
| quality | No | Encoding quality. Default medium. | |
| video_path | Yes | Local path to the video |