Custom .af video format for WebCodecs: frame-accurate playback without a video tag or third-party decoders.
Custom .af video format for WebCodecs: frame-accurate playback without a video tag or third-party decoders.
Demo: https://activetheory.github.io/activeframe/
More Context
ActiveFrame is a small pipeline and javascript library for turning a video into a single binary .af file and decoding it in the browser with the Web Codec API — without a `` element and without third-party dependencies such as FFmpeg.wasm, Mediabunny, or other JS demuxers/decoders.
The file packs raw encoded samples (H.264 / H.265) plus a JSON manifest. The runtime loads the buffer, configures the decoder from the manifest, and exposes frame-accurate navigation via setFrame(index).
.af filenode af.js [maxWidth] [h264|h265] [gop] [crf]
Demo video is from Netflix Open Content – Meridian. Under Creative Commons Attribution 4.0 International Public License.
No open issues yet, or sync has not completed.