compare
Measures a composition stretch against a reference video frame by frame to find timing lag, on-screen ink, position, sharpness, and the reference ease to copy.
Instructions
Compare a stretch of a composition with the same stretch of a reference video, frame by frame: how much is on screen (ink), where it sits, how sharp it is. Returns the lag that lines them up (positive: the composition is late), when each arrives and lands, and plain findings ("arrives sharp where the reference arrives blurred"), plus referenceEase: the reference move as a { curve: "linear(…)", dur } ease to put on the step that copies it. Name a mark on a reference (example: its id) to compare exactly the marked seconds and the circled part of the frame; or give reference, ref_t, dur and region ([x, y, w, h] fractions) by hand. t is where the copy starts in the composition (default: the same second as in the reference).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"composition": "<composition>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| t | No | Start in the composition (default: ref_t) | |
| dur | No | Seconds to compare | |
| rows | No | Include the per-frame measurements | |
| ref_t | No | Start in the reference, seconds | |
| theme | No | ||
| region | No | ||
| example | No | A mark on a reference video (list_examples { reference }): its stretch and region are compared | |
| reference | No | Reference video: a path in the project (media/ref.mov) or an absolute path | |
| composition | Yes | Composition name (file in compositions/ without .json) |