Skip to main content

Video Analyze

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

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

Use this to analyze technical and optional rubric quality signals for a staged asset. It queues analysis and returns a job ID or cached report; it does not publish or replace the source media.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-video-analyze-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.video_analyze",
"arguments": {
"asset_id": "asset_id_123",
"position": "",
"priority": "",
"font_size": "",
"max_chars": "",
"max_lines": "",
"max_words": "",
"padding_px": "",
"words_json": "",
"rubric_name": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id"
],
"properties": {
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
},
"position": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved overlay or caption position name."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
},
"font_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Font size in pixels within configured minimum and maximum bounds."
},
"max_chars": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum characters per caption line within server limits."
},
"max_lines": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum lines in one caption cue within server limits."
},
"max_words": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum words in one caption cue within server limits."
},
"padding_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Caption box padding in pixels within server limits."
},
"words_json": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "Timed word objects containing word, start, and end values; provide only one caption source."
},
"rubric_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Exact approved quality rubric name."
},
"brand_kit_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Existing local brand-kit identifier."
},
"captions_srt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Inline SRT caption text; provide only one caption source."
},
"captions_vtt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Inline WebVTT caption text; provide only one caption source."
},
"target_preset": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional approved preset used as the target for analysis scoring."
},
"safe_zone_top_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Additional top safe-zone inset in pixels."
},
"safe_zone_profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved platform safe-zone profile for caption placement."
},
"reference_asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional staged asset ID used as the analysis reference."
},
"safe_zone_bottom_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Additional bottom safe-zone inset in pixels."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"job_id",
"cache_hit"
],
"properties": {
"job_id": {
"type": "string",
"description": "Stable analysis job ID."
},
"report": {
"type": "object",
"description": "Completed analysis report when available from cache.",
"additionalProperties": true
},
"cache_hit": {
"type": "boolean",
"description": "Whether a cached report was reused."
}
},
"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-video-analyze-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.video_analyze",
"arguments": {
"asset_id": "asset_id_123",
"position": "",
"priority": "",
"font_size": "",
"max_chars": "",
"max_lines": "",
"max_words": "",
"padding_px": "",
"words_json": "",
"rubric_name": ""
}
}
}'

Example Responses

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