Trim video
trim_videoCut a video down to a time range using a start time and either an end time or duration. Accepts times in seconds or clock format, with an option to copy streams without re-encoding.
Instructions
Cut a video down to a time range. Give a start time plus either an end time or a duration (omit both to keep everything from start to the end of the file). Times are seconds (12.5) or clock form (1:23:45.6).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time | |
| start | No | Start time (default: beginning of file) | |
| duration | No | Length to keep, instead of an end time | |
| fast_copy | No | Copy streams without re-encoding: much faster, but cuts snap to keyframes so they can be off by a second or two (default false) | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result (default: alongside the input) |