libavjs-webcodecs-bridge
v0.3.0
Published
A bridge between libav.js and WebCodecs, to allow easier decoding of files demuxed by libav.js
Downloads
14,282
Readme
libavjs-webcodecs-bridge is a bridge to help you use libav.js and WebCodecs (or libavjs-webcodecs-polyfill) together.
WebCodecs does not come with demuxers or muxers. libav.js has those as well as encoders and decoders, but if you have WebCodecs available, you probably should use them for en/decoding instead of libav.js. That means it's common to demux with libav.js then decode with WebCodecs, or encode with WebCodecs then mux with libav.js. But, they don't speak the same language, so to speak.
This bridge bridges the gap. It includes conversions from the various libav.js types to the equivalent WebCodecs types, and vice-versa.
This project is by the same author as libav.js and libavjs-webcodecs-polyfill. You do not need libavjs-webcodecs-polyfill to use libavjs-webcodecs-bridge or vice versa; they have related but orthogonal purposes. For type reasons, this repository depends on both, but even if you bundle libavjs-webcodecs-bridge, neither will be included.
libavjs-webcodecs-bridge's API is documented in API.md. The demo
in the demo
directory is a demonstration of start-to-finish transcoding, and
there are some samples in the samples
directory as well.