v1.52.0
Vanilagy/mediabunnyv1.52.0Jul 30, 2026by Vanilagy
AI Summary
A major update introducing quantizer support for constant-quality encoding and a revamped Quality API, while deprecating legacy bitrate fields. Includes significant improvements to encoder and decoder stability.
Key Highlights
- Added quantizer support for encoders to enable constant-quality encoding
- Expanded `Quality` class to support arbitrary quality levels and specific codec quantizers
- Deprecated `bitrate` fields across the API in favor of the new `quality` field
- Fixed video/audio decoders not closing in certain error situations
- Improved encoder error handling to reduce warnings
Breaking Changes
- Deprecated `bitrate` fields; use the new `quality` field instead
New Features
- Quantizer support for encoders
- Expanded `Quality` class capabilities
Full Release Notes
- Added quantizer support for encoders, enabling constant-quality encoding. Quantizer mode is used automatically if you use subjective qualities; no code changes needed. (#448) - Expanded the `Quality` class: Can now take in an arbitrary quality level, specify bitrate and bitrate mode, and specify a concrete per-codec quantizer level - Adjusted `@mediabunny/server` to properly forward quantizer settings to libavcodec - Deprecated `bitrate` fields all across the API; use the new `quality` field instead - Fixed video/audio decoders not being closed in certain error situations (#446) - Fixed promises hanging indefinitely sometimes when calling Input.dispose() - Improved encoder error handling to reduce "Sample wasn't closed" warnings - Fixed ISOBMFF muxer not labeling video tracks as containing an alpha track (for example, with ProRes 4444) (#450)