agentic-video Gallery

Find the Earth-through-window shot in a music clip

Find a momentMusicTool missed
0:51CC-BY-SA-4.0 · Suyash Dwivedi

Proof frames

Click a frame to seek

Tool calls

7 calls · agentic-video 0.3.1
build_visual_indexbox · 6 ms

Arguments

{
  "source": "$CLIP"
}

Result

{
  "ok": true,
  "data": {
    "status": "queued",
    "message": "Repeat the same tool call to poll progress."
  }
}
build_visual_indexbox · 5 ms

Arguments

{
  "source": "$CLIP"
}

Result

{
  "ok": true,
  "data": {
    "status": "running",
    "indexed_until_sec": 0,
    "duration_sec": 51,
    "frames_indexed": 0,
    "progress": 0,
    "model": "openai/clip-vit-base-patch32",
    "model_revision": "3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268"
  }
}
build_visual_indexbox · 0 ms

Arguments

{
  "source": "$CLIP"
}

Result

{
  "ok": true,
  "data": {
    "status": "complete",
    "indexed_until_sec": 51,
    "duration_sec": 51,
    "frames_indexed": 8,
    "progress": 1,
    "model": "openai/clip-vit-base-patch32",
    "model_revision": "3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268"
  }
}
search_visualbox · 1 ms

Arguments

{
  "source": "$CLIP",
  "query": "blue Earth seen through a round window in a space station",
  "top_k": 5
}

Result

{
  "ok": true,
  "data": {
    "status": "queued",
    "message": "Repeat the same tool call to poll progress."
  }
}
search_visualbox · 1 ms

Arguments

{
  "source": "$CLIP",
  "query": "blue Earth seen through a round window in a space station",
  "top_k": 5
}

Result

{
  "ok": true,
  "data": {
    "status": "complete",
    "hits": [
      {
        "rank": 1,
        "timestamp_sec": 24.533,
        "timecode": "00:00:24.533",
        "score": 0.3080907166004181,
        "frame_badge": "#1",
        "timestamp_kind": "sample_target",
        "decoded_timestamp": null
      },
      {
        "rank": 2,
        "timestamp_sec": 25.533,
        "timecode": "00:00:25.533",
        "score": 0.2847827076911926,
        "frame_badge": "#2",
        "timestamp_kind": "sample_target",
        "decoded_timestamp": null
      },
      {
        "rank": 3,
        "timestamp_sec": 26.533,
        "timecode": "00:00:26.533",
        "score": 0.25496554374694824,
        "frame_badge": "#3",
        "timestamp_kind": "sample_target",
        "decoded_timestamp": null
      },
      {
        "rank": 4,
        "timestamp_sec": 44.533,
        "timecode": "00:00:44.533",
        "score": 0.14512643218040466,
        "frame_badge": "#4",
        "timestamp_kind": "sample_target",
        "decoded_timestamp": null
      },
      {
        "rank": 5,
        "timestamp_sec": 0,
        "timecode": "00:00:00.000",
        "score": 0.12753596901893616,
        "frame_badge": "#5",
        "timestamp_kind": "sample_target",
        "decoded_timestamp": null
      }
    ],
    "intervals": [
      {
        "start_sec": 0,
        "end_sec": 33.533,
        "last_sample_sec": 26.533,
        "score": 0.3080907166004181,
        "ranks": [
          1,
          2,
          3,
          5
        ]
      },
      {
        "start_sec": 44.533,
        "end_sec": 51,
        "last_sample_sec": 44.533,
        "score": 0.14512643218040466,
        "ranks": [
          4
        ]
      }
    ],
    "contact_sheet": {
      "file_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/visual_6df554bf66efcd4eea09.jpg",
      "sample_count": 5,
      "rows": 2,
      "cols": 4,
      "start_sec": 24.533,
      "end_sec": 0,
      "timestamps": [
        24.533,
        25.533,
        26.533,
        44.533,
        0
      ],
      "frame_width": 224,
      "frame_height": 126,
      "tool_file": {
        "_tag": "ToolFile",
        "name": "visual_6df554bf66efcd4eea09.jpg",
        "mimeType": "image/jpeg",
        "encoding": "base64",
        "data": "<59792 base64 chars dropped>",
        "byteLength": 44843
      }
    },
    "index_status": "complete",
    "index_complete": true,
    "indexed_until_sec": 51,
    "duration_sec": 51,
    "frames_indexed": 8,
    "progress": 1,
    "model": "openai/clip-vit-base-patch32",
    "model_revision": "3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268",
    "note": "Cosine similarity is not confidence. Sample-based intervals are approximate; the interval holding rank 1 is at least 15 s long (or the whole searched range if shorter). Verify badges and inspect_window. Empty results do not establish absence."
  }
}
inspect_momentsbox · 1136 ms

Arguments

{
  "source": "$CLIP",
  "moments": [
    {
      "timestamp_sec": 1.5
    },
    {
      "timestamp_sec": 4.5
    },
    {
      "timestamp_sec": 7.5
    },
    {
      "timestamp_sec": 10.5
    },
    {
      "timestamp_sec": 13.5
    },
    {
      "timestamp_sec": 16.5
    },
    {
      "timestamp_sec": 19.5
    },
    {
      "timestamp_sec": 22.5
    },
    {
      "timestamp_sec": 25.5
    },
    {
      "timestamp_sec": 28.5
    }
  ],
  "samples_per_moment": 3,
  "before_sec": 1.5,
  "after_sec": 1.5
}

Result

{
  "ok": true,
  "data": {
    "moments": [
      {
        "index": 1,
        "timestamp_sec": 1.5,
        "label": null,
        "start_sec": 0,
        "end_sec": 3,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          0,
          1.5,
          3
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3…",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_536764.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<157676 base64 chars dropped>",
          "byteLength": 118256
        }
      },
      {
        "index": 2,
        "timestamp_sec": 4.5,
        "label": null,
        "start_sec": 3,
        "end_sec": 6,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          3,
          4.5,
          6
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3…",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_3bfc1f.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<158940 base64 chars dropped>",
          "byteLength": 119205
        }
      },
      {
        "index": 3,
        "timestamp_sec": 7.5,
        "label": null,
        "start_sec": 6,
        "end_sec": 9,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          6,
          7.5,
          9
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3…",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_fb99db.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<153240 base64 chars dropped>",
          "byteLength": 114929
        }
      },
      {
        "index": 4,
        "timestamp_sec": 10.5,
        "label": null,
        "start_sec": 9,
        "end_sec": 12,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          9,
          10.5,
          12
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3…",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_da2b86.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<148632 base64 chars dropped>",
          "byteLength": 111472
        }
      },
      {
        "index": 5,
        "timestamp_sec": 13.5,
        "label": null,
        "start_sec": 12,
        "end_sec": 15,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          12,
          13.5,
          15
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3…",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_9990b0.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<151284 base64 chars dropped>",
          "byteLength": 113463
        }
      },
      "…trimmed 5 more"
    ],
    "total": 10,
    "total_samples": 30,
    "estimated_vision_tokens": 7740
  }
}
inspect_momentsbox · 964 ms

Arguments

{
  "source": "$CLIP",
  "moments": [
    {
      "timestamp_sec": 31.5
    },
    {
      "timestamp_sec": 34.5
    },
    {
      "timestamp_sec": 37.5
    },
    {
      "timestamp_sec": 40.5
    },
    {
      "timestamp_sec": 43.5
    },
    {
      "timestamp_sec": 46.5
    },
    {
      "timestamp_sec": 49.5
    }
  ],
  "samples_per_moment": 3,
  "before_sec": 1.5,
  "after_sec": 1.5
}

Result

{
  "ok": true,
  "data": {
    "moments": [
      {
        "index": 1,
        "timestamp_sec": 31.5,
        "label": null,
        "start_sec": 30,
        "end_sec": 33,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          30,
          31.5,
          33
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_87fba9.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_87fba9.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<159264 base64 chars dropped>",
          "byteLength": 119446
        }
      },
      {
        "index": 2,
        "timestamp_sec": 34.5,
        "label": null,
        "start_sec": 33,
        "end_sec": 36,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          33,
          34.5,
          36
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_7aec29.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_7aec29.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<155976 base64 chars dropped>",
          "byteLength": 116982
        }
      },
      {
        "index": 3,
        "timestamp_sec": 37.5,
        "label": null,
        "start_sec": 36,
        "end_sec": 39,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          36,
          37.5,
          39
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_6380e4.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_6380e4.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<152588 base64 chars dropped>",
          "byteLength": 114440
        }
      },
      {
        "index": 4,
        "timestamp_sec": 40.5,
        "label": null,
        "start_sec": 39,
        "end_sec": 42,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          39,
          40.5,
          42
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_231ea0.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_231ea0.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<150540 base64 chars dropped>",
          "byteLength": 112903
        }
      },
      {
        "index": 5,
        "timestamp_sec": 43.5,
        "label": null,
        "start_sec": 42,
        "end_sec": 45,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          42,
          43.5,
          45
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_1b04b.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_1b04b.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<161304 base64 chars dropped>",
          "byteLength": 120977
        }
      },
      {
        "index": 6,
        "timestamp_sec": 46.5,
        "label": null,
        "start_sec": 45,
        "end_sec": 48,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          45,
          46.5,
          48
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.5
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_c11575.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_c11575.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<168804 base64 chars dropped>",
          "byteLength": 126601
        }
      },
      {
        "index": 7,
        "timestamp_sec": 49.5,
        "label": null,
        "start_sec": 48,
        "end_sec": 50.999,
        "anchor_sample_index": 2,
        "sample_timestamps": [
          48,
          49.5,
          50.999
        ],
        "relative_offsets_sec": [
          -1.5,
          0,
          1.499
        ],
        "contact_sheet_path": "<cache>/ca4c609392b67c8914c0/contact_sheets/sheet_3samples_3cols_a9e2c2.jpg",
        "sample_count": 3,
        "tool_file": {
          "_tag": "ToolFile",
          "name": "sheet_3samples_3cols_a9e2c2.jpg",
          "mimeType": "image/jpeg",
          "encoding": "base64",
          "data": "<170288 base64 chars dropped>",
          "byteLength": 127714
        }
      }
    ],
    "total": 7,
    "total_samples": 21,
    "estimated_vision_tokens": 5418
  }
}

Question and answer

Question
Where is the shot of blue Earth through a space station window in a music clip?
Answer
The top search match runs from 0.0 s to 33.5 s.
Tool returned
{"start_sec":0,"end_sec":33.533,"last_sample_sec":26.533,"score":0.3080907166004181,"ranks":[1,2,3,5]}
Truth
{"start":24.5,"end":27.5}
Check failedIoU 0.09, minimum 0.15

How it was checked

Truth from
constructed
Fixed at

Planted by this recipe: ffmpeg joined host footage from 1 s to 25.5 s, the public-domain NASA shot from 16 s to 19 s, and host footage from 25.5 s to 49 s, so the shot is at 24.5 s to 27.5 s of the clip. The inspect_moments grid (anchors every 3 s from 1.5 s, set by the clip length) is not part of the truth. Minimum IoU 0.15: search_visual's rank-1 interval is at least 15 s, so a 3 s shot it fully covers scores 0.2.

A script spliced a 3 s public-domain NASA shot into this clip at a planted time and removed its sound, the search intervals are at least 15 s long, and the frames were picked every 3 s rather than at the top match.

Try it yourself

Use agentic-video to build the visual index of my video, then search it for "blue Earth seen through a round window in a space station" and tell me the start and end of the top match. Then look at frames across the clip with inspect_moments. Use my own file.
  1. Get the .mcpb file and open it in Claude Desktop.
  2. Or: pip install agentic-video

Clip and licence

Licence
CC-BY-SA-4.0
Author
Suyash Dwivedi
Source
commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.

Also uses (insert 1)

Licence
PD
Author
NASA
Source
commons.wikimedia.org
This file is in the public domain in the United States because it was solely created by NASA.