Overview of Mediabunny
mainMediabunny is a zero-dependency, tree-shakable TypeScript library designed for reading, writing, and converting media files (such as MP4, WebM, MOV, MKV, etc.) directly in the browser. It functions as a high-performance media toolkit similar to FFmpeg but optimized for web environments using the WebCodecs API.
Key capabilities include:
- Metadata & Data Extraction: Read metadata and extract media data from various container formats.
- File Creation & Conversion: Create new media files and perform transmuxing or transcoding.
- Hardware Acceleration: Utilizes the WebCodecs API for efficient decoding and encoding.
- Format Support: Supports many containers (.mp4, .mov, .webm, .mkv, .mp3, .wav, .ogg, .aac, .flac, .ts) and HLS (VOD and live).
- Media Processing: Utilities for compression, resizing, rotation, cropping, resampling, and trimming.
- Streaming: Supports input/output streaming and arbitrary file sizes with file location independence (memory, disk, network).