Tour a 4-section nature montage and find each section start
Proof frames
Tool calls
overview_chunks
Arguments
{
"source": "$CLIP",
"chunk_sec": 60,
"samples_per_chunk": 8
}
Result
{
"ok": true,
"data": {
"chunks": [
{
"file_path": "/private<cache>/93f2fd5eb81f09f1a918/contact_sheets/sheet_8samples_4cols_2be412.jpg",
"sample_count": 8,
"rows": 2,
"cols": 4,
"start_sec": 2.05,
"end_sec": 30.749999999999996,
"timestamps": [
2.05,
6.1499999999999995,
10.25,
14.349999999999998,
18.45,
22.549999999999997,
26.65,
30.749999999999996
],
"frame_width": 768,
"frame_height": 432,
"index": 1,
"range_start_sec": 0,
"range_end_sec": 32.8,
"tool_file": {
"_tag": "ToolFile",
"name": "sheet_8samples_4cols_2be412.jpg",
"mimeType": "image/jpeg",
"encoding": "base64",
"data": "<868780 base64 chars dropped>",
"byteLength": 651583
}
}
],
"total": 1,
"start_sec": 0,
"end_sec": 32.8,
"chunk_sec": 60
}
}
detect_cuts
Arguments
{
"source": "$CLIP"
}
Result
{
"ok": true,
"data": {
"cuts": [
{
"timestamp_sec": 8.84,
"score": 0.467794,
"kind": "cut"
},
{
"timestamp_sec": 15.88,
"score": 0.404255,
"kind": "cut"
},
{
"timestamp_sec": 25.44,
"score": 0.367613,
"kind": "cut"
},
{
"timestamp_sec": 30.9,
"score": 0.053119,
"kind": "transition"
}
],
"total": 4
}
}
Question and answer
- Question
- Give me a quick tour of this video. Where do the sections start?
- Answer
- detect_cuts lists 4 changes, at 8.84, 15.88, 25.44, 30.9 seconds.
- Tool returned
- [8.84,15.88,25.44,30.9]
- Truth
- [8.84,15.88,25.44]
How it was checked
- Truth from
- constructed
- Fixed at
Planted by this recipe before any tool ran: ffmpeg joined 4 sections with hard cuts and no sound, in this order: ocean-shores-waves-seagulls, korkeakoski-waterfall, yakushima-deer-sounds, nairobi-giraffe-eating. The sections start at 78.16 s, 8.8 s, 0.48 s, 40.04 s in their sources and are 8.84, 7.04, 9.56, 7.36 s long (no scene change above 0.3 inside any section; sources skipped for having no such section: none). The truth is the planted join times 8.84 s, 15.88 s, 25.44 s, the start of each section after the first, with tolerance 0.5 s. The calls are overview_chunks over the whole montage as one sheet, then detect_cuts with its default threshold, both fixed before the run.
A script joined 4 sections, each from a different clip of the same kind, with hard cuts and no sound, so the answer is the planted joins and not a real film's structure. The first section's start (0 s) is not counted.
Try it yourself
Using agentic-video, give me a quick tour of my video. Run overview_chunks on the whole video to see its sections, then run detect_cuts on the whole video and tell me the time of each section start, in seconds. Use my own file.
- Get the .mcpb file and open it in Claude Desktop.
- Or:
pip install agentic-video
Clip and licence
- Licence
- CC-BY-SA-4.0
- Author
- Chris Light
- Source
- commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Also uses (insert 1)
- Licence
- CC-BY-SA-4.0
- Author
- LKorhonen
- Source
- commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Also uses (insert 2)
- Licence
- CC-BY-SA-3.0
- Author
- Geraldshields11
- Source
- commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Also uses (insert 3)
- Licence
- CC-BY-SA-4.0
- Author
- Addshore
- Source
- commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.