Pure-Go (CGO=0) audio/video toolkit — containers and bitstreams, with no libav/ffmpeg linkage and no external binaries.
🌐 Website · 📚 Documentation
Nine modules, in three layers. The detail of each (versions, measurements, caveats) is in the documentation.
avkit |
MP4, Matroska/WebM and MPEG-TS read and written, common audio formats read; copies, cuts and joins tracks with no re-encoding, cuts HLS/DASH segments (optionally encrypted); refuses hostile files within bounds. Details |
bitstream |
the bit reader, NAL framings and unescaping |
h264 |
H.264/AVC syntax and the clause 8.2 derivations; decoding about 2.5 times faster since v0.11.0, still slower than ffmpeg (open defect). Details |
h265 |
H.265/HEVC syntax and a conformance-verified decoder with a public Decoder API; about 0.2 to 0.3 of ffmpeg's speed on one core (open defect). History and measurements |
boolcoder |
the boolean arithmetic decoder VP8 and VP9 share |
vp8 |
the VP8 frame tag and key-frame header |
vp9 |
the VP9 uncompressed header and superframe index |
decode |
H.264 and HEVC to planar YUV, FLAC, MP3, Opus, AAC and linear PCM to PCM; anything else is refused by name. Slower than ffmpeg on video and on HE-AAC v2 (1.21 times its user time), open defects. What it claims, how it was measured |
worker |
a js/wasm Web Worker: poster returns a JPEG of a frame, probe returns container, codec, size and duration. Details |
bitstream, h264, boolcoder, vp8 and vp9 read syntax and derive what it implies; they produce
no pixels. h265 carries a decoder of its own, which decode uses. Only decode produces pictures or
sound. Why, and what is verified.
100% statement coverage per function, gated in CI, on Windows, macOS and Linux and six 64-bit architectures, and another implementation asked the same question wherever one exists.
