A browser-based video snipping tool powered by FFmpeg WASM.
- Local Processing: Video files are processed entirely in your browser.
- Privacy: No files are uploaded to any server.
-
Cut Video:
- Drag & drop a video file.
- Mark In and Out with the
IandOkeys or the "In" / "Out" buttons of the dashed "New" row, or type the times (m:ss.sor seconds). - Press
Enter(or +) to add the segment. The bar under the video shows the segments (the New one with green edges) and the playhead; click or drag it to seek. Drag a segment's edge on the bar to move its In or Out; the video follows. Play/pause (or click the video), mute and volume are next to the time at the top. - Naming: the name field is part of the output file name (
cut_<video>_<name>.<ext>). Segments with the same name are merged into one file; different names create separate files. The line above the list shows the resulting files. - Click "✂ Cut" to process and download.
-
Mode (Copy | Re-encode, next to "✂ Cut"; more options in Settings ⚙️):
- Copy (default): no re-encoding, lossless, takes seconds. A cut starts at the keyframe before In (on phone videos up to about 1 s early).
- Re-encode: frame-exact cuts, applies Rotation and Scale. Runs on one CPU thread, so a 1080p clip can take longer than its own duration. The status line below the log shows progress; "Stop" cancels.
- Multi-thread (experimental, Re-encode only): loads a second ffmpeg core (32 MB, cached after first use) that runs on up to 8 threads: about 2× faster on 4 cores, 6× on 8 or more. Needs a cross-origin isolated page (https or localhost; the service worker sets this up, possibly after one reload). Its memory is fixed at 1 GB, so outputs merged from many segments (more than 16 at 1080p, 4 at 4K) fall back to one thread.
-
Export Command:
- Click "ffmpeg cmd" to generate FFmpeg commands for local execution.
- Enable "CUDA" in Settings (⚙️) to generate commands with NVENC flags (fast!).
| Key | Action |
|---|---|
Space |
Play / Pause |
I |
Set In Point |
O |
Set Out Point |
Enter |
Add Segment |
← / → |
Back / forward 1 s (Shift: 5 s) |
, / . |
Back / forward 1 frame (assumes 30 fps) |
- CUDA/GPU: Not supported in browser (WASM is CPU-only). Use "ffmpeg cmd" to run with GPU locally.
- No picture, only audio: the browser can't decode the video codec, e.g. HEVC/H.265 phone videos in Chrome on Linux. Cutting still works (ffmpeg.wasm has its own decoders); Firefox shows the picture if the system has an HEVC decoder.
- vibe-coded with gemini 3 Pro & Claude
Browsers don't let a page opened directly from disk (file://) load the ffmpeg core, so serve the folder:
python3 -m http.server 8080
# Then open http://localhost:8080Browser tests in tests/ (Playwright, Chromium and Firefox) cut a generated sample video in Copy, Re-encode and Multi-thread mode and check the outputs' durations; others render the help page and drive the editor by accessible names, as a screen reader or browser agent would (so keep aria-labels on icon buttons and avoid alert/confirm, which block automation). They need ffmpeg, ffprobe and python3 on the PATH:
cd tests
npm ci
npx playwright install chromium firefox # once, if the browsers for this Playwright version are missing
npx playwright testcoi-serviceworker.js caches the app for offline use (PWA) and sets COOP/COEP headers on static hosts such as GitHub Pages. Bump CACHE_NAME there (and app-version in index.html) on every release, or installed copies keep the old files.