Find the frame rate and size of a clip
0:24generated · generated
Proof frames
Tool calls
probe_video
Arguments
{
"source": "$CLIP"
}
Result
{
"ok": true,
"data": {
"source_path": "~/work/cards/probe-synthetic/clip.mp4",
"duration_sec": 24,
"width": 480,
"height": 270,
"fps": 25,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"size_bytes": 494183,
"has_audio": true,
"audio_codec": "aac",
"video_codec": "h264",
"fingerprint": "96e6666fc849ad391a40",
"has_video": true
}
}
contact_sheet
Arguments
{
"source": "$CLIP",
"samples": 4
}
Result
{
"ok": true,
"data": {
"file_path": "<cache>/96e6666fc849ad391a40/contact_sheets/sheet_4samples_4cols_542532.jpg",
"sample_count": 4,
"rows": 1,
"cols": 4,
"start_sec": 3,
"end_sec": 21,
"timestamps": [
3,
9,
15,
21
],
"frame_width": 768,
"frame_height": 432,
"tool_file": {
"_tag": "ToolFile",
"name": "sheet_4samples_4cols_542532.jpg",
"mimeType": "image/jpeg",
"encoding": "base64",
"data": "<122920 base64 chars dropped>",
"byteLength": 92189
}
}
}
Question and answer
- Question
- What is the frame rate of this video, and how big is it?
- Answer
- The file plays at 25 frames per second.
Check passedanswer 25.0, expected 25.0 ±0.05
How it was checked
- Truth from
- constructed
- Fixed at
Planted by this recipe: ffmpeg re-encoded the synthetic source at 25 frames per second and 480 px wide (the choice is seeded from the card id). The truth is that setting; the tolerance 0.05 allows for rounding in the probe.
The source was re-encoded by a script at 25 frames per second and 480 px wide, so the answer is the setting the script chose, not a real-world camera fact.
Try it yourself
Use agentic-video to probe my video. Tell me its frame rate, width and height, then make a contact sheet of it. Use my own file.
- Get the .mcpb file and open it in Claude Desktop.
- Or:
pip install agentic-video
Clip and licence
- Licence
- generated
Generated for the gallery; no third-party material.