# Mediabunny

> Fast, dependency-free JavaScript media toolkit for browser-based video and audio processing

Mediabunny is a lightweight TypeScript library for reading, writing, and converting video and audio files directly in the browser. It leverages modern browser APIs like WebCodecs for hardware-accelerated processing, offering a native web alternative to heavy WebAssembly ports of FFmpeg.

Website: https://mediabunny.dev/

## What it is for

- Transcode and resize video or audio files directly on the client side without backend servers
- Extract precise metadata, video frames, or audio samples from local or remote media files
- Generate custom MP4 or WebM video recordings from HTML canvas or audio buffers

## Features

- Zero-dependency, tree-shakable TypeScript library
- Hardware-accelerated encoding and decoding via the browser WebCodecs API
- Conversion API for transmuxing, transcoding, resizing, rotating, and trimming
- Selective reading to inspect file metadata or samples without loading whole files
- Universal I/O supporting Blobs, URLs, Streams, and in-memory buffers
- Bidirectional support for common containers (MP4, WebM, WAV) and modern codecs

## Pricing

Open source. Free (MPL-2.0)

## Details

- Type: Web app
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Web, Code library
- For: Web developers building video editors, media tools, screen recorders, and creative web applications
- Alternative to: ffmpeg.wasm, mp4box.js
- Tags: video, audio, webcodecs, transcoding, typescript, browser

## Why it was saved

- [@JNYBGR, 31 August 2025](https://x.com/JNYBGR/status/1962192414157783116): Browser-based media processing without server-side FFmpeg — useful for video/audio conversion in web apps.

## Related

- [@remotion/webcodecs](https://xiry.app/resources/remotion-webcodecs): In-browser video and audio conversion library powered by the WebCodecs API. (Web app, Freemium)
- [Remotion Convert](https://xiry.app/resources/remotion-convert): In-browser video and audio conversion running locally without uploads (Web app, Free)
- [webcodecs-scroll-sync](https://xiry.app/resources/webcodecs-scroll-sync): Synchronize video playback to page scroll using the WebCodecs API (Web app, Open source)
- [cartesia-js](https://xiry.app/resources/cartesia-js): Official JavaScript and TypeScript client library for Cartesia's text-to-speech API (GitHub repo, Open source)
- [agent-browser](https://xiry.app/resources/agent-browser): Browser automation CLI and engine purpose-built for AI agents (GitHub repo, Open source)
- [Starter.diy](https://xiry.app/resources/starter-diy-2164): Full-stack SaaS starter with Next.js 15, Convex, and Clerk Billing (GitHub repo, Open source)

Updated 10 October 2026. Page: https://xiry.app/resources/mediabunny

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
