Find the frame rate and size of a clip
0:38CC-BY-4.0 · Lucas Werkmeister
Proof frames
Tool calls
probe_video
Arguments
{
"source": "$CLIP"
}
Result
{
"ok": true,
"data": {
"source_path": "~/work/cards/probe-screen-recording/clip.mp4",
"duration_sec": 37.666667,
"width": 480,
"height": 270,
"fps": 24,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"size_bytes": 965054,
"has_audio": false,
"audio_codec": null,
"video_codec": "h264",
"fingerprint": "1d141ef527aaed88bfd5",
"has_video": true
}
}
contact_sheet
Arguments
{
"source": "$CLIP",
"samples": 4
}
Result
{
"ok": true,
"data": {
"file_path": "<cache>/1d141ef527aaed88bfd5/contact_sheets/sheet_4samples_4cols_9ed223.jpg",
"sample_count": 4,
"rows": 1,
"cols": 4,
"start_sec": 4.708,
"end_sec": 32.958,
"timestamps": [
4.708,
14.125,
23.542,
32.958
],
"frame_width": 768,
"frame_height": 432,
"tool_file": {
"_tag": "ToolFile",
"name": "sheet_4samples_4cols_9ed223.jpg",
"mimeType": "image/jpeg",
"encoding": "base64",
"data": "<370388 base64 chars dropped>",
"byteLength": 277789
}
}
}
Question and answer
- Question
- What is the frame rate of this video, and how big is it?
- Answer
- The file plays at 24 frames per second.
Check passedanswer 24.0, expected 24.0 ±0.05
How it was checked
- Truth from
- constructed
- Fixed at
Planted by this recipe: ffmpeg re-encoded the source at 24 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 24 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
- CC-BY-4.0
- Author
- Lucas Werkmeister
- Source
- commons.wikimedia.org
This file is licensed under the Creative Commons Attribution 4.0 International license.