Skip to content
@go-avkit

go-avkit

Pure-Go (CGO=0) audio/video: containers and bitstream syntax readers, no libav/ffmpeg. None of these is a decoder.

go-avkit

go-avkit

Pure-Go (CGO=0) audio/video toolkit — containers and bitstreams, with no libav/ffmpeg linkage and no external binaries.

🌐 Website · 📚 Documentation

Docs License: BSD-3-Clause Go 1.27.1+ Coverage 100%


Nine modules, in three layers. The detail of each (versions, measurements, caveats) is in the documentation.

Containers

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

Bitstreams

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

Decoders

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

The bitstream modules are not decoders

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.

How it 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.

Popular repositories Loading

  1. h264 h264 Public

    Pure-Go (CGO=0) H.264/AVC bitstream reader and the derivations of clause 8.2: picture order counts, reference set, reference lists, prediction weights. Not a decoder: no entropy coding, no residual…

    Go 1

  2. avkit avkit Public

    Pure-Go (CGO=0) audio/video toolkit: sniff, demux and mux MP4/ISO-BMFF, Matroska/WebM and MPEG-TS onto one model; cut, join, concat, drop tracks; ConformHVC1. No re-encoding, no libav/ffmpeg.

    Go

  3. go-avkit.github.io go-avkit.github.io Public

    Pure-Go (CGO=0) audio/video toolkit. Reads time-based media starting with container demuxing, with no libav/ffmpeg linkage and no external binaries; container parsing is delegated to maintained ref…

    HTML

  4. .github .github Public

    Shared defaults for the go-avkit organisation

    JavaScript

  5. docs docs Public

    Documentation for go-avkit (MkDocs Material + mike)

  6. brand brand Public

    Brand assets — logos and icons

Repositories

Showing 10 of 16 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…