Skip to content
Projetos

OxideAV/oxideav-workspace

Ver no GitHub

Sobre

Pure-Rust media transcoding framework — codecs, containers, filters, and a JSON transcode job graph. No C dependencies.

Sistemas e infraestrutura

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+3
em 1 mês
+7

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

oxideav

Donate

A pure-Rust media transcoding and streaming framework. Every codec, container, and filter is implemented from the spec — no C libraries, no *-sys crates, no Rust wrappers around a userspace codec library.

The only place we use FFI is the optional hardware-acceleration crates (oxideav-videotoolbox / -audiotoolbox / -vaapi / -vdpau / -nvidia / -vulkan-video), which are thin bridges to the OS-provided HW engines — there's no other way to talk to GPU/ASIC encoder blocks. Those bridges load the system frameworks at runtime via dlsym (no compile-time link, no *-sys build dep, no header shipped); the framework still builds and runs without any of them present. Disable hardware entirely with --no-hwaccel or by not enabling the hwaccel feature.

Goals

  • Pure-Rust codec implementations. No C codec library is wrapped, linked, or depended on — directly or transitively. Every codec, container, and filter is implemented from the spec.
  • Clean abstractions for codecs, containers, timestamps, and streaming formats.
  • Composable pipelines: media input → demux → decode → transform → encode → mux → output, with pass-through mode for remuxing without re-encoding.
  • Modular workspace: per-format crates for complex modern codecs/containers, a shared crate for simple standard formats, and an oxideav-meta aggregator that wires them together behind Cargo features (preset bundles audio / video / image / subtitles / hwaccel / source-drivers / all; pure-rust = all minus hwaccel for zero-FFI builds; plus per-crate flags for fine slimming).
  • Hardware acceleration via the OS: oxideav-videotoolbox / -audiotoolbox / -vaapi / -vdpau / -nvidia / -vulkan-video open the host OS's HW engine through dlsym (runtime-loaded, no *-sys build dep). The OS's driver stack is the only path to GPU/ASIC codec blocks; we wrap the smallest possible surface (encode/decode session lifecycle + buffer in/out) and never re-implement OS APIs.

Image formats: one API

Every image-format crate (oxideav-png, oxideav-mjpeg, oxideav-heif, oxideav-avif, oxideav-webp, …) exposes the same small standalone surface — probe / info / decode / decode_rgb8 / decode_rgba8 / encode / encode_rgb8 / encode_rgba8, raw Vec<u8> in and out, usable with default-features = false and no oxideav-core — and the oxideav-image gateway opens any registered format through the framework. The contract, naming, feature layout and the checklist for a new image crate are in IMAGE_CRATE_API.md. Video and audio codec crates stay framework-only (registry + make_* factories); images are the deliberate exception.

Non-goals

  • Wrapping or linking userspace C codec libraries (ffmpeg, x264/x265, libvpx, libaom, libvorbis, libopus, libjxl, OpenJPEG, …).
  • Perfect feature parity with FFmpeg on day one. Codec and container coverage grows incrementally.
  • Re-implementing the GPU driver stack — for HW codecs we go through the OS, never around it.

Workspace policy: clean-room, no external code

This is the strict and universal rule every contributor and every automated agent must follow. It is not a list of named libraries — it is a categorical prohibition:

No external library source code may be consulted, quoted, paraphrased, or used as a cross-check oracle while implementing any codec, container, protocol, or filter in this workspace.

The rule applies to every external implementation, not a specific blocklist. That includes (but is in no way limited to): ffmpeg / libav*, x264, x265, libvpx, libaom, dav1d, SVT-AV1, libvorbis, libopus, libspeex, fdk-aac, LAME, libjxl, jxlatte, jxl-rs, FUIF, brunsli, OpenJPEG, OpenJPH, Kakadu, schroedinger, xeve / xevd, VTM, JM, mp4v2, every reference implementation distributed alongside a spec, and every third-party Rust crate that wraps or implements the same format (lewton, claxon, image's codec submodules, png, jpeg-decoder, anything else of similar shape).

"Cross-checking" counts. Reading an external implementation "just to verify a table value" or "just to see how they handle this edge case" still contaminates the code. If you couldn't have written it without that reference, the resulting code is no longer clean-room.

Allowed references:

  • Spec PDFs (ISO, ITU, ATSC, ETSI, RFC, IETF drafts, Annex documents)
  • Clean-room behavioural-trace docs commissioned for this project (these are explicitly source-quote-free; the strict-isolation cleanroom workspace pattern at docs/video/msmpeg4/, docs/video/magicyuv/, docs/audio/tta-cleanroom/ is the bar — Specifier role never reads the reference implementation source. Earlier behavioural-trace doc-only formats were retired 2026-05-06 under fruits-of-poisonous-tree)
  • Reverse-engineered docs derived from disassembly of binary codecs whose source is unavailable (see docs/video/msmpeg4/spec/01..13)
  • Public test corpora (raw fixture files: .jxl, .j2k, .opus, .flac etc.)

Allowed validators (black-box only): Decoder/encoder binaries — ffmpeg, cjxl / djxl, ojph_compress / ojph_expand, opusdec, etc. — may be invoked as opaque processes for output comparison. Feed input, compare output bytes. Their source stays off-limits.

What to do when stuck: If the spec PDF is ambiguous and no clean-room trace doc covers your case, the right move is to ask the docs collaborator to commission a behavioural-trace writeup, not to peek at the reference implementation. Park the work and document the gap.

This policy exists for legal and provenance reasons. Violations have to be expunged from history (force-push), not just reverted, because git blame would still tie the contaminated commit to the project.

Workspace layout

The workspace is a set of Cargo crates under crates/, grouped by role:

  • Infrastructure — oxideav-core (primitives: Packet / Frame / Rational / Timestamp / PixelFormat (incl. 16-bit planar YUV + deep Yuva 4:2:2/4:4:4 at 10/12/16-bit; VideoFrame palette + per-plane significant-bits side-channels for mixed-depth streams; r429: deep Yuva 4:2:0 + 8/16-bit planar GBR(A) formats + Ogg BOS-magic codec resolution; r449: 4:4:0 YUV ladder + scene-referred F32 family + plane-geometry/sizing helpers; r478: packed 16-bit RGB 555/565 + padded 32-bit RGBX labels, Muxer::set_metadata string-pair hook, CodecCapabilities::embedded_blob_kinds, <producer>-<chunk> blob naming rule — 82 formats) / ExecutionContext + DoS framework: DecoderLimits caps, arena::ArenaPool (Rc-based, single-threaded) + arena::sync::ArenaPool (Arc-based, Send + Sync) refcounted bump-allocator pools, refcounted Frame whose drop returns the buffer to the pool, Decoder::receive_arena_frame() trait method with default impl that wraps receive_frame() for true zero-copy per-decoder opt-in (h261, h263, vp6 ports done) — Decoder / Encoder / Demuxer / Muxer traits + their registries also live here, in oxideav_core::registry::*; numeric core is overflow-total (checked + rounding-mode Rational/rescale), LSB/MSB bit-I/O parity, property-tested + benched, 100% rustdoc under missing_docs), oxideav-pipeline (source → transforms → sink composition; r449 error-recovery contract — typed RunFailure attribution incl. partial stats + opt-in failed-output disposal down to partial-file deletion).
  • I/O — oxideav-source (generic SourceRegistry + 5 scheme drivers (file/mem/data/slice/concat) with a typed URI triad + open_bytes dispatch + sticky-error prefetch ring; openers register as bytes / packets / frames and SourceRegistry::open returns the matching SourceOutput::{Bytes, Packets, Frames} variant so the executor can branch per shape; conformance + differential + fuzz suites, benched), oxideav-http (HTTP/HTTPS bytes driver, opt-in via feature — RFC 9110 Range-seek with span accounting, If-Range-guarded transparent resume, forward-seek drain + GET range-probe for HEAD-hostile origins + driver-owned RFC 9110 §15.4 redirects with RFC 3986 resolution; lacks cookies/auth), oxideav-rtmp (rtmp:// packet driver — registers via oxideav_rtmp::register(&mut sources), default-on in oxideav-cli).
  • Effects + conversions — oxideav-audio-filter (Volume / NoiseGate / Echo / Resample / Spectrogram), oxideav-image-filter (stateless single-frame Blur / Edge / Resize), oxideav-pixfmt (pixel-format conversion matrix — 3224/3306 ordered pairs (912 direct) via direct rows + staged fallback + the computed planar-family tier (full 24-member Yuv/Yuva + 9-member GBR families), reference-model + black-box-validated matrices + palette generation + dither).
  • Containers — one crate each for oxideav-ogg / -mkv / -mp4 / -avi / -iff. Simple containers (WAV, raw PCM, slin) live inside oxideav-basic.
  • Codec crates — one crate per codec family; see the Codecs table below for the per-codec status. Tracker formats (oxideav-mod, oxideav-s3m) are decoder-only by design. Recent sibling crates: oxideav-evc (MPEG-5 EVC, ISO/IEC 23094-1), oxideav-jpegxs (JPEG XS, ISO/IEC 21122), oxideav-midi (Standard MIDI File + soft-synth + UMP/MIDI 2.0 packet container & protocol), oxideav-pbm (Netpbm: PBM/PGM/PPM/PNM/PAM), oxideav-nsf (NES Sound Format — 6502 emu + 2A03 APU); image-format bootstrap wave: oxideav-dds, oxideav-openexr, oxideav-farbfeld, oxideav-hdr (Radiance RGBE), oxideav-qoi, oxideav-tga, oxideav-icer (JPL Mars-rover), oxideav-wbmp, oxideav-pcx, oxideav-pict (Apple QuickDraw); oxideav-iff extended with ILBM; oxideav-embroidery (machine-embroidery stitch formats — Tajima DST + Brother PEC/PES + Melco EXP + Janome JEF family (JEF/JEF+/JPX/PTN)
    • Husqvarna HUS/VIP decode+encode over an in-house GL bitstream decoder, PHC/PHB decode, .edr/.inf companions; typed stitch-design model + registry/probe framework fit (13-extension map, dual API); r440 corpus-pinned encoder choices, 33/33 real GL streams exact; lacks a real PHX sample + VP3/XXX stitch docs — ART is a documented no-grant). AVIF decodes end-to-end via oxideav-av1 (pixel fidelity tracks the AV1 intra decoder).
  • Vector graphics + text — oxideav-svg (read+write SVG; rounds 1-3 ship full shape set + text/filters/masks/clipPath + use/symbol + svgz + animate/set@t=0), oxideav-pdf (multi-page writer + Scene metadata via /Info dict; reader: bytes → Scene with xref + FlateDecode + content-stream operator parser + the full §8.9 image model (any BPC / colour space / Decode, stencil + colour-key + SMask masking, inline-image splicing; gs-validated) + r418 navigation surface (outline/links/named-dests/page-labels/article-threads) + embedded-CMap Type0 text extraction + vertical writing; lacks predefined CJK CMap tables), oxideav-raster (vector→raster rendering kernel — scanline AA, bilinear/Lanczos2/Lanczos3 + Mitchell/Catmull-Rom/B-spline cubic image resampling, trapezoidal coverage, soft masks, patterns, filter primitives, ICC pipeline, bitmap cache keyed by Group::cache_key, SVG2 stroke-linejoin miter-clip/arcs §13.5.5; r449 byte-exact perf pass — 1.79× geo-mean over 32 benches, caption-heavy scene 32.5×; r491 exact-area coverage within 0.5/255 of polygon truth, premultiplied filter sampling, keyed-glyph cache bit-identical at every budget and contention-free (warm text on 4 workers 8.5 → 1.0 ms), 1080p stages 1.2–1.7×, conic gradients), oxideav-ttf (TrueType parser — cmap 0/4/6/12/14 incl. Variation Sequences, GSUB ligatures, GPOS kerning + per-script feature selection + coherent Font::shape() engine (all GSUB+GPOS lookup types, IGNORE_MARKS-aware, Arabic joining + mark attachment validated; r492 rebuilt on one skip-aware lookup engine: multi-glyph contextual rules read correctly, mark chains / ligature components / cursive attachment / variation of positions and advances / full pair records, glyph-run API with per-glyph feature masks, 5 396 / 5 414 glyphs agreeing with a black-box shaper) + v1.1 FeatureVariations, COLR + CPAL + sbix tables + r369 CFF/CFF2 PostScript+variable outlines (Type 2 charstrings, CID-keyed, blend per-instance) + MATH + JSTF, TTC subfont selection, AGL glyph-name→Unicode, full name-table accessor API + gvar IUP inferred-delta variable-glyph interpolation + set-axis-by-tag/named-instance API), oxideav-otf (CFF / Type 2 charstrings incl. CID-keyed ROS/FDArray/FDSelect + arithmetic/stack/storage/conditional ops + Top-DICT FontMatrix/PaintType/CharstringType/StrokeWidth, ISOAdobe/Expert/ExpertSubset predefined charsets, cubic outlines; r222 GDEF + Coverage + ClassDef common-layout primitives + GlyphClass enum + GPOS ValueRecord/ValueFormat + Lookup Type 1 single-adjustment + CFF2 §12 ItemVariationStore for variable fonts; r352 GPOS Lookup Types 1-9 + GSUB Types 1-7 incl. mark-to-ligature + contextual/chained via shared module; r369 CFF2 variation-aware outlines (blend/vsindex) + GSUB Type 8 reverse-chaining + Device/VariationIndex tables + cmap formats 2/13/14+UVS; r372 variable-font GPOS/GDEF/BASE VariationIndex resolution — Device/VariationIndex deltas applied to kerning/marks/cursive/carets/baselines + CFF2 blend; r375 §6.3.6.2.1 MATH variable-font MathValueRecord resolution + BASE BaseCoordFormat3 VariationIndex baseline coordinates; r380 full OFF variable-font table set (fvar/avar/STAT/MVAR/HVAR/VVAR/BASE + ItemVariationStore/DeltaSetIndexMap + Font::normalize_coords axis→region-scalar) + vertical metrics (vhea/vmtx/VORG) + legacy kern formats 0/2; r394 Font::shape TEXT-SHAPING pipeline — GSUB 1–8 + GPOS 1–9 + FeatureVariations + variable-instance deltas, black-box byte-validated; r407 COLR v0+v1 paint graph (all 32 paint formats, ColorLine/ClipList, varIndexBase resolution) + avar v2 cross-axis deltas + 243-tag feature registry + UAX #24 Script_Extensions, r413 full colour-font surface: CPAL v0/v1 + COLR paint-graph→concrete-RGBA, sbix, EBLC/EBDT/EBSC, CBLC/CBDT, SVG table — real-font black-box validated; r418 COLR v1 paint-graph decode (all 32 formats, variable, budget-capped validator) + avar v2 cross-axis normalisation; r435 UAX #24 itemized shaping over vendored UCD 17 (Font::shape_runs per-run script tags) + script/language/baseline tag registries + CPAL linear-light gradient interpolation + IVS LONG_WORDS + CJK em-box/ICF; r443 OFF common-formats completion — DeltaSetIndexMap format 1, LONG_WORDS delta rows, NULL IVD offsets, variable-COLR conformance fixture end-to-end + gvar repeated-point accumulation fix), oxideav-scribe (shaper with vector-first Shaper::shape_to_paths API — no rasterizer dep; trapezoidal horizontal AA, GPOS mark-to-mark, COLR/CBDT colour glyphs via raster bilinear/composer; bidi UAX #9 data-complete at Unicode 16.0 — Bidi_Class ranges + bracket pairs + mirror table; r445 full UAX #24 §5 itemisation — Script_Extensions sets + paired-bracket refinement + universal §5.2 cluster model + cluster-atomic font fallback; r491 script-aware staged engine (Arabic, Hebrew, 9 Indic, Thai, Hangul, CJK vertical, emoji) agreeing with a black-box shaper on 314/325 runs, layout_text with UAX #14 breaks / justification / tabs, Latin paragraph 133 → 17.5 µs, 100k-char document 175 → 6.6 ms; r497 shared glyph nodes + default 4 MiB outline cache + per-instance variation memo (652-glyph frame 136 → 54 µs, variable-font shaping 19.2 ms → 60 µs, Face build 104 → 1.2 µs), COLR v1 solid-fill graphs; r498 on the ttf 0.1.10 run engine (first frame after an instance change 3.0 → 0.15 ms); lacks COLR v1 gradients (docs), AAT morx, USE syllable grammars, Thai SARA AM — docs-gapped).
  • 3D scenes & assets — typed oxideav-mesh3d (Scene3D / Mesh / Material PBR / Skin / Animation / Camera / Light / AudioEmitter + area-weighted vertex-normal recompute + MikkTSpace-style tangent-space basis (Lengyel 2001) + full skeletal pipeline (joint matrices + linear-blend skinning + weight repair + pose sampling + animated/rest instantiation + skin-root LCA) + r448 morph model complete (typed target names, USD in-between stations, sampled-MorphWeights synthesis) + Mesh3DRegistry parallel to CodecRegistry + AssetSource lazy-bytes trait with raw_storage pass-through for archive-backed sources). Per-format codecs oxideav-stl / -obj / -gltf / -usdz register into the registry; oxideav-meta::populate_mesh3d_registry walks every enabled format. See the 3D scenes & assets table below for per-format status. oxideav convert in.obj out.gltf (or --probe in.gltf) is the CLI entry point. Cross-format integration tests live under crates/oxideav-tests/tests/mesh3d_*.rs.
  • Facade — oxideav is a thin re-exporter over oxideav-core + oxideav-pipeline + oxideav-source. Holds no codec deps; the high-level invoke API will live here.
  • Aggregator — oxideav-meta exposes register_all(&mut RuntimeContext) which explicitly invokes every enabled sibling's register(ctx) fn. Each sibling is a Cargo feature; default = ["all"] pulls everything. Preset bundles available: audio, video, image, subtitles, hwaccel, source-drivers, all, and pure-rust (= all minus hwaccel, for builds that avoid all FFI to OS HW-engine APIs). Slim builds via oxideav-meta = { default-features = false, features = ["image"] } (or any per-crate combo). register_all body is auto-generated by oxideav-meta's build.rs from its own Cargo.toml — adding a sibling means adding one line to Cargo.toml; the build script regenerates the call list (r475: the script parses the normalized manifest cargo ships, so register_all is populated for crates.io consumers too — an off-umbrella CI job proves it). Version policy: a sibling meta reaches only through the register! entry is required as version = "0" (any 0.x) — no API contract is consumed, and a narrower line would let a sibling's minor bump leave two copies in a consumer's graph; only dependencies meta calls a real function or type on (oxideav-core, oxideav-mesh3d + the 3D format crates, oxideav-render) keep a versioned requirement. (Earlier attempt at a linkme-based distributed-slice approach was dropped: linkme has open issues on wasm32 targets, and its DCE workaround required a manual ensure_linked() call from main anyway.)
  • Binaries — oxideav-cli (the oxideav CLI: list / probe / remux / transcode / run / validate / dry-run / convert) and oxideplay (reference SDL2 + TUI player). Windows-codec forensic debugging now lives in KarpelesLab/univdreams via ud vfw {probe,decode,encode} — see Windows codec sandbox below.

(oxideav-job and oxideav-tracevfw are retired — oxideav-job's functionality moved into oxideav-pipeline; oxideav-tracevfw's debugger CLI moved into ud-cli from univdreams, which also hosts the underlying x86/PE/Win32 sandbox. Both archived on GitHub.)

Use cargo run --release -p oxideav-cli -- list to enumerate the codec and container matrix actually compiled into the release binary.

Core concepts

  • Packet — a chunk of compressed (encoded) data belonging to one stream, with timestamps.
  • Frame — a chunk of uncompressed data (audio samples or a video picture).
  • Stream — one media track inside a container (audio, video, subtitle…).
  • TimeBase / Timestamp — rational time base per stream; timestamps are integers in that base.
  • Demuxer — reads a container, emits Packets per stream.
  • Decoder — turns Packets of a given codec into Frames.
  • Encoder — turns Frames into Packets.
  • Muxer — writes Packets into an output container.
  • Pipeline — connects these pieces. A pipeline can pass Packets straight from Demuxer to Muxer (remux, no quality loss) or route through Decoder → [Filter] → Encoder.
  • Scene — a time-based composition of objects (images, videos, text, shapes, audio cues) on a canvas, animated over a timeline via keyframed properties. One model covers three workloads that would otherwise be separate stacks: a single-frame document layout (e.g. a PDF page — text stays selectable, vectors stay crisp), a long-running live compositor driven by external operations (add/move/fade — the shape an RTMP overlay control plane needs), and an NLE timeline with tracks, transitions, and per-object effect chains. A Scene feeds the pipeline as a Source: the renderer rasterises a frame at a given timestamp, so scenes can be encoded, streamed, or re-exported like any other media stream. Lives in oxideav-scene — type model is in place; rendering backends live in oxideav-render (scanline rasteriser + Whitted raycast).

Using a codec directly (no containers, no pipeline)

Every codec crate in OxideAV is designed to be usable on its own. Pull only oxideav-core (types + the Decoder / Encoder traits + CodecRegistry) and the codec itself:

[dependencies]
oxideav-core = "0.1"
oxideav-g711 = "0.0"   # or any other codec crate
use oxideav_core::{CodecId, CodecParameters, Frame, Packet, RuntimeContext, TimeBase};

let mut ctx = RuntimeContext::new();
oxideav_g711::register(&mut ctx);

let mut params = CodecParameters::audio(CodecId::new("pcm_mulaw"));
params.sample_rate = Some(8_000);
params.channels = Some(1);

let ulaw_bytes: Vec<u8> = vec![0xFF; 160]; // 20 ms of µ-law silence
let mut dec = ctx.codecs.first_decoder(&params)?;
dec.send_packet(&Packet::new(0, TimeBase::new(1, 8_000), ulaw_bytes))?;
let Frame::Audio(a) = dec.receive_frame()? else { unreachable!() };
// `a.data[0]` is S16 PCM.
# Ok::<(), oxideav_core::Error>(())

Each codec crate's README has a concrete example tailored to its payload shape.

Current status

oxideav list (via the CLI) prints the live, build-time-accurate codec + container matrix with per-implementation capability flags — that's the source of truth at any point. The tables below are the human-readable summary, grouped + collapsible so the page stays scannable.

Legend: ✅ = working end-to-end at the scope described. 🚧 = scaffold or partial — the row spells out what is present and what is still pending. — = not implemented.

Containers (click to expand)

Container format detection is content-based: each container ships a probe that scores the first 256 KB against its magic bytes. The file extension is a tie-breaker hint, not the source of truth — a .mp4 that's actually a WAV opens correctly.

Container Demux Mux Seek Notes
WAV ✅ ✅ ✅ Full metadata-chunk family (BWF bext, LIST/INFO, iXML, smpl/inst, Acidizer acid, MCI cue/plst/adtl, ADM chna + BW64 axml/bxml/sxml XML carriers + DISP/id3/PAD + write-symmetric LIST INFO/smpl/inst) + r448 WAVE_FORMAT_EXTENSIBLE COMPLETE (SubFormat GUID↔tag routing incl. IEC 61937 identification, dwChannelMask→typed core layouts, container-size dispatch fix, wSamplesPerBlock union, auto-EXTENSIBLE mux with legacy opt-out; interop fixtures black-box byte-exact) + RF64/BW64 64-bit form (read + write; ds64/JUNK on-the-fly promotion) + hostile-input hardened (bounded chunk allocs, count-caps, i64-safe seeks) + fuzz
FLAC ✅ ✅ ✅ All metadata blocks (VORBIS_COMMENT / PICTURE / CUESHEET / SEEKTABLE) + §8 typed whole-chain parse/write; encoder five-window default apodization + compression-quality regression guards (−5% on 7.1/24-bit, bit-exact); decode verify-decoder MD5 (§8.2); muxer SEEKTABLE generation (§8.5, configurable density); decode spans 8–32 bit incl. the 33-bit decorrelated side channel (RFC 9639 §4.2/App. A.2)
Ogg ✅ ✅ ✅ Vorbis/Opus/Theora/Speex + chained streams + page-bisection seek + Skeleton 3.0/4.0 read AND write incl. keyframe-index fast-path seek + granulepos→playback-time mapping + §4 mixed grouping+chaining (unique-serial enforced) + nil-page + multi-page packet reassembly coverage + Skeleton-4.0 fishead time anchors (basetime/presentation start_time, chained segment-length index check) + Opus pre-skip granule semantics (RFC 7845 §4.3, seek-bisection axis) + FLAC-in-Ogg header-packet count + Vorbis-comment (RFC 9639 §10.1) + Speex/FLAC ID-header sample-rate/channels → 1/rate time-base (correct duration/seek) + Speex comment metadata + Theora mapping COMPLETE (ID-header-driven demux with per-packet pts/keyframe flags + Skeleton-free seek on plain .ogv; mux with KFGSHIFT split-granule packing, header-section drain + cross-stream time-ordered A/V interleave — 11/11 fixtures remux byte-identical, external-validator-clean, Theora+Vorbis/Opus merges) + 10-target structure-aware fuzz suite (phantom-Skeleton-serial fix + open()-header-budget DoS bound + mux page-order invariant); r430 registry-first codec ID (payload magics, shared-resolver chained links); r492 seek-free open and demux (pipes work), lazy duration, capped reassembly, exact seeks in 3 reads on a 1 h file (was ~60), 4 KiB / 1 s page policy, daily fuzz; demux 1.05 → 1.8 GiB/s, mux 3.0 → 5.6 M pkt/s; lacks per-packet pts inside a page
Matroska ✅ ✅ ✅ MKV/MKA/MKS/WebM, RFC 9559 + RFC 8794 element surface both ways, schema validator, damage-resilient open, cue-less seek, daily fuzz; r494 live matrix 129/129 foreign files + 884/884 copies clean in two black-box readers; r497 strict-player layout per RFC 9559 §10 (audio / subtitle Blocks always key, key frames start Clusters, video-only WebM Cues, negative Block offsets): 408 → 0 of 504 written files with a layout finding, all 504 read by two readers and a headless browser; 2 GiB file seek 3 ms → 6.7 µs, mux memory 312 → 63 MiB; r498 default placement is the layout established muxers write (arrival order, one waiting audio packet; cluster lists identical to a black-box muxer's on 37/37 files), strict key-frame-first placement opt-in; ~97 % demux / ~96 % mux; lacks chained-Segment seek, Cluster CRC-32, TTA / WavPack / Real / QuickTime mappings (docs)
WebM ✅ ✅ ✅ First-class: separate fourcc, codec whitelist (VP8/VP9/AV1/Vorbis/Opus); inherits Matroska Cues seek
MP4 ✅ ✅ ✅ mp4/ismv/fMP4 (DASH/HLS/CMAF), CENC all four schemes, HEIF item graph, full edit-list timeline, gapless audio, 6-target fuzz; r494 live matrix 827/827 foreign files + 460/460 written / remuxed files agree with black-box readers, cover art + chapters; r497 media timescale from the stream (sample rate → time-base denominator → frame-rate multiple) with a per-track override, drift-free sample durations: 986 → 1630 of 1630 timelines exact in every reader; sample tables read on demand (2 h Opus open 39.8 → 5.3 ms, 246 → 26 MiB; read-all 30–45 % slower); ~97 % demux / ~96 % mux; lacks lazy fragments, ProRes / DTS / Vorbis write, cbcs / cbc1 / cens + own CENC writer unverified outside
MOV (QuickTime) ✅ ✅ ✅ QTFF + ISO BMFF fragments / edit lists / cmov; full QuickTime Metadata atom both ways; every QTFF PCM variant a real codec id, audio params from the config records; r491 frame-counted sound read in ≤1024-frame packets with frame-exact seek through edit lists (14 PCM flavours bit-exact in a black-box reader), streaming muxer with 64-bit mdat and edit lists from timestamps, growing / truncated files open, stps / language / colour signal both ways; 1 h movie: mux 3.4 → 20 M pkt/s, seek 146 → 0.25 µs, 10-min PCM open 12.5 GB → 34 MB; lacks chan bitmap / label layouts (docs-asked)
AVI ✅ ✅ ✅ AVI 1.0 + OpenDML 2.0 (super/std indices, multi-RIFF, txts, vprp), 3-target fuzz; r494 live matrix 298 foreign files / 1104 remuxes clean (header-exact remux was 51 of 322; EXTENSIBLE audio, WMA open, keyless indexes, dwStart, piped files, cut-short tails fixed), 1.33 GiB walk 254 → 55 ms at 8.6 MB RSS; honest ~97 % demux / ~89 % mux from parameters alone; lacks a FourCC registry doc (raw-YUV FourCCs, 1/4-bit DIBs untyped), DV type 1, outside proof of packed-B MPEG-4
Blu-ray (BD-ROM) ✅ — — UDF 2.50 + BDMV + .m2ts + bluray://; playlists / chapters / multi-angle, EP_map seek, AACS hook, HDMV VM, PGS render; r485 full STN / STN_SS stream_entry 1–4, PiP + secondary streams, multi-clip SubPlayItems, 3D dependent-view demux (6/6 fixtures, 811 fields); lacks IG button-state machine, BD-J, PiP compositing
DVD-Video ✅ — — ISO 9660 + UDF 1.02 + IFO/VOB + dvd://; navigation VM (incl. PCI NSML_AGLI non-seamless angle jump) + SPU subpictures + RGBA compositor + time seek + VOB → MKV + DTS core frame-header decode + generic audio-substream header (FrmCnt/FirstAccUnit + access-unit offset) + PCI_GI vobu_isrc/c_eltm decode + PCI RECI raw-region capture + 16/20/24-bit LPCM width (bytes_per_sample ratio) + DSI nav-pack typed accessors (VOBU_SRI/SYNCI/SML_PBI) + IFO PGC program-map navigation + PGC_AST_CTL/PGC_SPST_CTL stream-control tables + PGC_SPST display-mode sub-stream resolver + typed StillTime + §6.2 MPEG-2 video elementary-stream header stack (Sequence / Sequence-Extension / Sequence-Display-Extension / GOP / Picture / Picture-Coding-Extension headers) + full navigation engine (domain-transition legality + angle-aware cell walk + PgcRunner pre/cell/post state machine + Type-1 Link resolution + menu D-pad/button bridge + disc-absolute TitlePlan) + playback runtime (stills + NavTimer + audio/SPU stream-select + karaoke routing + VOBU trick-play + backward-SRI index fix) + LPCM frame packing (16/20/24-bit) + synthetic-disc e2e suite; + full 5-band private_stream_1 map (incl. SDDS) + substream census + CGMS-A/APS copy-control decode + r436 second-pass ratification (vobu_cat/CPR_MAI raw-preserve pinned) + full PES header-extension decode + pack classifier + DVD-compliance auditor + 20/24-bit LPCM sample unpacking; lacks CSS auth + odd-channel 20-bit LPCM nibble order
MP3 ✅ — ✅ ID3v2/v1 + Xing/Info VBR + CBR/VBR seek; gapless info; decode via oxideav-mp3
IFF (EA IFF 85) ✅ ✅ — FORM/LIST/CAT family — 8SVX (voice structure, CHAN/PAN) + ILBM/ACBM/DEEP/RGB8/RGBN + ANIM + Apple AIFF/AIFF-C; r481 output-shape change reported per picture (CAT/LIST groups, DLOC-resizing DEEP/TVPP), LIST PROP scoping, AIFF codec id follows the sample width; fuzzed; lacks 16SV + ANIM op-J (docs-asked)
IVF ✅ — — VP8 elementary stream container
MPEG-TS ✅ ✅ ✅ ISO/IEC 13818-1 TS + MPEG-2 program stream — full PSI/SI (DVB + ATSC A/65), T-STD model, splice signalling, 4-target fuzz; r494 live matrix demux 64/64 + remux 120/120 vs black-box (5 of the first 71 files matched before: DTS on PTS-only PES, key-frame flags, pre-PAT packets, codec ids, E-AC-3 / DTS / subtitle / teletext / VVC mappings, LATM + DTS framing fixed), streams added by a later PMT, PS seek, PS demux 1.2 → 2.3 GiB/s; honest ~90 % demux / ~85 % mux; lacks MPEG-1 Systems (11172-1 not staged), Opus / 302M / AV1 / SCTE-35 / KLV carriage (docs)
AMV ✅ ✅ — Chinese MP4-player format — demuxer + muxer + seek + strict-mode validators + symmetric demux→pixels/demux→PCM conveniences + S16-mono audio stream params + §4b IMA/DVI-ADPCM audio decode (1116 blocks → 93.0 s; decode_audio_payload convenience + PCM ffprobe-validated) + §4a in-crate baseline-JPEG video decode to RGB (device-hardcoded quant/Huffman tables) + video rate control + device-profile muxer validation + fuzz harness
FLV ✅ ✅ — MP3/AAC/H.264 audio + VP6/H.264 video + Enhanced-RTMP extensions (incl. v2 audio-silence discard) + AMF0 metadata + multitrack + HDR colorInfo + fuzz; muxer covers tags / seek-table / cue-points / multitrack join + AMF0 Date (SCRIPTDATADATE) write + AMF3 value encoder + Enhanced-RTMP multichannel-config writer + onMetaData full AMF0 value matrix (nested Object/EcmaArray/StrictArray/Xml/Null) + Enhanced-RTMP-v2 per-track info maps + typed onCuePoint params + ModEx timestamp-offset-nano side-channel + multitrack join_tracks→demux round-trip + FLV-encryption muxer (Annex F.2
WebP ✅ ✅ — RIFF/WEBP (lossy + lossless + animation; ANIM + ANMF emit) + VP8L encoder density push (−13.3% aggregate); r481 lossless at 12 MP: default 10.5 → 2.4 s, max effort killed at 590 s / 7.5 GB → 5.9 s, bytes unchanged and identical for any thread budget; decode to 268 Mpx; r498 lossy encode effort 0–6 on vp8 0.2.10: default 800×533 q80 48 → 30 ms, 3–10 % smaller, 424/424 files exact in two outside decoders, threaded lossy decode
TIFF ✅ ✅ — TIFF 6.0 single-image + BigTIFF + PhotometricInterpretation=5/8 CMYK + CIE Lab* decode/encode + CCITT T.4 2-D + T.6 (Group 4) fax decode/encode + tiled-image layout + float Predictor=3 (IEEE 16/32/64-bit gray+RGB, strip/tile/planar) + tiled JPEG-in-TIFF (Compression=7) + 4:4:4 YCbCr planar+predictor + planar CMYK coverage
PNG / APNG ✅ ✅ — 8/16-bit all colour types, APNG, full PNG3 chunk set, colour management, bomb-bounded inflate; r480 9 external PRs merged, APNG frames rendered whole through the registry (ffmpeg framemd5 match), loop count both ways, Ya16Le encode; r490 every chunk through the registry as blobs, decode 42 → 140 MP/s, effort 1–9; lacks caller-chosen chunk order, an optimiser-grade DEFLATE search
GIF ✅ ✅ — 87a/89a + LZW + animation + NETSCAPE loop + disposal compositor + typed extension accessors + truecolor RGBA encode (median-cut + nearest-entry remap + Floyd–Steinberg dither + shared-palette animations) + interlaced-encode surface (§20.c.vii); r483 comment + loop count through set_metadata, demux→mux identity under fuzz; lacks a spec-grounded XMP/ICC/Exif layout
JPEG ✅ ✅ — Still-image wrapper around the MJPEG codec
BMP ✅ ✅ — Windows bitmap — DIB headers BITMAPINFOHEADER / V4 / V5, 1/4/8/16/24/32-bit + explicit-mask BI_BITFIELDS / BI_ALPHABITFIELDS V3 encoder (5 presets, 32-bpp lossless) + OS/2 file-magic recognise-reject (BA/CI/CP/IC/PT); also exposes the DIB helpers used by ICO / CUR sub-images
Netpbm ✅ ✅ — All seven PNM magics + PAM; 1/8/16-bit; ASCII + binary fast paths (up to ~50 GiB/s)
ICO / CUR ✅ ✅ — Windows icon + cursor — multi-resolution, BMP and PNG sub-images; body-dim (0,256] reject + CUR hotspot body-derived bound + dir wBitCount vs body biBitCount cross-check + ANI (RIFF/ACON) framework Demuxer (anih + seq/rate timeline → packet stream)
slin ✅ ✅ — Asterisk raw-PCM: .sln/.slin/.sln8..192
MOD / S3M / STM / IT ✅ — — Tracker modules (decode-only by design) — see Trackers table

Cross-container remux works for any pair whose codecs don't require rewriting (FLAC ↔ MKV, Ogg ↔ MKV, MP4 ↔ MOV, etc.).

Content protection

Layer Status Notes
AACS ✅ Common 0.953 + BD-Prerecorded 0.953 oxideav-aacs clean-room — full key-derivation chain (Device Key → VUK), Aligned-Unit decryption, SCSI MMC drive layer + Drive-Host AKE, MKB (incl. Type-4 verify-precursor/KCD Media-Key resolution)/Content-Certificate/CRL verification + GET CONFIGURATION / AACS Feature Descriptor host capability discovery + CPS Unit Usage File / CCI + AACS On-line Enhanced-Title key derivation + hostile-input hardening battery. Lacks AACS 2.0

Codecs

Each row below is a current-state summary. For round-by-round history, design notes, and per-feature trade-offs, see the per-crate README.md and CHANGELOG.md in crates/oxideav-<codec>/.

Audio (click to expand)
Codec Decode Encode
PCM (s8/16/24/32/f32/f64, LE/BE, unsigned) ✅ 100% ✅ 100%
slin (Asterisk raw PCM) ✅ 100% ✅ 100%
FLAC ✅ 100% — every depth 4–32 bits (non-byte depths were refused or unshifted before r493); 1589/1589 black-box-encoded streams sample-exact; frame-accurate seek by verified bisection ✅ ~97% — any depth 4–32, 1509/1509 pass the black-box verifier, levels 7–8 within ±0.1 % of reference size; lacks variable-block encode, 33-bit side channel; 5.1 encode 25–50 % slower than reference
Vorbis ✅ ~98% — sample-exact decode incl. floor-0 + hostile-codebook fence, ~390× realtime ✅ ~98% — psy VBR+ABR, black-box agreement on every stream; r491 squared-error residue weighting with masked-noise relief: struck notes / clicks / speech / mix now +1…+8 dB over the black-box reference encoder at equal rate (were −1…−7), plucked at parity, ABR within 0.1 % of target, encode 8.6× faster; lacks wideband-noise efficiency at 60–250 kbps, a rate-calibrated quality knob
Opus ✅ ~94% — SILK bit-exact vs the RFC listing incl. loss / DTX concealment, CELT/hybrid, all output rates, FEC, S16/S32/F32/F64 output; r497 1 538 foreign streams all decode, final range equal on every checked packet, 1 439 match the reference decoder's samples; lacks agreement on low-rate tonal MDCT frames (docs-asked), CELT-only concealment parity, the official test vectors (not staged) ✅ ~85% — unified encoder, speech/music election, every sample format in, key-frame flags + sample-exact timing; r497 level-true at every frame size (10 ms tones were 3.5–8 dB hot), exact hard CBR, VBR within 0.6 % of target, SILK encode 18.6 → 49× realtime, log-spectral distortion at 12 kb/s 12.0 → 5.6 dB; 1 832/1 832 streams accepted outside, 1 707 match; lacks perceptual tuning at 8 kb/s, pre-echo control at 12–24 kb/s CBR
MP1 / MP2 ✅ ~99% — Layer I + II decode (PCM-bit-exact) + CRC-16 + free-format probe + ISO 13818-3 LSF; r429 fuzzed — 5-target harness incl. encode→decode conformance oracle, 609M execs clean (ASan), daily scheduled ✅ ~95% — Layer I + II encoders end-to-end + Annex D Model-2 Table D.3a 32 kHz partition table (49 rows) + §C.1.5.2.5/Table C.4 perceptual SCFSI selection + complete Annex D Model-2 numeric table set (D.1a-c threshold-in-quiet + D.3a-c calc-partition + spreading operators + D.4a-c per-FFT-line absolute threshold + D.1d-f LTq, all rates); Model-2 allocator wired into BOTH Layer I + Layer II encoders + intensity-stereo (L+R)/2 combine + auto intensity-bound + per-frame VBR + full Annex D Model 1 (D.1 Steps 1–9: Hann FFT/SPL, tonal classification, decimation, LTg/LTmin, SMR; both example models selectable for Layer I+II) — encoder ~99%
MP2 ✅ ~97% — L2→PCM ≤1 LSB full mode×rate matrix + §2.5 MC + opt-in '10' surround stage; lacks the unparameterised dynamic expansion ✅ ~98% — both Annex D models at all six rates, every §2.5 election, extension streams, alias-cancellation guard (beats the black-box reference at equal rate)
MP3 ✅ ~98% — MPEG-1 / 2 LSF / 2.5 Layer III, free format, gapless; r493 live matrix 969/970 foreign streams sample-equal to two black-box decoders (5 decode bugs fixed), 375–460× realtime; lacks VBRI 🟢 ~80% — CBR / VBR, joint stereo, LSF / 2.5; r493 933/952 configurations accepted unanimously, tail-frame loss + rate-loop underspend fixed (tones 3.7 → 12.3 dB at 128 kbit/s), 43× realtime; behind the black-box encoder on speech / noise; lacks registry gapless, demand reservoir, working presets
AAC ✅ ~96% — LC/HE-v1/v2/LD/ELD/SSR/BSAC + SBR/PS, ADTS / LOAS / bare access units; r495 860 of 891 foreign streams (was 650), ER RVLC order, float output, LC decode 2.3–2.6× faster; lacks LD-SBR, MPEG-2 implicit channel mapping ✅ ~99% — LC + HE-AAC v1/v2 + 960-line, every sample format in (no 16-bit step); r495 799/799 streams accepted by two black-box decoders (was 533), encode 1.8–2.2× faster; lacks 22.2 height layouts (docs), verified PS phase coding
CELT ✅ ~98% — reference-lockstep + PLC, fuzzed (RFC 8251 §8 energy-cap fix), ~20× realtime decode ✅ ~98% — ahead of the RFC listing's encoder at every LM × rate × material point (mean +1.0–1.6 dB), custom modes 18/18, measured-cost election; lacks an encode-throughput bench
Speex ✅ ~95% — NB/WB/UWB + intensity stereo; float decode within ±1 LSB of the reference on every fixture + perceptual enhancer, staged fixed-point primitives exact; lacks full fixed-point decode (docs) ✅ ~95% — NB/WB/UWB CELP q0–10; r491 RFC 5574 packet padding (streams now decode in black-box decoders), VBR / ABR / VAD / DTX, explicit sub-modes, complexity 1–10, noise-weighted search at parity with the black-box encoder at 8 / 16 kHz, 15–41× realtime at q8 (was 5–14×); lacks 32 kHz whole-signal parity (−1.2 dB), interoperable user payloads (docs)
GSM 06.10 ✅ — FR bit-exact both directions + 06.11; r485 HR (06.20) decoder bit-exact on SEQ01–04 (3 629/3 629 frames); lacks HR BFI/CN (06.21/06.22) ✅ — FR bit-exact + DTX; HR encoder R0/LPC bit-exact (3 547 frames), MODE 98.9 %, lags 74 %; lacks 4.1.7 weighting-filter fixed point (docs ask), HR DTX
G.711 (μ/A-law) ✅ 100% ✅ 100%
G.722 ✅ ~97% — SB-ADPCM decoder BIT-EXACT vs the ITU conformance corpus (97,536/97,536 octets, all 3 modes) + QMF + auxiliary-data channel + clause-2/2.4 operational conformance (S/D gates, idle-channel limits, group delay ≤4 ms) + pcm16 API (clause-5.2 Note-2 rescaling) + fuzz + robustness totality ✅ ~95% — SB-ADPCM encoder BIT-EXACT vs the ITU corpus (48,768/48,768; 3 arithmetic bugs fixed: QQ4 row addressing, FILTEP timing, UPPOL1 stability window) + Mode 2/3 round-trip + conformance meters + r435 Appendix II T-series 11/11 BIT-EXACT (enc+dec, all modes) + r439 Appendix IV PLC rebuilt fixed-point on the staged tables + STL operators (erasure-free prefixes bit-exact, SNR ≈13–14 dB, exactness floors raised); r442 FITTED smaller-pitch preference (user-ruled calibration vs staged vectors, labeled fitted): pitch ground truths 17/18 + 7/8 held-out, SNR ≈14–15 dB; residual attributed to the unstaged IV.7 instruction sequences
G.723.1 ✅ 100% ✅ ~98% — both 5.3k + 6.3k, ITU-vector-verified wire (2816/2816 byte-identical repack) + near-bit-exact decode (PATHD53 corr 1.0000/+54 dB, OVERD53 0.9993; 3 vector-arbitrated interop corrections: LSP band 0 in the MSB byte, 1-subframe framer delay, unshifted Word16 output rail; 2 LPC→LSP bugs fixed) + §3.6 pitch postfilter; bit-exact OVER/TAME needs the clause-5 overflow protocol (trace ask filed)
G.728 ✅ 100% ✅ 100%
G.729 🟢 ~94% — fixed-point §4.1 + §4.2 cascade + Annex A postfilter; r486 LP sets and the whole postfilter exact on the staged traces (19/19 sub-frames), FIXED 57 → 96.7% byte-exact, SPEECH 41.5%; ~1100× realtime; lacks the §3.9.1 gain-decode schedule (docs) 🟡 ~79% — fixed-point clause-3 chain + Annex B DTX/SID; locked-VAD frame-exact 30.8%, ~300× realtime; lacks bit-exact wire (same gain schedule) + §B.3 VAD
IMA-ADPCM (AMV) ✅ 100% ✅ 100%
MS-ADPCM / IMA-ADPCM (WAV) ✅ 100% ✅ 100%
G.726 ✅ 100% ✅ 100% — ITU Appendix II conformance-proven (112/112 byte-exact), A/µ-law + SYNC, registry law option + r437 G.72x-in-WAV sub-block bit-cell framing (registry framing=wav both directions, stereo lanes, fmt-extension, VBR rate-switching pinned; the long-standing WAV blocker retired) + r442 staged VBR demo reference BIT-EXACT (52 736/52 736 linear-leg words, 3 295 mid-stream switches; 16-sample frame period settled empirically) + r445 IMA reference-compressor interchange mode (Appendix D §6.1/§6.2 ladder, double-entry oracle) + r449 WAV tags 0x0045/0x0064 claimed with container-derived framing defaults (10 WAV tags + ima4 total across the adpcm crate; encoders advertise wire tag + fmt extradata)
OKI / Dialogic VOX ✅ 100% ✅ 100% — mono + Dialogic stereo (encode_packet_multi) + r449 OKIADPCMWAVEFORMAT wPole fmt-extension + WAV tag 0x0017 claimed
8SVX ✅ 100% ✅ 100%
iLBC (RFC 3951) ✅ 100% ✅ 100%
AC-3 (Dolby Digital) ✅ ~97% — AC-3 + Annex E + JOC/OAMD objects; r497 objects render on a real object stream (1000/1000 frames; a reserved trim value used to reject the metadata), joc_layout stereo … 9.1.6 with power preserved within 0.01 dB, rendering 50 → 196× realtime; core decode 59–62 dB under a black-box decoder on that stream; 135 + 264-stream programme matrices, multi-programme E-AC-3, CRC concealment + resync; lacks OAMD trim / divergence / ISF, specified text for the phase-shifted downmix (docs), real low-rate broadcast fixtures ✅ ~98% — all Annex E tools, within 0.5–3 dB of the reference at 192–384 kbps; r486 encode 0.7 → 20–26× realtime, bit-identical; lacks low-rate coupling, high-rate transient coding, AHT RD tuning
AC-4 (Dolby) 🚧 ~95% of the specified tools, NOT verified against any outside stream (none staged) — channel / immersive / object decode incl. A-JOC + DE; r492 eight bitstream-syntax errors corrected from the specification text (earlier streams were self-consistent only), block-switched transforms, §5.6 delay alignment, splice detection; stereo 479× realtime; lacks a foreign stream + reference PCM (docs), SSF, block switching on 7.X / immersive 🚧 ~97% — framework Encoder, all layouts and frame rates; r492 transient block switching (pre-echo −40 → −53 dB), rate control with a one-frame reservoir (stereo 26 dB at 96 kbit/s), 7.X via the framework; 165× realtime; lacks block switching on 7.X / immersive, outside verification
MIDI (SMF) ✅ ~99% — SMF 0/1/2 → PCM + soundfonts (SF2 LFOs/modulators/global zones) + native MIDI 2.0 mixer (16/32-bit, per-note bend/controllers, RC/NRPN, MIDI-CI profiles), .midi2 native playback ✅ ~97% — SMF + .midi2 clip writers (fixed-point proven) + synthesis; lacks live-CC SF2 modulators + Standard Profile specs (unstaged)
NSF (NES) 🚧 ~98% — full 6502 + 2A03 APU + six expansion chips + VRC7/OPLL pipeline incl. envelope ladder + rhythm mode + NSF v1/v2/NSFe + NSFe mixe per-device default mix + §8a VRC7/OPLL AM tremolo (silicon-measured 14-level truncated triangle, ≈4.8 dB) + VIB bit-exact (§8b 8×8 PM table) + Namco 163 sum/divide multi-channel mixing + YM2413 rhythm noise generator (23-bit x²³+x⁹+1 LFSR) + §7 EG rate-increment model (eg_shift/eg_select) + §9 phase-gen 10.9 fixed-point (correct VRC7/OPLL pitch) + end-to-end frame-render gate + §7 global-counter EG model wired into live decay/release + §7 global-counter-driven OPLL attack envelope (silicon-measured 12-level sequence) + VRC7 user-patch live-reload fix + 2A03 APU per-sample accuracy (full-rate noise LFSR clock + frame-counter 29830/33254 schedule + post-DAC HP/HP/LP filter chain + pulse bass-note sweep-mute fix) + cycle-exact frame counter (half-cycle events, 3-cycle IRQ window, 5-step cadence fix) + $4015/$4017 contracts + DMC DMA CPU stalls + pre-INIT scrub + all six expansion chips batch-invariant (VRC6 $9003 shift + MMC5 APU-rate pulses + S5B/N163/FDS remainder-carry + MMC5 polarity) + NSFe VRC7 patch-sets + time/fade schedule + r394 dedicated-page sweep muting (unconditional shift-0 adder mute) + load/reload DMC DMA cadence + $4014 OAM-DMA halt (was a no-op); + full NSF/NSF2/NSFe container read+write (lossless v1↔NSFe, well-formedness, UTF-8 strings; fixed a real wrong-starting-track bug) + typed per-track metadata; + r434 NSF2 §2.6 reconciled (forbidden-four typed, NEND advisory, $7C bit-7 semantics locked) + registry glue tested + track durations surfaced + r448 sub-instruction DMA engine (halt-cycle-exact DMC/OAM incl. the documented stop bugs, $4017 reset-delay parity fix, true-write-cycle register deferral, KIL clock semantics); lacks §7a attack recurrence + VRC7 rhythm phases (both docs-gapped; rhythm.md staging asked) + per-access 6502 read timing — synthesis only
Shorten (.shn) ✅ ~95% — fuzzed (5 daily targets; 6 defects fixed incl. a hostile-reservation OOM); lacks the spec-blocked filetype codes ✅ ~90% — v2/v3 QLPC auto-select, property-tested round trips
TTA (True Audio) ✅ ~99% — TTA1 fmt 1/2 + password + trailers + streaming + random-access + §04 decorrelation pinned vs captured reference tape (31-row §7.1 + N>2 cascade + end-to-end pipeline) + §4.3 unseekable-mode (corrupt seek-table CRC → linear-only, random-access refused) + §4.4 empty-stream + fuzz; decode −18% then r386 −17…−25% more (u64 reader + slice-by-8 CRC), byte-identical ✅ ~97% — bit-exact self-roundtrip, wire-identical to the external encoder (black-box), decode +12% r456, 4 fuzz targets; lacks format=3 float (spec undefined — ruling asked)
Musepack ✅ ~98% — SV7+SV8 ±1 LSB vs oracles; seek-table thinning + ID3v2/APEv2 tag pass-through ✅ ~95% — from-PCM SV7+SV8 at 1-LSB reference parity; SMR quality ladder; dual-generation typed registry options
Cook (RealMedia) 🚧 ~70% — r450 §0.2 pre-spectral walk + §2.2 stage-2 refinement vendor-exact (categories 34/34 bit-exact on all traced live frames; synthetic frames → non-silent PCM; multi-frame streaming) — blocked on unstaged envelope/coupling VLC trees (asks filed); flavor/cookie parsers + every extracted DSP table behind typed range-guarded APIs + decode-session orchestrator + per-band quantiser primitives + backend frame-syntax codebook/vector-dim geometry + joint-stereo mirror-index rotation + MSB-first frame bit reader (spec/05) + §1 gain-control envelope (segment-count + √2 ladder) + §0–§3 frame-body decode orchestrator (gain application + §2.1 subband geometry) driven on a real RA Cook stream + §2.2 full per-band quantiser closed form (clip·round·divisor) + §3.1 dequant scale triple + spectral-coefficient assembly + §3.1 per-band symbol/coefficient grouping arithmetic + §3.1 per-band/spectrum reconstruction + §4.2 joint-stereo decouple + frame-body integration (FrameSpectrum mono/stereo) + §2.2 division-free quantiser-index decomposition + §4.1 coupling-control read + full §5 synthesis back end (O(N log N) IMLT → Princen-Bradley window → gain → overlap-add → 16-bit PCM; per-call cadence byte-exact vs validator) + §2.2 category-assignment/bit-allocation loop recovered + wired (validator-exact base pass 25/25 + uniform refinement; real-frame decode blocked on stack-resident v[]/budget/M + §1.2 gain VLC) + §3.2 spectral codebooks vendored (all 1301 symbols round-trip, 7 codebooks) + §3.1 VLC walk + §2.2 cost LUT + entropy→digit bridge + §3.1 band decode (codebook-by-category, magnitude+sign) + level→value expectation rows + recovered §4.3 coupling + N=1024 window synthesis + registry/make_decoder — ~86%; entropy→PCM audible; r433 §2.2 category-assignment constants vendored+bit-locked (last unwired staged table); real-stream PCM gated on the pre-spectral read layout (v[] formation + gain/quant VLC selection; ask filed) —
WMA ✅ ~97% — vendor v2 decode 1763/1763 boundaries; r485 9/9 sandbox LSP vectors reproduce vendor PCM 99.93 % bit-exact (±1 LSB), VLC stereo 137 dB; lacks v1 stream, transform-arithmetic trace 🟢 ~90% — vendor-wire encoder, 47 catalogue cells black-box accepted; r485 noise bands ±0.6 dB vs vendor; lacks validated v1 output
WavPack ✅ ~99% — lossless, hybrid + correction, float, DSD, up to 256 channels; r493 live matrix 1423/1431 black-box-encoded streams exact (7 decode bugs fixed), 404–708× realtime, fuzzed daily; lacks the 0x2C int32 extension (docs), pre-0x410 proof ✅ ~95% — lossless / hybrid / float, 1797/1797 verified by the black-box reader, ratio 52.2–52.9 % vs 51.8–54.7 %; 22–38× realtime; lacks DSD encode, MD5 / RIFF / tag writing
APE (Monkey's Audio) ✅ ~95% — 3.99 files, 1–32 ch, 8–32-bit, sample-exact seek, validated headers + output limits, 4 fuzz targets; r495 1090 of 1110 vendor files bit-exact (was 819), decode 1.8–2.2× faster; lacks verified pre-3.99, tags ✅ ~95% — 3.99, all levels, multichannel + 32-bit, vendor-verified 1095/1095; encode 1.6–2.2× faster; lacks 7-channel 16/24-bit, pre-3.99
DTS (Core) ✅ ~98% — Core complete; output level reference-calibrated 🟢 ~85% — Core encoder: QMF/LFE front end, ADPCM, HF-VQ, transients, Huffman, all rates/layouts, DRC/joint/aux opt-in, oracle-validated; lacks the unprinted SA129–SE129 books (docs ask)
aptX (classic + HD) 🚧 stub — NDA-blocked; clean-room QMF + 4-subband quantiser source-of-record purged in the 2026-05-06 audit (trace docs failed clean-room separation). Awaiting a non-contaminated docs/audio/aptx/ (public-primary-source tables or black-box observer trace) —
Video (click to expand)
Codec Decode Encode
MJPEG ✅ 100% — every SOFn family (Huffman + arithmetic, 8/12-bit, CMYK/YCCK, RTP, DNL), ICC/Exif/XMP on frames, opt-in djpeg-matching mode, coefficient records with exact transpose / mirror / rotate / crop; 1/2–1/8 scaled decode (also on the registry), RGB / BGR(A) written per row into a caller buffer (1600×1200 4:2:0 8.8 ms); stream core for bare-metal targets — no_std, no alloc, integer only, one pass over a pull source, 4:2:0 bands at 1/1–1/8 in a caller work buffer (12 MP progressive at 1/8 in 0.57 MB), Exif orientation reported; whole-picture decoder now reads partial-component sequential scans (foreign corpus 959 → 1015 of 1015); lacks arithmetic / 12-bit in the streaming core, a faster default chroma reconstruction ✅ 100% — general T.81 writer, 19 layouts, metadata both ways, arithmetic coding incl. lossless (SOF9–SOF11), marker-order option, 1600×1200 q85 19.6 ms (7.7 ms on 4 threads); lacks Extended XMP + IPTC (docs)
FFV1 ✅ ~98% — v0 / v1 / v3, range + Golomb-Rice; r492 three interop bugs fixed (record tail contexts, closed-mode record parse, v0/v1 Golomb boundary), 1 295 black-box streams bit-exact, slice-parallel 5.4–6.7× on 8 threads, opt-in damaged-slice concealment; lacks interoperable non-zero initial states (docs) ✅ ~97% — v1 default, v3 with slices / CRC / GOP as options, 389 streams bit-exact in a black-box decoder; Golomb encode 1.65–1.89× serial, 6–7× on 8 threads; lacks Golomb above 8 bits (docs), v3 as default
MPEG-1 video ✅ ~96% — I/P/B/D reference-conformant, arbitrary slices, streaming decode; r493 foreign streams within IEEE 1180 bounds (shared matrix 279/279); lacks 11172-2 scalability lower layers 🟢 ~92% — I/P/B/D, CBR with exact VBV, skipped macroblocks; r493 BD-rate −0.7 % vs black-box encoder, encode 16× faster; lacks open GOPs, wider motion search
MPEG-2 video ✅ ~97% — 12/12 conformance, data partitioning, scalable loops, streaming decode; r493 279/279 foreign streams within IEEE 1180 (no decoder failure), slice-band threads 1080p 123 → 233 fps at 4, concealment default; lacks outside proof of field pictures / dual-prime / 16×8, interlaced spatial weights ✅ ~95% — interlaced, pulldown, 4:2:2/4:4:4, scalable; r493 345/345 accepted by the black box, CBR fixed at low / high rates, BD-rate +0.4 % (was +5.8 %), 1080p encode 4.53 → 0.19 CPU s/frame, per-frame packets; lacks interlaced skips, open GOPs
MPEG-4 Part 2 ✅ ~98% — 24-stream corpus + GMC/DP/RVLC/interlaced + short header, spec default with opt-in ecosystem compat; r491 N-bit video 4–12 bits on 16-bit planes, complexity-estimation headers, NEWPRED, per-layer state, opt-in whole-VOP concealment; 1080p 129 fps on one thread, 163 on 4; lacks reduced-resolution VOPs, in-VOP resync, integer-IDCT compat (docs) 🟢 ~95% — I/P/B/S(GMC) + interlaced + short header, two-pass RC, N-bit; r491 rate-aware motion search: −25 % / −4 % bitrate at equal PSNR on grain / motion clips (−29 % / −8 % with B-VOPs), 720×576 78 → 96 fps; lacks trellis, rate-aware mode decision, a static-sprite oracle
Theora ✅ 100% — r492 decode 2.8–3.6× faster, bit-identical: 1080p 305 fps on one thread, 503 on 4 ✅ ~97% — RDOQ EOB search, MV candidates + iterated half-pel, lookahead scene-cut/VBV RC, elected intra matrices; r492 order-independent RD mode decision (−1.7 % BD-rate), 720p 7 → 14 fps serial, 50 on 8 threads with identical packets; lacks a reference-encoder comparison (no encoder binary available)
H.263 ✅ 100% (post-2026-05-18 orphan) — baseline + Annexes D/F/G/I/J/K/L/M/N/O/P/Q/R/S/T/V/W, registry + dual API; PB / Improved-PB + UMV + 4MV byte-exact on both reference-coder traces; r491 RRU with AP and slices, SAC under PLUSPTYPE, CIF 1005 fps; lacks Annex U, EP-picture RPRP oracle 🟢 ~95% — Annex M Improved PB + AP/UMV/AIC/K/CPM/RRU-DF + D/F/G PB-frames; r491 RRU + AP / K, SAC + Improved PB (3–4 % smaller), RPS, Modified Quantization + Alternative INTER VLC on INTER pictures, typed mode-combination rules naming the clause, CIF 6 → 104 fps; lacks Annex O / P / U encoders, rate-aware mode decision
H.261 ✅ ~99% — I+P + loop filter + BCH error correction + RTP/RTCP/SDP + Annex A + Annex C conformance + fuzz-hardened (6 targets; packetiser MV-desync panic fixed) ✅ ~98% — ME + rate control + §3.4 forced-update cyclic INTRA refresh + §4.2.3.1 MBA-stuffing emit/pad (§5.2 HRD buffer regulation) + BCH/RTP framing + §3.1/§4.2.1.2 temporal-reference + picture-rate (TR tracking, picture-rate-driven encode, §4.3.1 freeze clock); 45 dB at 64 kbit/s QCIF
MS-MPEG-4 (v1/v2/v3) 🚧 ~95% — v1/v2/v3 decode end-to-end, exact spec IDCT; r480 MC references span the MB-aligned coded area (170×98 within 2 of ffmpeg); lacks v1/v2 intra parity on ffmpeg streams, clamp-extent trace (docs) ✅ ~92% — v1/v2/v3 I+P decoder-verified
H.264 ✅ ~98% — all JVT streams byte-exact, u8/u16 planes, StreamParams on shape changes; 1080p 95 fps on one thread, 635 on 8, byte-identical at every thread count; lacks vectorised kernels, MBAFF/PAFF frame threading ✅ ~90% — PAFF + MBAFF, 8–14-bit CAVLC/CABAC + lossless, any picture size; r497 I/P/B + 8×8 transform in one decision core, rc=crf (SSIM-steered) + adaptive quantisation, wavefront threads (720p + 2 B 3.3 → 32.9 fps, 136 on 8, byte-identical); BD-rate vs a black-box encoder I+P+B +20.5 → +0.6 % (CABAC) / +49 → +9.4 % (CAVLC); 25 565/25 565 sizes + 672/672 option streams decode outside; lacks sub-8×8 partitions, full trellis, crf / AQ / B beyond 8-bit 4:2:0, odd 4:2:0 sizes
H.265 (HEVC) ✅ ~99% — conformance surface byte-exact (RExt + SCC 61/61, MV-HEVC), SHVC 161/162 pairs, auxiliary layers, opt-in output of uninitialised enhancement layers; r489 decode 1.4–1.7× faster, bit-identical: 1080p 116 fps on one thread, 433 on 8, 12 MP still 0.12 s; lacks 3D-HEVC, parse-and-reconstruct in one pass 🟢 ~96% — intra/inter RDOQ + RC, every lossy HEIC layout byte-exact, speed-first mode; r488 12 MP still 28 → 6.6 s on one worker, 1.1 s on 8 at 210 MiB (budget honoured without WPP), inter 4× faster, same bytes; lacks 16-bit, SCC tools, real-time inter
H.266 (VVC) ✅ 100% — 56/56 JVET streams byte-exact (subpictures, 4:2:2/4:4:4, IBC + SCIPU dual-tree chroma), registry streaming, fuzzed; r487 H.274 VUI + typed SEI (colour on the stream parameters), in-stream picture hash verified on 1777/1777 pictures, decode 3.3× faster (peak 491 → 283 MiB), 24 fuzz crashes closed by SPS/PPS/PH range checks; r490 decode 1.67× faster again (1080p 25 fps on one thread), a scaled reference is refused instead of misread; lacks reference resampling, multilayer (no streams staged), wavefront-parallel decode 🟢 ~85% — stills encoder on the registry: 8 layouts, quality → QP (100 = lossless), MIP, lossless BDPCM, CCLM, VUI + picture-hash SEI; r490 IDR + P video encoder (keyint / effort / scene_cut, −54…−74 % bitrate vs all-intra, byte-exact in a black-box decoder); lacks B pictures, rate control, lossy BDPCM
VP6 🚧 ~92% — r450 P-frame MB(0,31) inter MC+recon pixel-exact gate (§11.4 fractional-pel + inter residual on vendor coefficients; §10 mode grammar synthesis-confirmed, §11.1 MV wire fixture-under-determined — extraction asked); §16 IDCT BIT-EXACT (555-block arbitration; r390 rounding erratum corrected) + r447 §13 Table-18 MSB-first extra-bit erratum (fixture-arbitrated) + P-frame beachhead (arithmetic tokens vendor-wire-pinned through the 189-block prefix + first content MB; 31-MB pixel-exact prefix; §10/§11 P-frame wire extraction-asked) + keyframe parse-exact prefix 12→31 MBs via black-box bit-flip probing (chroma DC tree/+128-seed findings) + BoolCoder + DC/AC coefficient decode + MV decode/reconstruction + custom scan + per-block reconstruction + §11.4 FilterVarThresh resolve + §11.5 variance edge-clamp + header-driven FilterConfig + §2/§13/§17 block-to-plane raster frame assembly + §9 output-scaling typed surface + §10 macroblock coding-mode traversal + §10 frame-level MB mode-decode pass (availability-aware prob-row select) + §9 BoolCoder frame-header tail + §7.3 BoolEncoder (decoder-matched range encoder) + §10/§11 per-MB MV resolution (Zero/New/Nearest/Near) + §16 inverse DCT (i64-widened descale) + §17.1 per-MB intra decode loop (I-frame decodes END-TO-END to output pixels) + §17.2/.3 integer-MV inter recon + FourMV macroblock resolution + §17.4 sub-pixel MC predictor (§11.4 bilinear/bicubic) + §11.3 loop filter (BoundaryX/Y round-toward-zero fix) + fused inter (P-frame) per-MB decode driver → END-TO-END pixels + §4 golden-frame ReferenceFrames bookkeeping + top-level per-frame Vp6Decoder assembly driver (§9 header→keyframe/inter dispatch) + registry Decoder (codec id vp6, tags VP60/VP61/VP62/vp6f) + §8 Figure-1/Figure-5 coeff-prob-update sub-stream ordering (I+P, real NewNodeProbValue round-trip) + keyframe→P GOP end-to-end + r439 full-frame Huffman coefficient decode (Extractor-03 band selectors + corrected prob banks + §7.2.1 tie-break + carry-forward fill; §13.3.1 Prec-seed, §14 truncation and chroma-seed errata fixed): real vp6f keyframe PIXEL-EXACT end-to-end, 854×480 all 9 720 blocks, CI-gated 🚧 ~70% — P-frame encode (encode_inter_frame all-CODE_INTER_NO_MV + §10 mode_encode; keyframe→P GOP round-trip) + intra (I-frame) encode: §16-dual forward DCT + quantise + §13 token coding (DC/AC trees + §13.3.3.1 zero-run) + §9/§14 header emit → decoder-reconstructible keyframe (flat-exact; ~44 dB at q=48) + §11.1 MV component encoder (decode_mv inverse) + motion-estimated P-frame encode (two-stage box+¼-pel SAD ME → CODE_INTER_PLUS_MV/NEAREST/NEAR, decoder-reconstructible) + self-describing ME packets + Golden-frame + FourMV encode modes + bit-budget rate control + oxideav-core Encoder registration + §13 Huffman coefficient coder (decode+encode) + §6 MultiStream two-partition transport (every P shape, bit-identical to single-stream) + §13 P-frame prob re-training + cross-frame bank persistence + errata #155 FourMV representative + third-party vp6f fixture: 4 printed-spec errata fixed (MB-unit geometry, partition-1 spans, DC-tree fold, IDCT rounding) + leading-MB pixel-exact real-stream decode, CI-gated; + r439 multistream Huffman keyframe encode with carry-encoded retrained banks (round-tripped); + r442 §9 output scaling BOTH ways (typed placement modes, downsampled encode, letterbox/center gates; §14/Prec-seed errata spec-prose-corroborated); lacks P-frame wire conformance (behavioural trace ask filed)
VP8 ✅ 100% ✅ 100% — r492 token probabilities fitted inside one search: default key frame 2× faster and 9–12 % smaller at equal PSNR (800×533 q80 61 → 31 ms), sampled loop-filter pick, blocking waits throughout; lacks the new path on the registry / stream encoders
VP9 ✅ ~99% — 43-fixture corpus byte-exact, r495 448/448 foreign streams bit-exact, 12-format matrix, tile + loop-filter-row + frame threading; 1080p 164 fps on one thread, 829 on 8; lacks a row-parallel loop filter on single-tile frames, parallel single-tile entropy decode ✅ ~85% — 12 formats, r495 frame-period packet timing, gop key-frame interval, effort / threads / tile columns, ~10× faster and 38 % smaller (BD-rate) than before, 996/996 streams decode outside; ~1.4× a black-box encoder's bytes; lacks intra blocks in inter frames, alt-ref when streaming, rate control through the registry
AV1 ✅ ~99% — 155-stream corpus + 114/114 stills byte-exact, frame-parallel decode, 16-bit planes; r497 decoder / encoder / registry features (decoder-only build 60 % faster, no dependencies), deblock 1.7–2.1×, CDEF 1.4–1.7×, film grain 3×, 8-bit reference store: 1080p 59 → 74 fps on one worker at 110 → 89 MiB, 296-stream matrix 592/592 identical to a black-box decoder; lacks 8-bit working picture, faster tile walk 🟢 ~99% — GOP drivers corpus 164 byte-exact, any picture extent; r489 inter effort ladder (8×320×240 92 s → 0.56 s at the default, ~40 % under all-intra), registry gop mode; 12 MP still 7.7 s on one worker (2.25 s on 8); lacks a fast inter search (and an effort knob), 8-bit sample storage
Dirac / VC-2 ✅ ~99% — VC-2 LD+HQ + Dirac intra/inter + OBMC + 7 wavelets + 10/12-bit + fragmented pictures + asymmetric transforms + §15.8.10 reference-exact out-of-frame sub-pel edge extension + DEEP COLOUR to 16-bit (>12-bit on Yuv*P16Le, 11/12-bit native P12Le; corpus 12/12 bit-exact incl. 16-bit fragments) + DIRAC_TRACE MV/plane tracing per the docs trace contract ✅ ~99% — HQ+LD + sub-pel 2-ref bipred + rate control + inter sequence-level rate driver (PerPicture/Cbr/Vbv/VbvHysteresis residue-byte) + §11.3.3 spatial-partition codeblock grid (per-codeblock differential quantiser; bit-exact ≥4×4-sample; 1-ref + bipred; codeblock-aware rate control) + asymmetric transforms + §11.2.6 global-motion encode (P/B/sequence-driver + per-block gmode + pan auto-fit from ME grid; oracle bit-exact cross-decode + 120-case fuzz) + affine/perspective global-model estimation (−31% zoom; estimated-pan oracle bit-exact) + §14 fragment emitter (bit-exact reassembly) + pan_tilt_all zero-matrix fix + §15.8.5 per-component intra-DC fix + 1-ref/bipred inter chains cross-decode bit-exact (literal block params + explicit zero-residue route around two reference-decoder quirks) + 13–16-bit deep-colour intra AND INTER + rate control (u16 P/B incl. codeblock grid + global motion + all four residue-rate drivers; 10/10 roundtrips q0 bit-exact at 10/12/16-bit, 16-bit Cbr within ±2.4% of target; deep inter self-validated — the external validator corrupts >8-bit inter chains it accepts) + r436 closed-loop reference-P chains + I/P/B GOP driver (8–16-bit, 4-variant rate control) + legacy container tags co-claimed (V_DIRAC/drac, 0.95 long-GOP probe); lacks third-party deep-inter ground truth (docs-asked)
VC-2 (standalone oxideav-vc2) ✅ ST 2042-1 intra decode complete — §14 fragment reassembly (bit-identical to unfragmented) + full Annex D (D.1–D.8 incl. asymmetric) + registered Decoder (8–16-bit YUV incl. Table-10 presets 7/8 on Yuv*P16Le) + MIXED ≤12-bit custom depths via the core significant-bits side-channel (represent-don't-promote ruling; 12/10 fixture pinned) + FourCC BBCD tag claimed + r435 registry-grounded container tags (Matroska V_DIRAC + MP4 drac / OTI 0xA4; weak probe so Dirac wins contested streams) + Table-10 presets 1–8 grounded from the staged transcription + full §11.4 source-parameter retention + ST 2042-2 levels + §12.2 conformance walker + ST 2042-4 MXF mapping data + 8-fixture matrix + truncation/DoS-hardened ✅ — full ST 2042-1 encoder: LD+HQ, all 7 wavelets, asymmetric, fragments, rate control; 11/14 black-box bit-exact (rest = validator envelope)
AMV video ✅ ~92% — r451 both device profiles conformant (2nd fixture 2928/2928 + graded duration cross-check; §4b step-index settled u8@+2) + hostile chunk-size prealloc capped (fuzz find #3) + geometry×fps corpus matrix; typed frame-geometry binding + §4 demuxer 1:1 video:audio interleave cross-check + §4a device-stripped JPEG reconstruction (splices Annex K DQT/DHT + baseline SOF0 4:2:0 → conforming JFIF) + full baseline-JPEG frame decode to RGB (device-hardcoded video tables wired, #127) + r432 selectable triangle chroma upsampling (MAE 0.04/ch vs black-box reference, 30×) + 2 fuzz-found hostile-input crash fixes 🚧 ~85% — §4a RGB→00dc device-locked baseline-JPEG video encoder + §4b PCM→01wb IMA-ADPCM audio encoder + full decode→encode→AmvMuxer→demux→decode round-trip on comedian.amv (1116/1116 chunks, video MAE <3/ch, audio byte-idempotent) + intrinsic codecs registry-wired (amv_video + adpcm_amv as oxideav-core Decoder/Encoder; demuxer declares ids so the pipeline auto-resolves) + native planar YUV420P decode/encode path (skips the lossy RGB hop) + video rate control (measured bitrate targeting, >94% budget utilization) + device-envelope muxer validation + 9× encode speedup (precomputed cosine basis) + fuzz + r432 exact Lagrangian RD coefficient planning (worst sampled MAE 6.87→4.69/ch at identical rate) + λ warm start (255 µs steady-state binding encode); lacks second-device fixture + §4b non-zero initialStepIndex confirmation
ProRes ✅ 100% — r493 live matrix 1039/1039 foreign streams (4 encoders) within Annex A tolerance; decode 2–2.8× faster + slice threads ✅ 100% — 850/850 accepted (default colour codes now 2/2/2: the platform decoder refused 0/0/0), opt-in profile target rate; lacks ProRes RAW (no syntax staged)
EVC (MPEG-5) 🟢 ~90% — Baseline + Main tools, §8.3 RPL bookkeeping, errata #313; 23094-4 gate red on filed entropy asks 🟢 ~88% — intra/P/B + hierarchical B, BTT, IQT/ATS, ALF, EIPD, exact-bit RD + RDOQ, one-/two-pass RC; r483 CU QP delta + AQ (SSIM −0.8..−2.4 %, off by default) and ADCC trellis (+0.5 % vs RLE, off), decoder StreamParams on SPS change; lacks an external validator
HuffYUV / FFVHuff ✅ HFYU 100% — r493 live matrix 380/380 foreign streams bit-exact (was 52/378: field coding, YUY2 median, RGB first pixel, registry RGB orientation all corrected), truncated chunks are errors; FFVHuff extensions (planar, 9–16-bit, alpha planes) refused — no spec staged ✅ HFYU 100% — 536/536 accepted bit-exact by the black box, serial encode 1.2–1.9× faster + worker threads, custom tables 4–46 % smaller than the black box; earlier >288-line interlaced output was a private dialect
Lagarith ✅ 100% — vendor corpus 187/188 byte-exact (solid-plane 0xff rule, Rule B, lazy RLE zero-count, pow2 normaliser 189/189), 42/52 vendor-lossy reproduced, fuzzed; lacks W≥4 DIB pad bytes + odd-width YUY2 vendor validation ✅ ~95% — all 11 wire types, 45/179 vendor-identical (never larger than the vendor), NULL emission, PTS passthrough
Ut Video ✅ ~95% — 5 8-bit FourCCs × 4 predictors; r494 live matrix 6858/6858 verifiable foreign cells bit-exact (4:2:0 slice partition was wrong on 352 of 7469; code lengths above 32 bits were refused), decode 1.35–2.5× faster, slice threads 3.5× at 4; lacks interlaced, raw mode, 10-bit / fast families (no fixtures staged), outside proof of gradient decode ✅ ~97% — 9565/9565 accepted bit-exact and warning-free by the black box at +0.01 % size, encode 1.9–6.2× faster, registry slice / predictor options
MagicYUV ✅ 100% — r493 live matrix 14 112/14 112 foreign frames bit-exact (multi-slice + odd subsampled sizes were refused before); 2160p 596 MiB/s serial, 3768 on 8 threads; lacks vendor-encoder proof, foreign >8-bit ✅ 100% — 17 928/17 928 accepted (zero-length symbols fixed: every earlier frame was refused outside), 92–96 % of black-box size
Cinepak (CVID) ✅ ~98% — full CVID intra/inter + Sega FILM demuxer + Saturn/3DO deviants + typed walkers + fuzz + 42-rule spec-cited wire-format conformance linter (frame→strip→chunk→vector, vintage/seek profiles; own encoder held to zero findings); decode 4.4 GiB/s ✅ ~98% — rolling codebooks + RDO/LBG + rate control + skip-free-aware 0x3000/0x3200 inter vector dispatch + encode-roundtrip fuzz; 34.2 dB PSNR; r430 profile round: encoder hot paths −23…−31% (output-invariant, 15-scenario golden-pinned)
SVQ1/SVQ3 (Sorenson) 🚧 ~97% — SVQ1 complete + 9-target fuzz; SVQ3 I/P decode byte-exact 10/10 fixture AUs incl. the vendor post-reconstruction edge filter (spec/09) + extended-mode read; lacks B slices / extended-mode MB layer (docs-unspecified) ✅ SVQ1 encoder (unchanged)
Indeo 3 (IV31/IV32) ✅ ~95% — both IV32 fixtures 16/16 frames pixel-exact (intra + inter with MC, cell-geometry banks, families A/E), fuzzed; lacks families C/D + a >320-wide fixture —
Indeo 2/4/5 🟢 ~85% — IV50 intra, inter and NULL frames, one- and four-band luma, transparency, half-size chroma; planes equal to the vendor driver's on 56 movies (~10 900 frames), fuzzed; r490 decode 1.6–1.9× faster, stream params through the registry; lacks multi-tile, locked streams, seven-band luma (docs) + IV20/IV41 specs —
Image (click to expand)
Codec Decode Encode
PNG / APNG ✅ 100% ✅ 100%
GIF ✅ 100% ✅ 100% — r492 perceptual k-means quantiser + blue-noise default dither, inter-frame delta animations (screen recording 35× smaller), adaptive LZW clear, lossless optimize; photo 2.7× smaller and 2.7× faster; lacks cross-frame palette reuse on the registry path
WebP (VP8 + VP8L) ✅ 100% ✅ 100%
JPEG (still) ✅ ~99% — via oxideav-mjpeg; contract API (probe/info/decode, exact T.871 colour, YuvJ* native, limits); r477 ICC (APP2 chunks reassembled) / Exif / XMP as core blobs on stream + frame, Metadata ≡ blobs; lacks Extended XMP, IPTC ✅ ~99% — via oxideav-mjpeg; registry ≡ contract bytes; 19 declared layouts (heic → jpg works); r477 writes ICC/Exif/XMP from params.blobs (frame over stream) in spec order with typed size limits; lacks arithmetic / hierarchical via options, Extended XMP
TIFF (6.0) ✅ ~98% — r493 live matrix 5156/5522 foreign files confirmed (float predictor, Lab, PackBits, 1–64-bit integers, signed, extra samples, FillOrder 2 fixed / added), typed Exif / GPS / GeoTIFF, LZW decode 108 MP/s, fuzzed daily; lacks LZMA (docs), DNG raw; contract API, every page (r477: one frame per page through the registry, each page's ICC/Exif/XMP/IPTC on its frame record, the first page's on the stream; IPTC tag 33723 new on every surface), native Pal8 / Rgba / Cmyk / Gray / Rgb48 / float, JPEG- and WebP-in-TIFF, §20 colorimetry; lacks Exif/GPS tag semantics (docs ask), a timed-sequence shape for multi-page files ✅ ~97% — r493 14 110 written files, none failing in outside readers; LZW encode 49 MP/s, opt-in strip / tile threads; contract encode*; r477 registry encoder declares 9 layouts with typed refusals, quality governs JPEG only (1–99 DCT, 100 = lossless SOF3; it used to switch every save to JPEG), blobs written from both levels, multi-stream muxer writes mixed-geometry pages in order; registry_encode fuzz; lacks GeoTIFF/DNG semantics (#408), WhitePoint/PrimaryChromaticities writing
BMP ✅ ~98% — contract API, native Pal8/555/565/Bgr24/Bgra, every header generation, RLE4/8, ICC, 8-target fuzz; lacks V4 gamma curve mapping (docs) ✅ ~98% — all 10 layouts, RLE auto, bitfields / V4 / V5 ICC; r480 9 external PRs: zero-copy encode_into/encode_to, byte-identity pin; lacks sips interop on V4/V5
Netpbm (PBM/PGM/PPM/PNM/PAM) ✅ ~98% — image-crate contract API (probe/info/decode/decode_all, RGB8/RGBA8 raw); all 9 magics at 1/8/16-bit, 6 PAM TUPLTYPEs, PFM native float (GrayF32Le/RgbF32Le), fast paths ~45–50 GiB/s; strict rejects over-MAXVAL samples ✅ ~98% — contract encode* with flavour/maxval/tupltype EncodeOptions; encode_rgb8 → P6 and encode_rgba8 → P7 pinned (the r463 1-bit PPM bug cannot recur)
ICO / CUR / ANI ✅ ~98% — image-crate contract API (probe/info/decode/decode_all, RGB8/RGBA8 raw); every entry decodes standalone (DIB via bmp, PNG via png), composed Rgba output, best-entry selection, CUR hotspots, ANI model + demuxer; fuzzed ✅ ~98% — contract encode/encode_all (PNG-above-256 rule, mixed depths), 1/4/8/24/32-bpp DIB + PNG write, AND masks, ANI write; lossless round-trip pinned
JPEG 2000 ✅ ~97% — contract API, 40 layouts, Part 1 + HTJ2K, registry .j2k/.jp2, threaded tiles / Tier-1 / DWT, Exif / XMP / XML / UUID-info boxes; r497 live matrix 1789/1795 foreign streams (packet headers ending on 0xFF, multi-layer bypass / terminate-all, truncated tiles fixed), HT block decoder on packed words: 12 MP lossless 550 → 193 ms on one thread; lacks a faster Part 1 block coder, strip-wise memory, restricted-ICC validation (docs) ✅ ~95% — JP2/J2K, 5/3 + 9/7, PCRD layers, HT streams, PLM, identical bytes at any thread budget, Exif / XMP uuid boxes + resolution; r497 323-stream matrix read by outside decoders, HT encode 12 MP 765 → 256 ms, byte-identical; lacks outside validation of several HT sets per block (docs), Part 2
JPEG XL ✅ ~99% — contract API, core optional; Modular + VarDCT, 1–16-bit, animation, byte-exact JPEG reconstruction; r488 seven VarDCT conformance fixes (tall-block LLF, DCT8×4, AFV, EPF, LF smoothing) put staged photos at the rounding floor vs a black-box decode; parallel VarDCT decode 12 MP 1.21 → 0.29 s on 8 workers; r490 float sample output, VarDCT / XYB at the declared depth, patches on Modular-XYB frames, 2 fuzz findings; lacks delta palettes (docs) 🟢 ~82% — learned-tree lossless at a black-box encoder's effort 7–9 on photos; r488 VarDCT with all 21 transforms, RD quantisation, edge-aware quant field, fitted chroma-from-luma, gaborish: +0.3–0.9 dB over a black-box encoder at matched size on photos; r490 lossy at 1–16 bits with alpha, patches + LZ77 (screen text −80 % lossless, −90 % lossy), 12 MP lossless encode in 243 MiB; lacks Squeeze, delta palettes, progressive
JPEG XS ✅ 100% — 65/65 21122-4 codestreams sample-exact, 9 ETS profiles, Nc 1..=8; r480 jpvi interlace frame-level semantics + reserved-code tolerance; lacks B>16, 4:2:0 schar (21122-3:2024 not staged) ✅ ~98% (B≤16) — profiles/levels/CBR, RCT/Star-Tetrix, NLT, WGT; r490 5/3 joint-level order corrected to Annex E (older streams with vertical decomposition need re-encoding), long packet headers, encode 6× / decode 3× faster; lacks a black-box decoder cross-check, threads
AVIF ✅ ~99% — image-crate contract API; 8/10/12-bit all layouts, alpha, grid/overlay/iden/tmap, avis, identity-matrix RGB; r488 every burst member through the registry decoder, draft alpha information read, 12 MP decode + RGBA 0.17 → 0.10 s on 8 workers; fuzzed; lacks sato pixels ✅ ~99% — stills/grid/overlay/layered/alpha/depth, true lossless RGB(A), gain maps; r488 any picture size on every path (odd 4:2:0, inter-coded sequences, layered), tiles cut from the caller's buffer (12 MP q60 96 → 60 MiB, 1.13 s on 8 workers), 206-cell size matrix exact; lacks usable inter sequences (av1 search speed — use all_intra)
HEIF / HEIC (ISO/IEC 23008-12 + MIAF) ✅ ~99% — r497 live matrix 808/808 generated foreign files + 95/95 staged + 418/418 system pictures (was 462/470, 22/95, 337/418): mini type inference, properties after a transform, unsignalled colour from the bitstream by default (r498; MIAF reading opt-in), thumbnail / alternate tracks; band-by-band decode (48 MP 269 → 32 MiB); 21 000 truncations / hostile sizes clean; contract API, gain maps, tili, sato, packed cfen, L-HEVC, pred, CENC items, hvt1 tiles; lacks outside rendering of tmap / tili / VVC items, overlay expected renders + prfr definition (docs), cfen CMYK ✅ 100% — r497 506/506 written files accepted by every outside reader and the system (was 296/296), alpha sequence covers, colour-stable re-mux; HEVC/AV1/VVC/AVC stills + sequences, MIAF brands earned, re-mux incl. protected items; lacks outside check of depth auxiliaries
DDS ✅ ~99% — image-crate contract API; every D3DFMT/DXGI layout decodes natively (BC1–7, BC6H, ASTC blocks, float, SNORM, packed) to core layouts, mips/cubemaps/arrays/volumes via decode_all; UINT/SINT/depth/YUV stay depth-API; fixed volume mip cap + forged-width stride overflow ✅ ~99% — contract encode/encode_all (natural or explicit stored layout incl. BC1–7/BC6H/ASTC encoders, generated mip chains, cubemap/array/volume from Frame extras)
OpenEXR ✅ 100% — contract API, scanline/tiled/deep/multi-part, all codecs, Y/RY/BY; r487 multi-part layout rules with typed violations (37/37 staged files), deep-tile sample order fixed, chunk-parallel decode: NONE 267 Mpx/s serial (784 on 8), PIZ 55 (265); lacks a deep-data spec (docs) ✅ ~99% — contract encode/encode_all, 10 schemes, tiled mip/rip, luma-chroma writer; r487 strict multi-part writer (long-name flag, off-origin tiles), byte-level split / combine, 3 black-box readers accept every file, chunk-parallel encode (PIZ 40 → 169 Mpx/s on 8); lacks FLOAT luma-chroma, deep beyond NONE/RLE/ZIPS
Farbfeld ✅ 100% ✅ 100%
HDR (Radiance RGBE) ✅ ~99% — image-crate contract API (native RgbF32Le, to_rgb8 clamp, strict mode); new/old RLE, 8 orientations, header metadata, derived colorimetry, scene-referred luminance recovery, bit-exact RGBE-quad surface, XYZE photometric fix; fuzz + Criterion ✅ ~99% — contract encode* (rle/line_ending/exposure/primaries/gamma fields, encode_rgb8 linear-by-default with with_input_gamma); lossless round-trip pinned
QOI ✅ 100% ✅ 100%
TGA ✅ 100% ✅ 100%
ICER (JPL) ✅ ~98% — image-crate contract API (Gray8 / Gray16Le 9–16-bit / Yuv444P / Gbrp8 native, ICER-3D bands via decode_all, limits → LimitExceeded); §V.C auto segment election; interop container tail blocked on rulings; registry container: cube = one packet, one frame per band; mux == encode_all; memory bounded: planned working set under max_bytes, 5 B/sample decode state, hostile 64 MP header 690→69 MB ✅ ~95% — contract encode/encode_all (lossless RGB via Gbrp8, 3-D cubes); §V.C closed, digest-pinned wire; mid-packet truncation blocked on the unstaged [13] tables
WBMP ✅ 100% ✅ 100%
PCX (ZSoft) ✅ 100% ✅ 100%
ILBM (Amiga IFF) ✅ ~99% — contract API, core optional; ILBM/PBM/ACBM/DEEP/RGB8/RGBN, ANIM via decode_all, CAT/LIST children, palette-alpha + iff-* blobs; r481 dual-playfield composite (PFBA priority, ILBM/ACBM/ANIM), output shape per picture, ANIM delta CMAP; fuzzed; lacks ANIM op-74, AGA 7/8-plane dual playfield (docs-asked) ✅ ~96% — contract encode/encode_all, all 8 ANIM ops, 6 registry layouts, alpha → transparent colour or mask plane; r481 dual-playfield split written; lacks HAM ANIM encode
PICT (Apple QuickDraw) ✅ ~99% — image-crate contract API (Rgba native, info from the picture frame, strict mode, 256 MiB raster cap); v1 + v2 vector / raster / text / regions, $8200 QuickTime images (jpeg via mjpeg, raw , cvid), Palette Manager rule, ImageMagick-emitted PICTs byte-identical; registry container with structural probe (467-fixture no-false-positive sweep); lacks rle /rpza/smc , raw ≤8-bit CLUT (docs gap) ✅ ~97% — contract encode* (version / pack / frame / resolution / clip fields; Packed24 rowBytes overflow fixed), v1 / v2 rasters, patterns, QuickTime wrappers, PictBuilder for vectors
SVG ✅ ~96% — contract API, core optional; SVG 1.1 + 2 shapes / paint servers / SMIL / CSS3; r491 SVG 2 §11.5 text layout (gradient + pattern fill and stroke on text, bidi, vertical, textPath, inline-size wrapping, text-overflow), root-element cascade / currentColor / unit / nested-viewport clip fixes, 8.7 MB map parse 411 → 51 ms; lacks filters applied to elements (16 primitives evaluate standalone; no scene filter node), markers, non-scaling-stroke ✅ ~99% — write / write_svgz of the document model; encode* Unsupported by design
PDF ✅ ~99.5% — §9.4.3/§9.4.4 text-matrix glyph advancement + bytes → Scene via xref/ObjStm + encryption R=2..6 + signatures + text extraction + Tagged-PDF + §14.6 marked-content + 5 stream filters + annotations + §7.10 multi-input Type 0 (Order-1 + Order-3 cubic-spline)/Type 4 + Type 2/3 functions + Type 3 /FontMatrix glyph-advance scaling + §8.10 Form XObject Do-operator painting + §7.7.3.3/§7.7.3.4 page-tree MediaBox/Resources/Rotate inheritance + §8.6.6.5 DeviceN + Separation tint transforms + §8.7.4.5 all 7 shading types evaluated to geometry/colour (Gouraud/Coons/tensor meshes + axial/radial/function gradients) + CIE colour spaces (CalGray/CalRGB/Lab→XYZ→sRGB) + §8.7.3.3 shading-pattern fills + §8.7.3 tiling-pattern fills (coloured PaintType-1 + uncoloured PaintType-2) + §8.7.4.5 clipped axial/radial sh paint-into-Scene + §8.9.7 content-stream inline images (BI/ID/EI placed with CTM) + §9.6.5 Type 3 font glyphs painted as vector geometry (CharProcs under Tm∘FontMatrix + d0/d1 colour rule) + §12.5.5 annotation appearance streams (reader paint with AS/flags/OC gating + writer generation incl. AcroForm buttons) + gradient write→read round-trip + §11.6 transparency both directions (soft masks reader→IR→writer, groups-as-units, backdrops; q/Q full-state fix) + image scene splice with alpha; r481 text from CFF / TrueType built-in encodings, CIDFont glyphs and 94 predefined CJK CMaps — pdftotext harness 148 → 158/163 ≥95 %; r490 reading order (structure tree on tagged files, geometric columns / row-wise tables otherwise), hyphen / ligature clean-up, nested-form hang bounded, extraction 1.4–1.8× faster — re-selected harness 112/161 ≥95 %; lacks math-font glyph names (docs), formula ordering ✅ ~99% — multi-page writer + encryption + signatures + AcroForm + annotation/embedded-file/timestamp writers
3D scenes & assets (click to expand)

The typed Scene3D / Mesh / Material PBR / Skin / Animation / Camera / Light / AudioEmitter model lives in oxideav-mesh3d, with Mesh3DDecoder / Mesh3DEncoder traits and a Mesh3DRegistry that's parallel to oxideav-core::CodecRegistry. Per-format crates register into it. oxideav-meta::populate_mesh3d_registry(&mut Mesh3DRegistry) walks every enabled format's register(). Morph-weight precedence (animation > node > mesh, per-instance node.weights) resolves in the hub (r441); typed KHR_texture_transform + sampler surfaces with UV-coverage validation (r444). Lazy bytes flow through AssetSource (with a raw_storage pass-through hook for archive-backed sources, e.g. ZIP-stored USDZ textures + audio).

Format Decode Encode
STL (ASCII + binary) ✅ ~99% — both forms + colour attrs + topology + 9-step repair pipeline + validation/lint surface (edge-length/centroid geometry stats + full mass-property triad volume/centroid/inertia-tensor + duplicate-facet culling + non-manifold-edge examples + ASCII solid/endsolid-name lint + Materialise-header inspector) ✅ ~99% — both formats + attribute pass-through
OBJ (+ MTL) ✅ ~99% — full Wavefront grammar + MTL (Phong + PBR) + free-form curves/surfaces with trim-loop re-meshing + ctech/stech cparm resolution-aware tessellation + typed directive accessors + superseded cdc/bzp free-form tessellation + typed obj:superseded accessor + smoothing-group vertex-normal synthesis + tessellation-budget clamp + differential-fuzz fixed-point-proven (4 round-trip/DoS fixes) + fuzz ✅ ~99% — symmetric + negative-index encoder + byte-faithful 1D/3D vt re-emission + header-comment preservation + vt-dedup index fidelity + state-setting g groups (2000-seed property-fuzz-verified)
glTF 2.0 (+ .glb) ✅ ~98% — JSON + .glb + full PBR + 12+ KHR extensions; mesh3d 0.0.6 fully adopted (targetNames, typed sampled MorphWeights, node weights, texture transform); r489 Draco mesh decode (KHR_draco_mesh_compression), 38/38 staged fixtures bit-exact; lacks triangle-strip Draco, KHR_audio_emitter (docs gap) ✅ ~95% — symmetric round-trip incl. XMP + KHR_meshopt_compression write — full v1 bitstream (all control modes) + edge-reuse triangles + two-baseline indices + all 4 Appendix-B forward filters
USDZ (+ USDA) ✅ ~97% — typed MaterialExt + UsdSkel + PointInstancer + composition arcs, Crate ceiling 0.12 (Relocates/Splines), point caches + animated xform stacks; r491 1 M-point package 2047 → 212 ms, peak 7.7 → 1.7 GiB; lacks typed camera / light mapping, primvar interpolation (docs) ✅ ~97% — USDA + typed USDC writers (usdcat/usdchecker-validated); r491 Crate writer picks the smallest coding per array and stores values once (0.25× the raw size, smaller than the source file), text ↔ Crate layer round trip lossless on every staged fixture; lacks xformOp interpretation (docs)
FBX ✅ ~92% — full §7 section set, morph targets, r485 NurbsCurve geometry, blend-shape FullWeights/DeformPercent, texture wrap/placement; r489 typed key attributes + curve evaluator (1825/1830 samples), NURBS surfaces / trims / lines, in-between stations, 27/27 sweep files round-trip; lacks extrapolation evaluation, exact trim edges (docs) ✅ ~95% — Scene3D→FBX binary+ASCII, verbatim passthrough; r485 sampled KeyAttr block, re-encodes import identically in Blender 5/5 (5 interop bugs fixed); lacks SDK WrapMode table
IFC (BIM, ISO 16739) ✅ Phase 3 complete / Phase 4 ~90% — STEP/P21 + EXPRESS typing + tessellation: profiles, sweeps, curved advanced Breps, non-convex mesh–mesh Booleans + curved half-spaces, p-curve-bounded + sectioned surfaces, CSG trees, Delaunay-trimmed faces, WHERE rules, georeferencing, fuzzed; r492 106 / 114 geometry entities, toroidal half-spaces + doubly periodic faces, IFC 4.3 alignment curves (clothoid, cosine spiral, gradient), openings carved from hosts, spatial hierarchy + style colours, shared representations tessellated once: 100 000 products 1 056 s → 0.55 s; lacks textures, cant, sine / polynomial spirals (docs) —
Alembic 🚧 ~0% — Ogawa wire format docs-gapped per docs/3d/alembic/GAP-TRACKER.md —

Cross-format integration: oxideav-cli-convert exposes a 3D conversion path through oxideav_meta::populate_mesh3d_registry — oxideav convert in.obj out.gltf (or --probe for structural inspection). crates/oxideav-tests/tests/mesh3d_*.rs runs the cross-format roundtrip suite. The convert verb carries an ImageMagick-compatible op set (-resize / -thumbnail / -extent / -monochrome / -roll / -define …) plus a 3D→raster renderer (Gouraud + Phong, -light / -camera / -projection / -fov, debug render modes, -aa N). Black-box oracles cross-validate against Apple usdzconvert + Blender + assimp. Still-image side channels (the PDF and 3D renderers' output, icon input) ride the oxideav-image gateway, so every registered image format is an output there and -quality / --opt / -depth reach those encoders; the format crates are dev-dependencies only.

Trackers (decode-only by design) (click to expand)
Codec Decode Encode
MOD / STM / XM / IT ✅ ~97% MOD · ~95% STM · ~98% XM · ~96% IT — shared Paula/FT2 mixer + full effect sets, XM ref-lockstep 240/240; r486 STM rebuilt on the Scream Tracker 2 documents, 14/14 ST 2.21 + FT 2.08 jump probes in row lockstep, one finite pass for every format, IT 2.14+ compressed samples + resonant filter, 1.3–2.3× faster (MOD 1644× realtime); lacks STM slide/vibrato units, IT filter envelopes (docs) —
STM (Scream Tracker v1) ✅ ~85% — structural parse + shared-mixer playback; XM-parity effects (Gxy/Jxy/Bxy/Cxy/Exy/Hxy + 7xy tremolo + volume-slide variants); hard-pan LRRL —
XM (FastTracker 2) ✅ ~98% — structural parse + full playback; 38/38 black-box oracle gates (Amiga table, LFOs, autovibrato, envelope order, FT2 order-flow machine); lacks envelope Scale (docs) —
IT (Impulse Tracker) ✅ ~95% — decode + full player: NNA voices, envelopes, Axx…Zxx + Sxx, 25/25 black-box oracle gates, steered fuzz; lacks 2.14 compressed samples, filters, carry/S9x/Zxx (docs) —
S3M ✅ 100% — ST3 v3.20 effect set + AdLib/OPL2 playback + DP30ADPCM; r485 order sequencer exact vs ST3.21 position traces (12/12 probes), finite one-pass song end (SongEndPolicy); lacks OPL2 AM/VIB/KSL tables —
Windows codec sandbox (click to expand)

A pure-Rust 32-bit x86 emulator + PE32 loader + Video for Windows host that runs legitimately-licensed Windows codec DLLs on any platform — Linux, macOS, FreeBSD, Windows. The codec never executes on the host CPU; it runs through a software-interpreter sandbox. Two co-equal end-uses: rare-codec compatibility (codecs the project would otherwise permanently shelve — Indeo, MS-MPEG-4, WMV, Sorenson, etc.) and reverse-engineering aid (every Win32 call, every memory access, optionally every executed instruction crosses a Rust boundary; output is JSONL events for downstream analysis). The sandbox itself lives in KarpelesLab/univdreams as the ud-emulator crate; oxideav-vfw is a thin bridge that adds OS-aware codec discovery ($XDG_DATA_HOME/oxideav/codecs/ + cache) and registers ud-emulator-backed Codecs into oxideav-core::CodecRegistry. VfW codecs expose both decode (ICDecompress*) and encode (ICCompress*, SandboxedVfwEncoder) through the sandbox; DirectShow filters are decode-only. Design contract in docs/winmf/winmf-emulator.md.

Codec Binary Test fixture ICDecompress Notes
Indeo 3 (IV31) IR32_32.DLL cubes.mov 160×120 ✅ ICERR_OK Integer ISA only
Indeo 5 (IV50) IR50_32.DLL cat_attack.avi 320×240 + 3 more ✅ ICERR_OK 8/8 frames MMX kernels active (1.5M-5M dispatches/frame post-r20 FloatingPointProcessor registry probe + EFLAGS.ID / RDTSC / Pentium II CPUID fixes)
Indeo 4 (IV41) IR41_32.AX crashtest.avi 240×180 + indeo41.avi 320×240 ✅ ICERR_OK 8/8 frames each MMX kernels active
MSMPEG4 v3 (DIV3) mpg4c32.dll wmpcdcs8-2001 reference binary ✅ DECODE 17/17 frames at 42.9 dB PSNR-RGB + ENCODE externally validated — full ICCompress lifecycle wired; 176×144 BGR24 → 970-byte MP43 I-frame (78×); self-roundtrip 27.83 dB; AVI 1.0 wrap decodes through ffmpeg + mpv + ffprobe (mean 20.86 dB at q=5000). Covers I/P, skip-MB (~38%), alt-MV-VLC, AC-prediction. 13 stubs + x87 ISA + DirectShow GUID + ICINFO_SIZE = 568; codec rejects non-BI_RGB output 4CC.
MSMPEG4 v3 DShow mpg4ds32.ax winxp ✅ Full GOP DirectShow decode + 20/20 across 16 fixture-runs — covers 6/6 FOURCC variants (MP43/DIV3/DIV4/DVX3/AP41/COL1) routed through MP43 subtype; motion-pan-352×288 + skip-MB + AC-pred fixtures all green. DirectShow IBaseFilter wrapper: COM scaffolding + ole32 stubs + HostIFilterGraph + HostIPin + HostIMemAllocator + HostIMediaSample + IMediaFilter. CLSID {82CCD3E0-F71A-11D0-9FE5-00609778EA66}.
WMV1/2 DShow wmvds32.ax winxp CLASS_E_CLASSNOTAVAILABLE on default CLSID Needs the shipped wmvax.inf filter CLSID; round-26+
MSADDS audio msadds32.ax winxp 🚧 Pipeline driven through Receive, E_FAIL inside inner-decode (r70) — PE-load + COM + dual-pin allocator handshake green; ffmpeg-derived extradata flips Receive HRESULT 0x8000FFFF → 0x80004005. r70 pinned actual bail JCC at 0xe282 (cmp edi, [ebp+0x10] / jge → 0xe2bb), EDI=0x748 = sample-count bound. r69 0xea3a hypothesis falsified; r63 helper_addref retired. Same scaffolding as MP43; AmtBlueprint::wma_*; QueryAccept disasm at docs/codec/msadds32-query-accept-validation.md

Architecture — the ud-emulator engine is a 4 GiB MMU + i386 integer ISA + MMX ISA (~50 opcodes) + x87 FPU (8-deep stack) + PE32 loader + Win32 stub surface (kernel32 + user32 + msvcrt + winmm + advapi32 + ole32 + vfw32) + a COM dispatch layer (Guid parser + ComObjectTable ref-count bookkeeping + vtable dispatch + class-factory cache covering IUnknown / IClassFactory / IBaseFilter / IPin / IMemAllocator / IMediaSample / IFilterGraph) for codecs that ship as DirectShow filters rather than VfW drivers (.ax exposing DllGetClassObject instead of DriverProc). Both ud-emulator and oxideav-vfw are #![forbid(unsafe_code)] — codec DLL never runs on the host CPU, and the only unsafe boundary other emulators have (mmap'd executable pages, JIT, longjmp) doesn't exist here. Provenance is not clean-room — Microsoft's API surface is public by design and explicitly licensable for interoperability under 17 U.S.C. §117(a)(1) and Article 6 of EU Directive 2009/24/EC. The codec DLL bytes themselves are legitimately redistributable (shipped in K-Lite codec packs, Microsoft WMP redistributables, QuickTime installers, Linux vfw_codecs packages) — not committed to the repo.

Auto-discovery — oxideav_vfw::register(&mut RuntimeContext) walks a codec-DLL discovery path, probes each loadable .dll / .ax (VfW first via DRV_LOAD + ICOpen FOURCC sweep, then DirectShow via DllGetClassObject + EnumPins on missing DriverProc), and registers a Codec per result at priority 200 so the pure-Rust SW path (priority 100) and HW path (priority 10) both win unconditionally — VfW only resolves when nothing else matches. Default discovery path is $XDG_DATA_HOME/oxideav/codecs/ (fallback ~/.local/share/oxideav/codecs/, Windows %LOCALAPPDATA%\oxideav\codecs\); env var OXIDEAV_VFW_CODEC_PATH=/p1:/p2 *replaces* the default when set. Probe results cache to $XDG_CACHE_HOME/oxideav/vfw-discovery.json keyed by (path, mtime, size) so subsequent registers re-probe only changed entries. Discovery is gated behind the auto-discovery cargo feature (default-on); --no-default-features builds the sandbox with no FS scan + no log/serde dep transitive cost.

Reproducible encode — Sandbox::with_rand_seed(u32) (or set_rand_seed at runtime) seeds the sandbox-level msvcrt!rand LCG so codec calls that consult rand/srand are deterministic; default seed is 1 matching MSVC's pre-srand initial state. Two sandboxes seeded identically produce byte-identical encoded output. mpg4c32.dll's VfW encode path does not currently consult rand, so the API is protection-only on this codec; any future codec that does will inherit deterministic behaviour automatically.

Trace mode — disabled by default behind a trace Cargo feature (zero hot-path cost when off). When on, every memory read/write to a watched range, every Win32 call (with arguments + return value), and optionally every executed instruction emit JSONL events. Schema documented in docs/winmf/winmf-emulator.md. The reverse-engineering output is the input format the project's specifier→extractor→implementer round procedure consumes when producing clean-room codec specs from scratch.

Interactive debugger CLI — now ud vfw (univdreams)

The forensic debugger CLI that used to ship as oxidetracevfw has moved to KarpelesLab/univdreams as ud vfw {probe, decode, encode}. univdreams' ud-emulator crate is the upstream of this sandbox; oxideav-vfw is a thin Rust adapter that registers ud-emulator-backed codecs into oxideav-core::CodecRegistry. The full debugger surface (per-instruction trace, memory watchpoints, PC breakpoints, GDB Remote Serial Protocol server, JSONL trace sink, cascade-loaded module-stub synthesis) is preserved one repo up. cargo install ud-cli to use it.

Hardware acceleration (click to expand)

For codecs the host's GPU / ASIC accelerates natively, oxideav can delegate decode/encode to an OS hardware engine. The bridges open the OS framework via dlsym at first use — no compile-time link, no *-sys build dep, no header shipped. The framework still builds and runs without any of them present; a missing or older OS framework just unregisters the HW factory at startup so the pure-Rust path takes the dispatch.

The clean-room workspace policy doesn't apply to these crates — calling a system OS framework via FFI is the same shape as calling libc::malloc. It's the platform, not a copied algorithm.

Module Platform Decode Encode Notes
oxideav-videotoolbox macOS / iOS 🟢 H.264 + HEVC + ProRes + MJPEG + MPEG-2 + VP9 + MPEG-4 Pt 2 + AV1 (M3+) + VVC — r476 decoder truthfulness: output labels match the planes VT emits (negotiated per session; JPEG 4:2:0 / grey, other samplings fall back to pure Rust), avcC/hvcC + Annex B framing, AU splitting, display-order output (POC / reorder depth), flush at EOF; umbrella H.264 cropping tests 0 → 4/4 and 5/5 byte-exact, 8-codec sweep 12/12 frames each; r483 StreamParams on mid-stream shape changes (H.264 / HEVC incl. 8 → 10-bit / MJPEG / MPEG-2 / AV1); lacks MPEG-4 Pt 2 / ProRes / VVC re-sizing (bitstream parse), MMCO5 🚧 H.264 + HEVC + ProRes + MJPEG Encoder knobs map onto VT session properties (bit rate / quality / profile / data-rate limits); PSNR_Y ~36-61 dB per codec. iOS links the frameworks via build.rs + dlsym(RTLD_DEFAULT); macOS keeps the dlopen path; device-specific encoder gaps degrade gracefully via kVTPropertyNotSupportedErr; r401 fixed 4 latent FFI bugs (callback ABIs, decoded-frame PTS recovery, session + per-frame leaks) + OSStatus taxonomy + hardware require/enable/disable knob; lacks avcC extradata on the encoder output (Annex-B in-band).
oxideav-audiotoolbox macOS 🚧 AAC LC + HE-AAC v1/v2 + AAC-LD/ELD + ALAC + iLBC + AMR-NB + AMR-WB + MP3 + FLAC + Opus 🚧 AAC LC + HE-AAC v1/v2 + AAC-LD/ELD + ALAC + iLBC + FLAC + Opus MP3 decode bit-exact ≈89.8 dB SNR; FLAC bit-exact 188 416/192 000 i16 @ 48k/2ch; ALAC S32 lossless contract (S16/S32 input, 24-bit output); Opus via kAudioFormatOpus (RFC 7845 OpusHead family 0/1/255 + RFC 6716 frame-duration mapping; ~26 dB SNR roundtrip); MP1 + MP2 decode added (sample-exact); typed OSStatus taxonomy + RAII converter + OS-inventory-gated registration; r480 encoder rate/format grids read from the OS.
oxideav-vaapi Linux (Intel iGPU + AMD Radeon, via libva) 🚧 H.264 IDR-only on the registry — stub Codec id → VAProfile map + EntrypointMatrix probe; full-stream H.264/HEVC/VP9/AV1 VLD is in external PR #6, blocked on an oxideav-vp9 release; lacks libva header docs
oxideav-vdpau Linux (NVIDIA legacy / Nouveau) 🚧 H.264 + HEVC + VP9 + MPEG-2 — stub Four CodecInfo entries (h264/hevc/vp9/mpeg2video) with CodecCapabilities::video("<codec>_vdpau") at priority 15 + max_size 8192² + container tags + libvdpau.so.1/libX11.so.6 pre-flight.
oxideav-nvidia Cross-platform (NVENC + NVDEC) 🚧 VP9 + AV1 + MPEG-2 — Mpeg2NvDecoder + MPEG-2 NVDEC factory (cuvidParser + CudaVideoCodec::Mpeg2); pre-flight cuvidGetDecoderCaps surfaces Error::Unsupported early → fallback to oxideav-mpeg12video; registered at priority 5 w/ QT/MP4 fourCC + Matroska codec-id.
oxideav-vulkan-video Cross-platform (Vulkan VK_KHR_video_*) 🚧 H.264 + HEVC + AV1 capability queries — empty HEVC + AV1 chained capability queries via vkGetPhysicalDeviceVideoCapabilitiesKHR; sys.rs adds StdVideo H.265 + AV1 type aliases + 4 sType discriminants + profile/anchor-level constants + 4 repr(C) Caps structs; query_video_decode_h265_capabilities (H.265 Main 8-bit 4:2:0) + query_video_decode_av1_capabilities (AV1 Main 8-bit 4:2:0).

Priority + fallback — every HW factory registers with CodecCapabilities::with_priority(10) (lower numbers win at resolution time, SW codecs sit at priority 100+). Two fallback paths to the pure-Rust codec are automatic:

  1. Load failure (older OS, missing framework, sandboxed environment without entitlements) → register() logs and returns without registering, SW is the only candidate at dispatch.
  2. Init failure (VTDecompressionSessionCreate / AudioConverterNew / equivalent returns non-zero status for the requested parameters — stream above device max, hardware encoder slot busy, profile not accelerated) → factory returns Err, and the selection walker (oxideav_pipeline::make_decoder_with / make_encoder_with) retries the next-priority impl.

Pipelines that require hardware (real-time low-latency capture where SW can't keep up) opt out of the SW fallback by setting CodecPreferences { require_hardware: true, .. } — the selection walker then surfaces the OS-level error instead of degrading silently.

Opt-out — oxideav --no-hwaccel sets CodecPreferences { no_hardware: true }, which the pipeline forwards to make_decoder_with / make_encoder_with so HW factories are skipped at dispatch. The runtime context still registers every HW backend — oxideav list shows the *_videotoolbox / aac_audiotoolbox rows regardless of the flag — only resolution is biased. Useful for byte-deterministic output or regression bisection.

Build flags — disable hardware entirely with --no-hwaccel on the CLI, or build with oxideav-meta = { default-features = false, features = ["pure-rust"] } (= all minus hwaccel) for a binary with no FFI to OS HW-engine APIs at all.

Protocols, drivers & integrations (click to expand)

Not codecs or containers — these are the I/O surfaces and runtime integrations that surround them.

Component Role Status
oxideav-source URI resolution + file reader + prefetching BufferedSource ✅ file:// + mem:// + data: (RFC 2397) + concat: (mem:///data:/slice:inner schemes) +slice:+!byte-window +FileScopeallow-list +deny_dircarve-outs +file://URI percent-decoding (RFC 3986 §2.1) + r433 symlink-escape hardening (roots re-canonicalised at check time; deny carve-outs no longer fail open) + full-ring prefetch deadlock fix +concat: leading-//` round-trip fix + 3-target fuzz (~75M execs)
oxideav-http HTTP / HTTPS source driver ✅ http:// + https:// via pure-Rust ureq + rustls + webpki-roots; Range-request seeking; HttpConfig policy + RFC 7233 Content-Range/200-fallback/416 handling + RFC 9110 If-Range strong-validator + Content-Length cross-checks + HTTP-date 3 forms (IMF-fixdate/rfc850/asctime) + multipart/byteranges reject + Retry-After surfacing + RFC 7230 §3.2.4 obs-fold normaliser + RFC 9110 §8.4/§12.5.3 content-coding refusal (identity-only negotiation + coded-response rejection) + §12.5.5 Vary content-negotiation stability check + driver-owned §15.4 redirects (5 classes, loop-detect, scheme/host policy, Range/If-Range across hops) + RFC 3986 uri module (§5 resolution, all 41 §5.4 examples pinned) + parse_headers fuzz; lacks cookies/auth
oxideav-generator Synthetic media source (generate://... URIs) + zero-input filters ✅ audio synth (sine incl. phase/per-channel phase + chirp/FM/DTMF/multitone/ADSR/ringmod + 5-colour noise + pwm + supersaw + tremolo + dc/impulse trains) + image (xc/gradient/pattern/fractal/plasma/noise/label + Perlin-2001 + Worley + 1–8-bit quantised ramp) + video (testsrc/smptebars/fractal_zoom/gradient_animate/zoneplate/scroll + movingbox exact-MV motion probe + snow seeded stateless noise) + catalogue-wide byte-determinism suite + framefill benches + r480 IM7 gradient / radial-gradient (±1 vs magick), seeded plasma:c1-c2 / fractal, CSS4 + IM colour names; r490 stills at 8 / 16-bit / float, multi-stop linear / radial / conic gradients in six colour spaces, test charts, hald:, pseudo-image specification parser, axis-aligned gradients 55× faster; lacks float frames on the registry path (core ask)
oxideav-rtmp RTMP ingest + push ✅ Server + client + relay; r493 live interop 334/334 cells packet-exact against a black-box publisher / player / server (Abort, mid-message timeouts, PingRequest, negotiation deadline, bounded AMF references fixed), late-join cache, 7 fuzz targets daily, loopback 4–5 GB/s; lacks RTMPS/RTMPE, outside-verified digest C2/S2 + AMF3; AMF0/AMF3 parser/builder; Enhanced-RTMP v1 video + v2 audio + ModEx; pluggable key-verification; rtmp:// PacketSource; symmetric teardown + client poll_event + v2 MultichannelConfig (24 SMPTE 22.2 positions) + Multitrack body + §E FLV file writer + FlvReader<R: Write> + NetConnection capability negotiation + §7.1.6 Aggregate Message routed end-to-end (send_aggregate + next_packet + poll_event) + ModEx TimestampOffsetNano (ns timebase) + typed MessageStreamKind accessor + §5 protocol-control invariant validator + §5.3 Acknowledgement received-byte window + Enhanced-RTMP v2 ReconnectRequest (typed client event + tcUrl resolution) + AMF3 §3.12 externalizable-object decode via register_externalizable per-class handlers + typed Enhanced-RTMP VideoFrameType.Command (StartSeek/EndSeek) seek-command frames + Enhanced-RTMP v2 audio silence-message + VideoPacketType.MPEG2TSSequenceStart (av01 descriptor) + SequenceEnd typed on both pipelines + AMF0 complete serializable marker set (§2.15 Unsupported 0x0D / §2.17 XML Document 0x0F / §2.18 Typed Object 0x10 + avmplus 0x11 AMF3 bridge) + play/subscribe direction complete (§4.2.1 PlaySession server + RtmpPlayer pull client + publish→play relay + rtmp-play:// PacketSource + dynamic playlists/play2 + drain-until-FIN teardown fix) + chunk ext-timestamp/fmt-3 wire-correctness fixes (3 writer desync bugs) + RFC-1982 rollover unwrapping + AMF3 type-17 command path + v2 selector framing + §7.2.1.2 call RPC all surfaces + §5.4.5 peer-bandwidth limit types + Shared Objects (all 11 event types, all surfaces) + @setDataFrame/@clearDataFrame store+replay + HMAC-SHA256 digest handshake (auto-negotiated, dependency-free); + r441 Enhanced-RTMP v2 MULTITRACK end-to-end (per-track demux/mux with spec-invariant validation + typed TrackInfo + tag/multitrack send surfaces on client AND PlaySession + per-track PacketSource streams); lacks RTMPS + RTMPE
oxideav-sysaudio Native audio output ✅ Runtime-loaded backends (ALSA, PulseAudio, WASAPI, CoreAudio, OSS); CoreAudio + WASAPI real HAL latency; output-device enumeration; per-device routing API on all backends; StreamRequest::buffer_frames honoured; Driver::preferred_format introspection on WASAPI/CoreAudio/ALSA; functional OSS /dev/dsp via dlopen'd libc (S16_LE negotiation). BT-aware; falls back to software estimate if HAL unavailable; r401 added a CI mock backend, request pre-flight validation, software volume, Driver::status() tri-state, callback-panic containment, and fixed CoreAudio HAL enumeration (was empty on every host).
oxideav-pipeline Pipeline composition (source → transforms → sink) ✅ JSON transcode-graph executor; pipelined multithreaded runtime drives byte/packet/frame sources natively (spawn/seek/progress/abort on typed sources) + graph-validation hardening (alias-cycle guard, same-kind all: fan-out ordinals, key-directed parse — exponential nested-chain fixed) + error-propagation contracts + channel caps + byte ceilings + Progress counters + graph benches + r445 multi-output jobs run in ExecutionContext-clamped parallel waves (document-order error precedence) + seeks fan out to every routed source; r482 in-band Frame::StreamParams end to end (decoder → convert / filter / resample → encoder / sink, one event per change, Reshape retired); lacks runtime converter insertion
oxideav-scene Time-based scene / composition model 🚧 data model for PDF pages / RTMP streaming compositor / NLE timelines + per-frame Sample + animation-track composition + RasterRenderer (bg solid/gradient + Rect/Polygon + ObjectKind::Vector) + ObjectKind::Group nested + SVG 1.1 path-data (M/L/H/V/C/S/Q/T/Z + relative + A arc) + ObjectKind::Image(Decoded) RGBA8 + Background::DecodedImage(Arc<VideoFrame>) + audio-cue mixing into RenderedFrame.audio + typed PBR metallic-roughness Material + Scene::materials palette + glTF 2.0 node graph COMPLETE (typed validation + cycle-safe traversal/walk utilities + Mat4 inverse/TRS-decompose + quaternion ops/slerp + keyframe node animation Step/Linear/CubicSpline + Scene-level graph/animation fields)
oxideav-render Scene3D → pixels rendering backends ✅ scanline + Whitted raycast + Monte Carlo path tracer (NEE+MIS, Sobol', HDR environment maps, every ratified KHR material extension incl. anisotropy / iridescence / diffuse-transmission / dispersion, 16 spp 256² 119 ms); textures through the oxideav-image gateway (every registered format, EXR stays linear); cross-backend parity ±1/255; lacks the four newest extensions on the raster backends
oxideav-bitstream Codec-header parse/write toolbox ✅ H.264 + HEVC parameter sets complete (SPS/PPS/VPS incl. VUI/HRD + SEI families + scaling lists + RPS derivation; H.264 + HEVC byte-exact parameter-set writers on lossless parses) + AV1 metadata OBUs + H.266 SPS/PPS/VPS/PH + APS (ALF/LMCS/scaling-list) + full Annex-D SEI set + OPI/DCI, all with byte-exact writers + H.266 complete VPS/SPS/PPS walks + byte-exact writers (r438) + HEVC typed SEI encoders (HRD-coupled BP/PT both ways) + AV1 sequence-header + VP9 keyframe writers (VP9 4-bit misparse found+fixed) + Annex-B ↔ length-prefixed framing — fuzz-hardened; lacks H.266 slice-header walk
oxideav-audio-filter Audio effects & conversions (streaming) ✅ ~50 filters: classic + transient/spatial/restoration family + SlewLimiter + LR4 crossover + true_peak_detector + state_variable Chamberlin SVF + Criterion benchmark harness (7 scenarios) + crest_factor_meter + stereo_correlation_meter (Pearson coefficient, sliding-window) + zero_crossing_rate observer (per-channel sliding-window meter, sign(0.0) = +1 defends against f32::signum -0.0 phantom-crossing) + dither (TPDF/RPDF requantizer + error-feedback noise shaping) + complete staged EQ-cookbook biquad catalogue (constant-peak BPF + slope shelves) + parallel/New-York compressor (dry/wet blend) + band-limited rational resampler (ratio-scaled anti-alias prototype, ≥40 dB end-to-end alias rejection) + crossfeed (headphone ITD + head-shadow) + chunk-size-invariance / hostile-parameter / denormal-flush / analytic-transfer-function contracts + latency_samples reporting (pitch_shift NaN-hang + wah/talkbox state-leak fixes) — see crate README for the catalogue; r482 every filter follows mid-stream rate / channel / format changes (re-plan, carry state, forward or refuse)
oxideav-image-filter Single-frame image effects (stateless) ✅ ~97% — frame contract on all 66 layouts + daily fuzz, 188 filters (186 at 8 / 16-bit / float), distortion engine (17 methods), 70 compose ops, dither engine, quantise, statistics / compare / fft; r497 31 resize kernels each ≥ 73 dB against a black-box tool at 8 reductions / enlargements, thumbnail / scale / sample / adaptive resize + geometry strings, row-pipeline resampler (12 → 1 MP Lanczos 152 → 28 ms); lacks liquid rescale, 16-bit CMYK, 22 compose alpha conventions (docs)
oxideav-image Image gateway (Layer 2 of the image-crate API) ✅ ~99% — opens all 25 image containers, encode/save by name, blobs + palette alpha both ways, ExecutionContext budget, layer ops; r481 text metadata on save through Muxer::set_metadata with a written / dropped report (strict mode), native packed layouts kept end to end; r490 layer model (canvas / page / delay / disposal / blend) with coalesce, exact optimise, flatten, append at 8 / 16-bit / float, coalesce 1080p 277 → 2092 fps; lacks format crates reading / writing layers, text carriage in most format muxers (heif/png only)
oxideav-io One-call opener on the gateway ✅ r477 image 0.0.4 adoption complete: allow/deny lists ride the gateway (typed Restricted), ICC/Exif/XMP blobs + palette alpha on Image / ImageFile / RgbaImage / probe, strip + replace-by-kind on open and save, buffered sources, zero-config savers; 120 tests, 25/25 image containers ping = probe = gateway; lacks the a/v transcode path (oxideav-pipeline)
oxideav-cli-convert oxideav convert image + 3D paths ✅ still-image path on the gateway contract: codec picked by the requested name, schema-gated -quality, ICC/Exif/XMP carried by default (-strip), palette alpha, `--allow/deny-containers
oxideav-pixfmt Pixel-format conversion + palette + dither ✅ 82 formats, 6642/6642 pairs — YUV↔RGB matrices, packed 16/32-bit tier, palette + dither, row-band engine; 40+ float colour models (r488: Luv / LCh(uv), Jzazbz, scRGB, PhotoYCC, Cineon log, LMS) with a model-to-model buffer converter (±1 LSB at 16 bits; Lab → sRGB 165 → 21 ms/MP); ICC v2/v4 transforms with tetrahedral CLUT + device-link tables (CMYK → sRGB 294 → 37 ms/MP, ΔE2000 ≤ 0.41 vs magick); lacks black-point compensation (docs), NamedColor
Subtitles (click to expand)

All text formats parse to a unified IR (SubtitleCue with rich-text Segments: bold / italic / underline / strike / color / font / voice / class / karaoke / timestamp / raw) so cross-format conversion preserves as much styling as each pair can represent. Bitmap-native formats (PGS, DVB, VobSub) decode directly to Frame::Video(Rgba). All text parsers tolerate UTF-8 / UTF-16 LE / UTF-16 BE BOMs and CRLF / LF / lone-CR line endings.

Text formats — in oxideav-subtitle:

Format Decode Encode Notes
SRT (SubRip) ✅ ✅ <b>/<i>/<u>/<s>, <font color> hex + 17 named, <font face size> + structural tolerance (PEM preamble + duplicate-index + whitespace-only continuation lines)
WebVTT ✅ ✅ Header, STYLE ::cue(.class), REGION, inline b/i/u/c/v/lang/ruby/timestamp + cue-settings round-trip + full REGION block + §4.1 NOTE comment-block round-trip + §3.4 cue identifier round-trip + §4.1/§3.3 strict signature + canonical timestamp enforcement + §6.4 HTML character-reference decoder (decimal / hex / 8 named) + §4.2.2 & / < / > escape on write
MicroDVD ✅ ✅ frame-based, {y:b/i/u/s}, {c:$BBGGRR}, {f:family}
MPL2 ✅ ✅ decisecond timing, / italic, | break
MPsub ✅ ✅ relative-start timing, FORMAT=TIME, TITLE=/AUTHOR=
VPlayer ✅ ✅ HH:MM:SS:text, end inferred
PJS ✅ ✅ frame-based, quoted body
AQTitle ✅ ✅ -->> N frame markers
JACOsub ✅ ✅ \B/\I/\U, #TITLE/#TIMERES headers
RealText ✅ ✅ HTML-like <time>/<b>/<i>/<u>/<font>/<br/>
SubViewer 1/2 ✅ ✅ marker-based v1, [INFORMATION] header v2
TTML ✅ ✅ W3C Timed Text, <tt>/<head>/<styling>/<style>/<p>/<span>/<br/>, tts:* styling + r171 IMSC 1.2: <layout> regions + tts:textAlign + 22 IR-unmodelled tts:* / itts:* style extras + 11 ttp:* / ittp:* parameter attrs + HH:MM:SS:FF / <n>f / <n>t against ttp:frameRate / ttp:tickRate + TTML2 §8.1.5 inline tts:* on <p> (modelled-attr wrap + ttml_p_extra canonical order) + §12.2.4 par/seq timeContainer timing + timed-span progressive reveal + TTML2 §10.2 complete styling-attribute vocabulary (44 tts:* round-trip byte-stable across style/region/inline-p)
SAMI ✅ ✅ Microsoft, <SYNC Start=ms> + <STYLE> CSS classes
EBU STL ✅ ✅ ISO/IEC 18041 binary GSI+TTI (text mode only; bitmap + colour variants deferred)

Advanced text (own crate) — oxideav-ass:

Format Decode Encode Notes
ASS / SSA ✅ ✅ Script Info (typed header accessors + WrapStyle→\q bridge) + V4+/V4 styles + full override-tag set rendered (borders / shadows / blur / clips / shear / karaoke / alignment) + typed font-metric/rotation tag family + typed \t animated-transform tag + typed event columns + [Fonts]/[Graphics] attachments + structured-model SSA↔ASS dialect conversion + StyleDef typed accessors + Collisions layout resolver + drawing m/n close + s/p/c B-spline + time-varying override-tag evaluation at time t (\move/\fad/\fade/\t incl. \t(\clip) rect interpolation/\k) + typed \r/\q tags + layer/margin-aware collision resolver + fuzz-hardened fixpoint serialiser (5M+ inputs); re-emit byte-identical

Bitmap-native (own crate) — oxideav-sub-image:

Format Decode Encode Notes
PGS / HDMV (.sup) ✅ ✅ Blu-ray subtitle stream; PCS/WDS/PDS/ODS + RLE + YCbCr palette → RGBA + RLE codec property + multi-fragment ODS fragmentation on encode + negative sweep + PCS composition_state classified + routed to Packet keyframe flag + independent per-palette_id PDS slots within a display set (BD-ROM Part 3 §2.2.1.2.3 "Composition Segments indicate the Palette to be used") with PCS palette_id-driven render selection (fade/colour-change sets)
DVB subtitles ✅ ✅ ETSI EN 300 743 segments + §7.2.2 epoch state machine (cross-packet region/CLUT/object retention; normal-case deltas render) + 2/4/8-bit pixel-coded objects + §7.2.4 Y=0 full-transparency + character-coded objects + §7.2.5.1 CLUT-depth map-table application + §7.2.1 Display Definition window clip; encoder: full segment writers + 2/4/8-bit RLE + RGBA display-set encoder (PES-level), roundtrip-pinned + §7.2.5.1 Table-10 2-bit pixel-code conformance fix + spec-vector escape gates
VobSub (.idx+.sub) ✅ — DVD SPU with control commands + RLE + 16-colour palette + SP_DCSQ 0x07 CHG_COLCON length-skip + CHG_COLCON application (typed bands + per-pixel replacements during canvas paint) + per-DCSQ STM latching + FSTA_DSP forced-display surfacing

Cross-format transforms (text side): srt_to_webvtt, webvtt_to_srt in oxideav-subtitle; srt_to_ass, webvtt_to_ass, ass_to_srt, ass_to_webvtt in oxideav-ass. Other pairs go through the unified IR directly (parse → IR → write).

Text → RGBA rendering — any decoder producing Frame::Subtitle can be wrapped with RenderedSubtitleDecoder::make_rendered_decoder(inner, width, height) (or ..._with_face(face) for a TrueType face), which emits Frame::Video(Rgba) at the caller-specified canvas size, one new frame per visible-state change. Two paths:

  • With face (default-on text cargo feature): shape via oxideav-scribe, rasterise via oxideav-raster. Honours per-run colour, supports any TTF/OTF face including CJK + emoji (CBDT colour bitmaps land via the bilinear/composer path).
  • Without face (or with the text feature off): falls back to the embedded 8×16 bitmap font covering ASCII + Latin-1 supplement, bold via smear, italic via shear, 4-offset outline. No TrueType dep, no CJK.

In-container subtitles (MKV / MP4 subtitle tracks) remain a scoped follow-up.

Tags + attached pictures

The oxideav-id3 crate parses ID3v2.2 / v2.3 / v2.4 tags + typed ID3v1/1.1 and Enhanced TAG+ trailers + CHAP/CTOC chapter frames (read+write symmetric, cycle-safe TOC walkers) (v2.2: complete §4 frame table with typed v2.2-only walkers + §3.1 compression-bit skip since r283; whole-tag and per-frame unsync, extended header with CRC-32 [ISO-3309] verification and emission since r153, v2.4 data-length indicator, encrypted/compressed frames recorded as Unknown (v2.2 §4.20 CRM encrypted-meta frame now typed decode/encode/round-trip), r161 v2.4 §3.4 footer emission + strict trailer-validation on read composable with whole-tag/per-frame unsync + extended-header CRC) plus the legacy 128-byte ID3v1 trailer. Text frames (T*, TXXX), URLs (W*, WXXX), COMM / USLT, and APIC / PIC picture frames are handled structurally; less-common frames (SYLT, RGAD/RVA2, PRIV, GEOB, UFID, POPM, MCDI, …) survive as Unknown with their raw bytes available.

The oxideav-flac container surfaces the extracted fields via the standard Demuxer::metadata() (Vorbis-comment-style keys: title, artist, album, date, genre, track, composer, …) and cover art via a new Demuxer::attached_pictures() method returning &[AttachedPicture] (MIME type + one-of-21 picture-type enum + description + raw image bytes). FLAC's native METADATA_BLOCK_PICTURE is handled natively; FLAC wrapped in ID3 (a few oddball taggers) works via the fallback path.

oxideav probe file.mp3 prints a Metadata: section and an Attached pictures: section with per-picture summary.

Audio filters

The oxideav-audio-filter crate provides:

  • Volume — gain adjustment with configurable scale factor
  • NoiseGate — threshold-based gate with attack/hold/release
  • Echo — delay line with feedback
  • Resample — polyphase windowed-sinc sample rate conversion
  • Spectrogram — STFT → image (Viridis/Magma colormaps, RGB + PNG output)

Pixel formats + conversion

The oxideav-pixfmt crate is the shared conversion layer for video codecs. The PixelFormat enum covers ~30 first-tier formats (ffmpeg equivalent names in parentheses):

  • RGB family: Rgb24, Bgr24, Rgba, Bgra, Argb, Abgr, plus 16-bit-per-channel Rgb48Le / Rgba64Le.
  • YUV planar: Yuv420P / Yuv422P / Yuv444P at 8 / 10 / 12-bit, plus JPEG-full-range variants (YuvJ420P, YuvJ422P, YuvJ444P).
  • YUV semi-planar: Nv12, Nv21. YUV packed: Yuyv422, Uyvy422.
  • Grayscale: Gray8, Gray10Le, Gray12Le, Gray16Le.
  • Alpha-bearing: Ya8, Yuva420P.
  • Palette: Pal8. 1-bit: MonoBlack, MonoWhite.

oxideav_pixfmt::convert(src, dst_format, &ConvertOptions) handles the live conversion matrix (RGB all-to-all swizzles, YUV↔RGB under BT.601 / BT.709 × limited / full range, NV12/NV21 ↔ Yuv420P, Gray ↔ RGB, Rgb48 ↔ Rgb24, Pal8 ↔ RGB with optional dither). Palette generation via generate_palette() offers MedianCut and Uniform strategies. Dither options: None, 8×8 ordered Bayer, Floyd-Steinberg.

Codecs declare accepted_pixel_formats on their CodecCapabilities; the job graph (below) auto-inserts conversion when the upstream format doesn't match.

JSON job graph

The JSON job graph (executed by oxideav-pipeline via oxideav run; the former oxideav-job crate was folded into the pipeline) is a declarative way to describe multi-output transcode pipelines. A job is a JSON object: keys are output filenames (or reserved sinks like @null / @display), values describe tracks grouped by audio / video / subtitle / all, and each track carries a recursive input tree of source refs and filter / convert nodes.

{
  "threads": 8,
  "@in":       {"all": [{"from": "movie.mp4"}]},
  "out.mkv":   {
    "video": [{"from": "@in", "codec": "h264", "codec_params": {"crf": 23}}],
    "audio": [{"from": "@in", "codec": "flac"}]
  },
  "out.png":   {"video": [{"from": "@in", "convert": "rgba"}]}
}

The executor has two modes: serial (threads == 1) runs one packet at a time; pipelined (threads ≥ 2, default when available_parallelism() ≥ 2) spawns one worker thread per stage per track connected by bounded mpsc channels. The mux/sink loop runs on the caller's thread so JobSink implementations don't need to be Send (the SDL2 player sink in oxideplay stays a single-threaded object). Both modes produce byte-identical output for deterministic jobs.

Decoder / Encoder trait hook: set_execution_context(&ExecutionContext) (default no-op) lets codecs opt into slice- / GOP-parallel work later without trait churn.

Explicit pixel-format conversion nodes ({"convert": "yuv420p", "input": ...}) fit anywhere in the input tree; the resolver also auto-inserts a PixConvert stage between Decode and Encode when a codec's accepted_pixel_formats list excludes the upstream format.

Input sources

The source layer decouples I/O from container parsing. Container demuxers receive an already-opened Box<dyn ReadSeek> and never touch the filesystem directly. The SourceRegistry resolves URIs to readers:

Scheme Driver Shape Notes
bare path / file:// built-in bytes std::fs::File
http:// / https:// oxideav-http (opt-in) bytes ureq + rustls, Range-request seeking
rtmp:// oxideav-rtmp (opt-in) packets Listener accepts one publisher; FLV-shaped tags → Packet (time_base 1/1000); skips the demux layer (executor branches via SourceOutput::Packets)
generate://... oxideav-generator (opt-in) frames Synthetic audio / image / video; emits decoded Frames directly (executor branches via SourceOutput::Frames)

The HTTP and RTMP drivers are off by default in the library (http / rtmp cargo features) and on by default in oxideav-cli. oxideplay keeps http on; RTMP isn't player-relevant.

BufferedSource wraps any ReadSeek with a prefetch ring buffer (64 MiB default in oxideplay, configurable via --buffer-mib). A worker thread fills the ring ahead of the read cursor; seeks inside the window are free.

$ oxideav probe https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4
Input: https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4
Format: mp4
Duration: 00:09:56.46
  Stream #0 [Video]  codec=h264  video 320x180
  Stream #1 [Audio]  codec=aac  audio 2ch @ 48000 Hz

Playback

An opt-in binary crate oxideplay implements a reference player with SDL2 (audio + video) and a crossterm TUI. SDL2 is loaded at runtime via dlsym — oxideplay doesn't link against SDL2 at build time, so the binary builds and ships without requiring SDL2 dev headers. If SDL2 isn't installed on the target machine, the player exits cleanly with a "library not found" message instead of failing to start. The core oxideav library and every codec/container/filter crate stays pure Rust; the only FFI in the framework lives in the optional HW-engine crates (oxideav-videotoolbox / -audiotoolbox / -vaapi / -vdpau / -nvidia / -vulkan-video), each also runtime-loaded via dlsym.

cargo run -p oxideplay -- /path/to/file.mkv
cargo run -p oxideplay -- https://example.com/video.mp4

Keybinds: q quit, space pause, ← / → seek ±10 s, ↑ / ↓ seek ±1 min (up = forward, down = back), pgup / pgdn seek ±10 min, * volume up, / volume down. Works from the SDL window (when a video stream is present) or from the TTY.

When the winit + wgpu video output is selected (--vo winit), oxideplay ships an egui on-screen overlay UI (auto-hide after ~3 s of mouse idle during playback; stays visible while paused). Mouse-driven controls cover play/pause, draggable seek bar, time display, volume slider, mute, ±10 s skip, and a toggleable stats panel. egui (0.34) + egui-wgpu + egui-winit are pure-Rust deps gated behind the winit cargo feature, so SDL2 builds are unaffected.

CLI

oxideav command-line verbs: list, probe, remux, transcode, run, validate, dry-run, convert. Inputs can be local paths or HTTP(S) URLs.

$ oxideav list                           # print registered codecs + containers
$ oxideav probe song.flac
$ oxideav transcode song.flac song.wav
$ oxideav remux input.ogg output.mkv
$ oxideav probe https://example.com/video.mp4

# JSON job graph
$ oxideav run job.json
$ oxideav run - < job.json
$ oxideav run --inline '{"out.mkv":{"audio":[{"from":"in.mp3"}]}}'
$ oxideav run --threads 4 job.json        # override thread budget
$ oxideav validate job.json               # check without running
$ oxideav dry-run job.json                # print the resolved DAG

# ImageMagick-style convert (chains filters; accepts generator shorthands)
$ oxideav convert in.png -resize 800x600 out.jpg
$ oxideav convert "xc:red" red.png                      # solid colour
$ oxideav convert "label:Hello world" greeting.png      # text → image
$ oxideav convert "gradient:red-blue" gradient.png

# PDF input + page selectors + Scene-aware fan-out (printf template)
$ oxideav convert -density 300 in.pdf -background white \
                  -alpha remove -alpha off page-%03d.png
$ oxideav convert in.pdf[0] cover.png                   # single-page extraction
$ oxideav convert in.pdf[2-5] excerpt.pdf               # page-range slice (vector preserved)
$ oxideav convert in.pdf      page-%d.svg               # one SVG per page

# 3D scene conversion via oxideav_meta::populate_mesh3d_registry
$ oxideav convert in.obj  out.gltf                      # OBJ → glTF
$ oxideav convert cube.stl cube.obj                     # STL → OBJ
$ oxideav convert scene.gltf scene.glb                  # JSON glTF → binary .glb

# Throughput bench across HW + SW backends (1080p default; --all walks every codec)
$ oxideav bench h264 --duration 3
$ oxideav bench --all --width 1280 --height 720 --side encode

Two global flags help diagnose startup or codec issues:

  • --debug enables debug log output to stderr through the log facade. Every crate that emits log::debug! flows through here.
  • --no-hwaccel sets CodecPreferences { no_hardware: true, .. } on the pipeline so the resolution layer skips hardware-accelerated factories at dispatch time. The runtime context still registers every backend (oxideav list shows them all regardless of the flag); only the per-route choice is biased toward the pure-Rust path. Useful for byte-deterministic output, regression bisection, or when the hardware encoder produces a worse stream than the pure-Rust path for a specific bitrate target.
  • --debug-output FILE redirects debug log output to a file instead of stderr (implies --debug; stderr stays clean).

oxideplay --job <file> runs a job where @display / @out binds to the SDL2 player sink; other outputs (file paths) write to disk in the same run.

Building

First clone? Run ./scripts/update-crates.sh before cargo build. The workspace tracks only the integration glue (oxideav-cli, oxideplay, oxideav-tests, the oxideav facade, the oxideav-meta aggregator); every per-format codec lives in its own OxideAV/oxideav{,-*} GitHub repo and must be cloned into crates/ first. cargo build on a bare checkout fails with failed to load manifest for workspace member until you do.

git clone https://github.com/OxideAV/oxideav-workspace.git
cd oxideav-workspace

gh auth login                 # one-time: update-crates.sh uses gh API to list siblings
./scripts/update-crates.sh     # populates crates/ with every OxideAV/oxideav{,-*} repo

cargo build --workspace
cargo test --workspace

The oxideav binary is produced by the oxideav-cli crate:

cargo run -p oxideav-cli -- --help

Working with the sub-crates

Every per-format codec — plus oxideav (facade) and oxideav-meta (aggregator) — lives in its own OxideAV/oxideav{,-*} repository. The root Cargo.toml globs crates/* as members and points every [patch.crates-io] entry at those local paths, so once the siblings are cloned the workspace resolves entirely without crates.io round-trips for any oxideav-* dep during local dev or CI.

  • scripts/update-crates.sh — clones every missing OxideAV sibling AND fast-forwards already-cloned siblings to upstream tip via a single GraphQL call. Skips siblings whose upstream is already an ancestor of local HEAD and refuses to fast-forward when local commits have diverged, so in-progress work is preserved. Idempotent; safe to re-run.
./scripts/update-crates.sh    # clone + fast-forward all OxideAV crates

CI runs update-crates.sh at the top of each job (see .github/workflows/ci.yml), so no crates.io resolution is needed there either — the workspace builds whether or not a given crate has been published yet.

.gitignore hides the cloned crate working copies so git status in this repo only shows changes to the native members (oxideav-cli, oxideplay, oxideav-tests). Changes inside a cloned crate are committed against that crate's own repo, not this one.

License

MIT — see LICENSE. Copyright © 2026 Karpelès Lab Inc.

Explore projetos relacionados

Carregando…