video_edit
Execute a full timeline-based edit from a JSON specification. Combine clips, audio, overlays, transitions, and export settings in a single operation.
Instructions
Execute a full timeline-based edit from a JSON specification.
The timeline JSON describes video clips, audio tracks, text overlays, image overlays, transitions, and export settings in a single operation.
Image overlays are applied in a single filtergraph pass (no multiple re-encodes).
Sequence shortcut (simple multi-clip chain with per-boundary transitions)::
{
"clips": ["a.mp4", "b.mp4", "c.mp4"],
"transitions": ["fade", "dissolve"],
"transition_duration": 0.5
}Args: timeline: Full Timeline JSON (width/height/tracks/export) or the sequence shortcut above. Can also be a JSON string or a path to a .json file. Image overlays in tracks: {"type": "image", "images": [{"source": "logo.png", "position": "top-right", "width": 200, "opacity": 0.8}]} output_path: Where to save the final video. Auto-generated if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeline | Yes | ||
| overwrite | No | Explicitly allow replacing existing media. Existing non-media files are protected. | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||