MediaBunny: Native Speed
Video processing without the lag
2025-12-13
Processing video in the browser usually involves a 20MB WASM blob and a prayer. We’ve been forcing desktop tools into web tabs for too long.
It’s heavy, it’s slow, and it kills your user’s battery.
Mediabunny is the answer to the ffmpeg.wasm fatigue. It’s a zero-dependency, tree-shakable TypeScript library that actually respects the browser environment.
How it works
It uses the WebCodecs API directly. No emulation layer. Just raw performance.
- Read: Extract metadata or frames instantly.
- Write: Generate MP4/WebM files client-side.
- Convert: Transmux and transcode without melting the CPU.
import { Input, UrlSource, ALL_FORMATS } from 'mediabunny';
const input = new Input({
source: new UrlSource('./video.mp4'),
formats: ALL_FORMATS,
});
// Get metadata instantly without loading the whole file
const { duration } = await input.computeDuration();
console.log(`Duration: ${duration}s`);
Stop shipping massive binaries for simple media tasks.