Choose a passage
Video Trimmer saves one continuous interval from a video. It does not join separate scenes or remove several internal passages in one export.
- Choose a video that your browser can preview, commonly MP4 or WebM with compatible codecs.
- Set the start and end using the timeline controls or numeric fields. The selected duration appears below the controls.
- Use Preview selection to check the beginning and end. Adjust the interval before exporting.
- Choose an output container and quality. Balanced re-encodes; Original encoding copies the existing streams where the destination container supports them.
- Choose whether to retain audio, sign in, export and download the separate result. Review both boundaries in the finished file.
Keep the tab in the foreground. On mobile, locking the device or changing applications can suspend processing.
How the selection is validated
The page reads duration and display dimensions from video metadata. Start and end are clamped to the source duration. The interface prevents an inverted range and uses a minimum separation of up to 0.04 seconds, limited by the source duration.
The export model independently requires finite times, a non-negative start and an end after the start within the recording. Editing a setting clears the previous result, so a download does not represent an earlier selection.
Precise re-encoding
For supported output settings, the WebCodecs Worker asks Mediabunny to trim to the selected start and end. Frames are decoded and re-encoded, and necessary audio processing keeps the interval aligned. Required audio must remain in the output; an unsupported codec triggers the FFmpeg fallback instead of producing a silent file.
The FFmpeg re-encoding route opens the input, applies the selected start and duration, chooses the first video track and optionally the first audio track, and encodes the output. The duration is the end minus the start. Resolution is kept or capped without enlarging a smaller source.
duration = end - start
-i input.media -ss START -t DURATION
-map 0:v:0 -map 0:a:0?These are the relevant argument fragments, not a complete FFmpeg command. Codec and container settings are added by the export model. Timing precision is constrained by actual frame and audio-sample boundaries; entering millisecond values does not guarantee a cut between video frames.
Original encoding and keyframes
Original encoding uses FFmpeg stream copying. It places the seek before the input and copies compressed packets without picture filters or a new video encoder. It can be much faster and avoids generation loss, but inter-frame codecs need a suitable keyframe to begin decoding.
The output may include footage before the selected start or differ around its boundaries. Use Balanced when the exact passage matters. Original encoding also locks resolution and frame rate to their source values and requires a container compatible with the original codecs.
This mode remains on the FFmpeg path. Comparing it with WebCodecs re-encoding as a raw speed contest would compare different work.
Cancellation and saved results
Only one export runs at a time. Cancel terminates the current engine, increments a task identifier and stops later asynchronous results from becoming downloads. The original video and selection remain available for another export.
Processing is local to the browser; account reservations track the export separately. The result is revealed after account completion succeeds. Large source files can still require substantial memory even for short selections.