video_edit
Edit videos using JSON specifications to combine clips, audio, text, and transitions 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, transitions, and export settings in a single operation.
Example timeline: { "width": 1080, "height": 1920, "tracks": [ { "type": "video", "clips": [ {"source": "intro.mp4", "start": 0, "duration": 5}, {"source": "main.mp4", "start": 5, "trim_start": 10, "duration": 30} ], "transitions": [{"after_clip": 0, "type": "fade", "duration": 1.0}] }, { "type": "audio", "clips": [{"source": "music.mp3", "start": 0, "volume": 0.7}] }, { "type": "text", "elements": [{"text": "EPISODE 42", "start": 0, "duration": 3, "position": "top-center"}] } ], "export": {"format": "mp4", "quality": "high"} }
Args: timeline: JSON object describing the full edit timeline. output_path: Where to save the final video. Auto-generated if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeline | Yes | ||
| output_path | No |