cd /news/ai-tools/building-a-video-editor-that-never-u… · home › topics › ai-tools › article
[ARTICLE · art-182844] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Building a video editor that never uploads your video: WebCodecs, Whisper and WASM in the browser

A developer built Clipalio, a browser-based video editor that processes files entirely on-device using WebCodecs, Whisper via transformers.js in a Web Worker, and WASM, so videos are never uploaded. Measured on an Apple M-series laptop with a 152-second Spanish clip, Whisper base on CPU ran at 4.4x real time with 3% word error rate, while base on WebGPU fp16 hit 6.7x at 4% WER. The team also fixed limiter clipping caused by AAC priming samples by positioning the limiter curve by sample timestamps, and validates each of roughly 30 tools with Playwright tests checked against ffprobe.

recommendation

Chunk audio at the quietest point and skip silent windows before running Whisper in-browser; the source measured 3% WER at 4.4x real time with base on CPU.

more in playbook: Inference and self-hosting
by read2 min views3 publishedDec 6, 2026

Most "online video editors" are upload forms: your file goes to a server, gets processed, and comes back with a watermark or a paywall. We wanted the opposite: an editor where the video never leaves the device. Clipalio is the result. Here is what we learned building it.

A video tool that ships 30 MB of WASM on page load is unusable on a phone. Each tool has a tiny ; the engine module loads after a file is chosen, and AI models load only when the user presses a button that states the download size ("Download model (80 MB) and create subtitles"). Models are kept in the Cache API, so the second run is instant.

We run Whisper through transformers.js in a Web Worker. Measured on an Apple M-series laptop with a 152-second Spanish clip:

Model / device Speed Word error rate
tiny, CPU 7.1x real time 15%
base, CPU 4.4x 3%
base, WebGPU fp16 6.7x 4%

"base" is the default. Two tricks mattered more than the model size: cutting audio into 30-second windows at the quietest point (otherwise words are split), and skipping silent windows, because Whisper invents text for silence. We also do our own language detection, since the library assumes English when no language is given.

For the volume tool we measure BS.1770 loudness (it matches ffmpeg's ebur128 within 0.1 LU) and apply a limiter. Our first limiter used a running sample counter, and peaks still clipped. The reason: AAC priming samples shift the timeline. Positioning the limiter curve by sample timestamps instead of a counter fixed it. The same class of bug appeared with RNNoise, which answers one 10 ms frame late; we drop the first output frame and delay the dry signal by one frame, and measured lag went to −1 sample.

If a tool changes only audio, the video packets are copied untouched (we check the MD5 of the video track in tests). It is faster, and it is lossless.

Safari has gaps in encoders, Firefox in some capture options, phones in memory. Instead of failing silently, each tool shows a short note chosen by user agent and falls back (for example, to WebM) when an encoder is missing.

Every tool has a Playwright test that runs real files through headless Chromium with fake camera and microphone devices, and checks the output with ffprobe: duration, codecs, loudness, frame PSNR against ffmpeg. That is what lets a small team ship ~30 tools without a QA department.

The editor and all tools are free, without an account or watermark: clipalio.com. Feedback on speed and failures on your hardware is very welcome.

── more in #ai-tools 4 stories · sorted by recency
── more on @clipalio 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-video-edi…] indexed:0 read:2min 2026-12-06 · —