How Trim video works
Cut a video to a specific start and end time directly in your browser using ffmpeg WebAssembly. Two modes are available: fast stream copy seeks to the nearest keyframe before your chosen start point and cuts at the nearest keyframe after the end point, completing in seconds regardless of clip length, but the actual cut boundaries may drift by up to a few frames from your target timestamps. Precise re-encode mode transcodes the selected segment with libx264, giving frame-perfect accuracy at the cost of extra CPU time.
Copy mode is ideal for rough cuts where a fraction-of-a-second drift is acceptable, and it causes no quality loss at all. Re-encode mode is the right choice for presentation clips, highlight reels, or any case where the cut must begin or end on an exact frame. Processing time in re-encode mode scales with the segment length and your device's CPU speed.