Loop video
loop_videoRepeat a video clip back-to-back either a set number of times or until a target duration is filled, without re-encoding.
Instructions
Repeat a video back-to-back a number of times, or long enough to fill a target duration. Fast — no re-encoding.
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": {
"input_path": "<input_path>"
},
"name": "loop_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plays | No | Total number of times the clip plays | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result | |
| target_duration | No | Loop until the output reaches this length instead |