convert_media
Convert audio or video files between formats using FFmpeg. Supports all common formats: mp3, mp4, wav, gif, and more.
Instructions
Convert audio or video files between formats using FFmpeg.
Supports all FFmpeg formats: mp3, wav, m4a, flac, ogg, aac, opus, mp4, mkv, webm, avi, mov, gif, and more.
Common conversions: - Video to audio: mp4 -> mp3 - Audio formats: wav -> mp3, flac -> m4a - Video formats: mkv -> mp4, mp4 -> webm - Video to GIF: mp4 -> gif
Sample prompts that trigger this tool: - "Convert this video to mp3: /path/to/video.mp4" - "Convert recording.wav to mp3" - "Make a gif from /path/to/clip.mp4" - "Convert this to m4a: /path/to/song.flac" - "Convert my video to webm"
Args: input_path: Path to the input file. output_format: Target format (e.g. "mp3", "mp4", "wav", "gif"). output_path: Optional output file path. Default: same name, new extension. quality: "low", "medium", or "high". Default: medium.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| output_format | Yes | ||
| output_path | No | ||
| quality | No | medium |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |