ffmpeg_extract_audio
Extract audio from video files, choosing output format (mp3, aac, wav, flac, ogg, opus) and adjusting bitrate for quality or file size.
Instructions
Extract audio track from a video file.
Args:
file_path: Path to the input video file
audio_format: Output audio format (mp3, aac, wav, flac, ogg, opus)
bitrate: Audio bitrate (e.g., "128k", "192k", "320k"). If not specified, uses format default.
Returns:
Path to the extracted audio 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>"
},
"name": "ffmpeg_extract_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| audio_format | No | mp3 | |
| bitrate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |