trim_video
Cut a video segment by specifying a start time and either an end time or duration, saving the result to an output path.
Instructions
Cut a clip out of a video between a start time and either an end time or a duration (seconds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Duration of the clip in seconds (use this or end_time, not both) | |
| end_time | No | End time in seconds (use this or duration, not both) | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| start_time | No | Start time in seconds | |
| output_path | Yes | Destination path for the trimmed clip. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |