v1.45.0
@mediabunny/server
This version adds a new extension package which enables you to use the full feature set of Mediabunny in server-side environments (Node, Bun, Deno). For more details, check out the README.
Usage:
import { registerMediabunnyServer } from '@mediabunny/server';
registerMediabunnyServer();That's it - you now have access to all audio and video decoders and encoders, as well as video transformation capabilities, on the server.
mediabunny
- Added media sample resources:
VideoSampleResourceandAudioSampleResourceallow you to provide a custom data backing forVideoSampleandAudioSampleand avoid having to copy data around. - Added
VideoSample.transform(): A way to perform simple transformations on a video frame (resize, rotate, crop). - Added
registerVideoSampleTransformer, a function for registering a custom transformer to powerVideoSample.transform() - Added a CPU-based alpha splitter/merger fallback for transparent video encoding and decoding
VideoSample.allocationSize()andVideoSample.copyTo()no longer throw if their format isnullbut a custom format override is provided in the options- Increased the default cache size of
ReadableStreamSourcefrom 16 MiB to 32 MiB - Fixed track process synchronization in the Conversion API; reads are now more sequential
- Fixed CMAF segments starting with a
sidxbox not being recognized (#369) - Fixed incorrect timestamps of decoded audio in Chromium (#370, #371)
- Fixed media sample range iterators cutting off samples with negative timestamps by default
- Fixed FLAC demuxer erroring when seeking to negative timestamps