convert
Transcodes media files between formats such as MP4, MKV, AVI, MOV, WAV, and MP3, with optional custom video/audio codecs and extra FFmpeg arguments.
Instructions
Convert media between formats (e.g., MP4→MKV, AVI→MP4, WAV→MP3, MOV→MP4). Supports custom codecs.
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 |
|---|---|---|---|
| input | Yes | Input file path | |
| output | Yes | Output file path (determines format by extension) | |
| extra_args | No | Additional FFmpeg arguments | |
| audio_codec | No | Audio codec (e.g., aac, libmp3lame, copy) | |
| video_codec | No | Video codec (e.g., libx264, libx265, copy) |