Skip to main content

Audio Mix

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEffmpeg.audio_mix
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: 8bfd4f736e8f30de7758ac2243dbf0d7bc36d7e86f8e91c8e3865c935e91c56d

Use this to combine multiple staged audio assets with optional per-track volume, normalization, and duration behavior. It queues one mixed output.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-audio-mix-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.audio_mix",
"arguments": {
"asset_ids": [],
"bitrate": "",
"volumes": "",
"priority": "",
"normalize": "",
"duration_mode": "",
"output_format": "output_format_example"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_ids"
],
"properties": {
"bitrate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional FFmpeg bitrate string accepted by the bounded operation."
},
"volumes": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "null"
}
],
"description": "Optional gain multipliers ordered to match asset_ids."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
},
"asset_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ordered stable IDs of staged FFmpeg media assets."
},
"normalize": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the mixed result should receive loudness normalization."
},
"duration_mode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "How mixed tracks determine final duration, using a supported server mode."
},
"output_format": {
"type": "string",
"default": "m4a",
"description": "Requested supported container or codec family for the new audio asset."
}
},
"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-audio-mix-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.audio_mix",
"arguments": {
"asset_ids": [],
"bitrate": "",
"volumes": "",
"priority": "",
"normalize": "",
"duration_mode": "",
"output_format": "output_format_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ffmpeg.audio_mix executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}