trim
Cut a clip from a media file using start time plus duration or end time. Re-encode for frame-accurate cuts by default, or copy streams for fast lossless cuts at keyframe boundaries.
Instructions
Cut a clip out of a media file. Give start (seconds) plus duration OR end. Re-encodes by default for frame-accurate cuts; set stream_copy=true for fast lossless cuts (keyframe boundaries only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time in seconds (alternative to duration) | |
| input | Yes | Path to the file (relative or absolute) | |
| start | No | Start time in seconds | |
| output | Yes | Output file path | |
| duration | No | Clip length in seconds | |
| stream_copy | No | Copy streams without re-encoding (fast, keyframe-accurate only) |