Skip to main content

Image To Video

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

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

Use this to turn one staged image into a fixed-duration video canvas. It queues a new asset with bounded duration, dimensions, frame rate, and background color.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-image-to-video-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.image_to_video",
"arguments": {
"asset_id": "asset_id_123",
"fps": "",
"width": "",
"height": "",
"priority": "",
"duration_sec": "",
"background_color": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id"
],
"properties": {
"fps": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional positive output frame rate in frames per second."
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional positive output width in pixels."
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional positive output height in pixels."
},
"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."
},
"duration_sec": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Optional output duration in seconds."
},
"background_color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "FFmpeg-compatible safe color name or value for unused canvas space."
}
},
"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-image-to-video-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.image_to_video",
"arguments": {
"asset_id": "asset_id_123",
"fps": "",
"width": "",
"height": "",
"priority": "",
"duration_sec": "",
"background_color": ""
}
}
}'

Example Responses

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