retime_video
Adjust video speed to match a target duration or set explicit speed. Slow or speed up clips to fit voiceover segments, with optional motion interpolation for smooth slow-motion.
Instructions
Stretch/compress a clip to hit a target duration (or explicit speed).
Provide EITHER target_duration_s (speed is computed as source/target)
OR speed (1.0 unchanged, 0.5 = half-speed/2x longer). Use this to slow
a b-roll clip slightly to fill a voiceover segment without repeating
footage. interpolate=true smooths slow-mo via motion interpolation
(default off = frame duplication). speed is clamped to [0.5, 2.0]; outside
that range is a ToolError. Audio (if any) is retimed too. ffprobe-verified.
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": {
"video_path": "<video_path>",
"output_path": "<output_path>"
},
"name": "retime_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | ||
| video_path | Yes | ||
| interpolate | No | ||
| output_path | Yes | ||
| target_duration_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||