convert
Change a media file’s container or video/audio codecs; omit codec fields to stream-copy streams and set CRF for H.264 output.
Instructions
Change container or codec. Omit video_codec/audio_codec to stream-copy that stream. crf 23 is a good default for H.264.
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 | ||
| input | Yes | Path to the file (relative or absolute) | |
| output | Yes | ||
| preset | No | medium | |
| audio_codec | No | e.g. aac, libmp3lame, copy | |
| video_codec | No |