Skip to content

v1.45.0

Choose a tag to compare

@Vanilagy Vanilagy released this 13 May 18:21
· 41 commits to main since this release
6c9d9a5

@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: VideoSampleResource and AudioSampleResource allow you to provide a custom data backing for VideoSample and AudioSample and 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 power VideoSample.transform()
  • Added a CPU-based alpha splitter/merger fallback for transparent video encoding and decoding
  • VideoSample.allocationSize() and VideoSample.copyTo() no longer throw if their format is null but a custom format override is provided in the options
  • Increased the default cache size of ReadableStreamSource from 16 MiB to 32 MiB
  • Fixed track process synchronization in the Conversion API; reads are now more sequential
  • Fixed CMAF segments starting with a sidx box 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