trim
Cut a section from a video or audio file by setting start and end or duration; choose accurate re-encoding for frame-exact cuts or fast lossless stream copying.
Instructions
Cut a section out of a video or audio file.
start, end, duration: seconds (12.5) or [HH:]MM:SS[.ms] ("1:02:03.5"). Give start and end, or start and duration; with only start the cut runs to the end of the file. mode: "accurate" (default) re-encodes so the cut is frame-exact; "fast" copies the streams without re-encoding (instant, lossless) but the cut snaps to the keyframe before start, so the clip may begin a little early. Default output: name.trimmed.ext.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| mode | No | accurate | |
| input | Yes | ||
| start | No | ||
| output | No | ||
| dry_run | No | ||
| duration | No | ||
| overwrite | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |