How the Video Compressor Works
AnyTool compresses video entirely in the browser using a self-hosted single-threaded ffmpeg.wasm engine — the core (ffmpeg-core.js + the 32 MB wasm) is bundled from npm and served as a same-origin asset, so nothing is fetched from a CDN. The clip is written to ffmpeg's virtual filesystem, re-encoded with H.264 at a constant-rate-factor (CRF) quality preset (and optionally downscaled to an even-dimension resolution) with AAC audio and yuv420p pixels for broad compatibility, then read back as an MP4 blob. Encoding progress is reported live and the before/after size is shown. Single-threaded is deliberate: the multi-threaded core needs SharedArrayBuffer + cross-origin isolation (COOP/COEP), which would block cross-origin ad iframes, so it is avoided.
- Runs client-side — the video is never uploaded
- Self-hosted ffmpeg core (bundled) — no CDN
- Constant-quality CRF presets + optional downscale
- H.264 + AAC, yuv420p for compatibility
- Live progress + before/after size
- Single-threaded (keeps ads working); no backend, no cap
