npm mediabunny 1.57.0
v1.57.0

latest releases: 1.65.1, 1.65.0, 1.64.0...
one month ago
  • Added support for flipped video: flip metadata is exposed via InputVideoTrack.getFlip() (applied after rotation) and supported bidirectionally for ISOBMFF and Matroska, and flipping is now available across the whole API surface: VideoTrackMetadata.flip, VideoSampleInit.flip, VideoSample.flip, VideoSample.setFlip(), flip options for drawing video frames, VideoSampleTransformOptions.flip, VideoTransformOptions.flip, CanvasSinkOptions.flip and ConversionVideoOptions.flip. Custom VideoSample transformers now also receive the flip as a transformation input, and it is a supported operation in @mediabunny/server. Flipping metadata can be automatically passed through in the Conversion API in the packet copy path. (#510)
  • Added InputVideoTrack.getTransformationMatrix(): returns the raw 3x3 affine transformation matrix the track applies to its raw video frames. Rotation and flip are derived from this, but it can contain other transformations as well. This matrix can be written into new files via VideoTrackMetadata.transformationMatrix.
  • Added automatic writing of the btrt (bitrate) box when muxing ISOBMFF files
  • Added BaseTrackMetadata.bitrate and BaseTrackMetadata.averageBitrate for providing bitrate guesstimates as metadata
  • btrt bitrate metadata is now extracted from ISOBMFF files and exposed via InputTrack.getBitrate() and InputTrack.getAverageBitrate()
  • Added a frameRate option to the canEncodeVideo helper functions (#507)
  • Deprecated OutputFormat.supportsVideoRotationMetadata, use OutputFormat.supportsVideoTransformationMetadata instead.
  • Deprecated ConversionVideoOptions.allowRotationMetadata, use ConversionVideoOptions.allowTransformationMetadata instead.
  • Fixed untranslated rotation matrices being written into ISOBMFF header boxes
  • ISOBMFF demuxer now also respects the movie-global transformation matrix
  • Fixed incorrect parsing of AES-128 IV in HLS (#509)
  • Output.finalize() failing now automatically transitions the Output to the canceled state (#506)

Don't miss a new mediabunny release

NewReleases is sending notifications on new releases.