MCPcopy Index your code
hub / github.com/Yahweasel/libavjs-webcodecs-bridge

github.com/Yahweasel/libavjs-webcodecs-bridge @v0.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.2 ↗ · + Follow
29 symbols 57 edges 12 files 1 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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.

Core symbols most depended-on inside this repo

push
called by 27
demo/demo.js
sampleDemux
called by 2
samples/worker-util.js
encodedChunkToPacket
called by 2
src/mux.ts
times
called by 2
src/demux.ts
laTimeToWCTime
called by 2
src/latowc.ts
decodeAudio
called by 1
samples/worker-util.js
decodeVideo
called by 1
samples/worker-util.js
times
called by 1
src/mux.ts

Shape

Function 25
Class 2
Method 2

Languages

TypeScript100%

Modules by API surface

src/mux.ts6 symbols
src/demux.ts5 symbols
demo/demo.js5 symbols
src/latowc.ts4 symbols
samples/worker-util.js4 symbols
samples/util.js3 symbols
src/wctola.ts2 symbols

For agents

$ claude mcp add libavjs-webcodecs-bridge \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page