@mediabunny/prores
Browsers have no support for Apple ProRes in their WebCodecs implementations. This extension package provides a decoder for use with Mediabunny, allowing you to decode ProRes directly in the browser at unprecedented speed. It is implemented using Mediabunny's custom coder API and uses TurboRes, an extremely fast WASM-based ProRes decoder, under the hood.
GitHub pageInstallation
This library peer-depends on Mediabunny. Install both using npm:
npm install mediabunny @mediabunny/proresAlternatively, directly include them using a script tag:
<script src="mediabunny.js"></script>
<script src="mediabunny-prores.js"></script>This will expose the global objects Mediabunny and MediabunnyProres. Use mediabunny-prores.d.ts to provide types for these globals. You can download the built distribution files from the releases page.
Usage
import { registerProresDecoder } from '@mediabunny/prores';
registerProresDecoder();That's it - Mediabunny now uses the registered ProRes decoder automatically.