Skip to main content

Extract Audio

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

WRITEffmpeg.ffmpeg_extract_audio
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: bac6cbe126e341c5aafea7e379ee14f71bfd6ef6424fbf4c698165d09813a1a0

Create an audio-only export from source media.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-ffmpeg-extract-audio-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.ffmpeg_extract_audio",
"arguments": {
"source_url": "https://cdn.example.com/video/interview.mp4",
"audio_format": "mp3",
"bitrate": "128k"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id",
"format"
],
"properties": {
"format": {
"type": "string",
"description": "Requested supported output format for extracted audio."
},
"bitrate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional FFmpeg bitrate string accepted by the bounded operation."
},
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"job_id",
"cache_hit"
],
"properties": {
"job_id": {
"type": "string",
"description": "Stable ID used with the job readback tools."
},
"cache_hit": {
"type": "boolean",
"description": "Whether a matching completed result was reused."
},
"output_asset_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Completed output asset IDs when immediately available from cache."
}
},
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ffmpeg-ffmpeg-extract-audio-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.ffmpeg_extract_audio",
"arguments": {
"source_url": "https://cdn.example.com/video/interview.mp4",
"audio_format": "mp3",
"bitrate": "128k"
}
}
}'

Example Responses

{
"ok": true,
"output_url": "https://cdn.example.com/output/interview.mp3"
}