Convert / transcode
convertTranscode videos to change container format, codec, resolution, frame rate, or bitrate, including NVENC hardware encoding; output container follows the output file extension.
Instructions
Transcode a video: change container format, codec, resolution, fps, or bitrate. Supports NVENC hardware encoders (e.g. codec='h264-nvenc'). The output container is inferred from the output file extension.
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": {
"input": "<input>",
"output": "<output>"
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | Quality (lower = better) for CRF-capable encoders. Ignored if videoBitrate set. | |
| fps | No | Target frame rate. | |
| codec | No | Target video codec. Omit to keep the source codec where possible. | |
| input | Yes | Path to the source media file. | |
| output | Yes | Path for the converted output (extension sets container). | |
| overwrite | No | Overwrite the output file if it already exists. | |
| resolution | No | Resolution as "WxH" (e.g. 1280x720) or preset (e.g. 720p). | |
| audioBitrate | No | Target audio bitrate, e.g. "192k". | |
| videoBitrate | No | Target video bitrate, e.g. "4M" or "800k". |