video_trim
Trim a video clip by specifying start time and either duration or end timestamp. Optionally enable frame-accurate seeking for precise cuts.
Instructions
Trim a video clip by start time and duration.
Args: input_path: Absolute path to the input video. start: Start timestamp (e.g. '00:02:15' or seconds as string like '10.5'). duration: Duration to keep (e.g. '00:00:30' or '30'). Exclusive with end. end: End timestamp. Exclusive with duration. output_path: Where to save the trimmed video. Auto-generated if omitted. accurate: Frame-accurate seeking (slower). Default False uses fast input seeking which may land on the nearest keyframe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| start | No | 0 | |
| duration | No | ||
| end | No | ||
| output_path | No | ||
| accurate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||