A WebAssembly and JavaScript port of FFmpeg that records, converts, and streams video and audio inside the browser. Processing stays on the client without sending media to a remote server.
Overview
ffmpeg.wasm brings FFmpeg-style transcoding and streaming workflows to web pages by compiling FFmpeg to WebAssembly via Emscripten. Applications can manipulate audio and video locally, which the project highlights as a way to keep user data on the device.
The implementation is written in TypeScript for typed APIs and documentation covers getting started, usage, and FAQs. Builds can link common codec and rendering libraries such as x264, x265, libvpx, lame, vorbis, opus, libass, and libwebp, with the site noting that additional external libraries may be added over time.
Typical integration loads the wasm module in a browser environment and calls its API to transform media formats, extract audio, or prepare streams without installing native FFmpeg on the end user machine.
Community support and contribution guidance are available alongside sponsorship information for ongoing maintenance.
Key features
- WebAssembly FFmpeg port
- In-browser transcode and stream
- Client-side data processing
- TypeScript APIs
- H.264 and H.265 codecs
- VP8 and VP9 via libvpx
- MP3, OGG, and OPUS audio
- Subtitle and font rendering libs
Use cases
- Browser video format conversion
- Client-side audio extraction
- Privacy-sensitive media editing
- Web apps without server transcode
- Prototype streaming in the browser