v1.52.0

allenai/olmocrv1.52.0Jul 30, 2026by Vanilagy

AI Summary

A major update introducing a new quantization system for constant-quality encoding, expanding the `Quality` class, and deprecating legacy bitrate fields in favor of the new `quality` API.

Key Highlights

  • Added quantizer support for constant-quality encoding
  • Expanded `Quality` class with arbitrary levels and codec-specific settings
  • Deprecated `bitrate` fields across the API
  • Fixed video/audio decoders not closing in error situations

Breaking Changes

  • Deprecated `bitrate` fields across the API; 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)