ffmpeg_convert
Convert video and audio files to different formats. Specify output format, and optionally set resolution, video codec, and audio codec for precise control.
Instructions
Convert video/audio to a different format.
Args:
file_path: Path to the input media file
output_format: Target format (e.g., mp4, mkv, webm, mp3, wav)
scale: Optional resolution scale (e.g., "1280:720", "1920:-1" for auto height)
video_codec: Optional video codec (e.g., libx264, libx265, libvpx-vp9)
audio_codec: Optional audio codec (e.g., aac, mp3, opus)
Returns:
Path to the converted file
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": {
"file_path": "<file_path>",
"output_format": "<output_format>"
},
"name": "ffmpeg_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_format | Yes | ||
| scale | No | ||
| video_codec | No | ||
| audio_codec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |