trim
Cut a video to a sub-clip using a start time plus end time or duration. Re-encodes by default for frame-exact cuts that fully remove unwanted content.
Instructions
Trim a video to a sub-clip by start + (end or duration). Re-encodes by default, so the cut is frame-exact and the removed content is really gone; set exact: false for a fast stream copy that keeps hidden frames from before start in the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time in seconds. Use end OR duration. | |
| exact | No | Re-encode so the cut is frame-exact and nothing before start stays in the file (default true). false stream-copies: much faster, but the cut snaps to a keyframe and the frames before start still ship in the file, hidden only by an edit list. Never use false to remove sensitive content. | |
| input | Yes | Path to the source video. | |
| start | Yes | Start time in seconds. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| duration | No | Clip length in seconds. Use end OR duration. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |