百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

activeframe

> 开发工具
开源

WebCodecs 自定义 .af 视频格式: 无需视频标签或第三方解码器即可实现帧精确的播放。

395 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

WebCodecs 自定义 .af 视频格式: 无需视频标签或第三方解码器即可实现帧精确的播放。

ActiveFrame ️ (beta)

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).


Why use this instead of “regular” video?

  • Frame-accurate control and random access
  • Feed the frame natively to WebGL/WebGPU and Canvas 2D
  • Hardware accelerated**
  • Optimized for interactive scrubbing, 3D, image-like control over which frame is shown
  • You can keep multiple videos "in sync"
  • Predictable loading times, buffering, etc

Why use this instead of “regular” spritesheet?

  • Smaller file size, leveraging H.264 / H.265 intra frame compression
  • Better memory management

Generating an .af file

bash
node af.js   [maxWidth] [h264|h265] [gop] [crf]

Roadmap / ideas

  • Surface codec support before loading (e.g. companion manifest or a tiny probe).
  • Streaming or partial fetch (range requests), LOD, adaptive quality.
  • Runtime tuning of hardware vs software decode based on performance.
  • Benchmark suite to calibrate and fine tune performance and hw support.

Demo video is from Netflix Open Content – Meridian. Under Creative Commons Attribution 4.0 International Public License.

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptdecodervideowebcodec

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具