Hello, Video Codec! — Build an Intra-Only Codec in ~100 Lines of Rust
Tutorial building a working intra-only video codec with intra prediction and Rice/Golomb residual coding in about 100 lines of Rust, outperforming pngcrush on a 4K frame.
Link
Related resources
- wav1c: An AV1 Encoder from Scratch in Rust (WASM)Writeup of building wav1c, a from-scratch Rust AV1 encoder compiled to WebAssembly that performs real-time in-browser encoding.
- pl_mpeg — Single-File MPEG1 Video and MP2 Audio Decoder~3000-line dependency-free C library decoding MPEG1 video, MP2 audio and MPEG-PS containers, fast enough for 4K60 on one core.
- ffmpeg-android — Per-ABI, Per-Codec Android FFmpeg BuilderAndroid cross-compilation scripts that build FFmpeg per ABI and per codec (for example ./ffmpeg-android_build.sh armeabi-v7a x264) with a r…
- xHE-AAC Codec Test Service (Fraunhofer)Conformance bitstreams and test tooling for xHE-AAC covering loudness normalization, DRC and immediate playout frame behaviour.
- rusty_ffmpeg — raw FFmpeg FFI bindings for RustAuto-generated low-level Rust FFI bindings to FFmpeg libraries, tracking recent FFmpeg releases with build-time linking helpers.
- GStreamer debugging tools tutorialOfficial guide to GST_DEBUG levels and categories plus GST_DEBUG_DUMP_DOT_DIR pipeline graph dumps for diagnosing media pipelines.
- Shaka Player DRM Configuration TutorialGuide to configuring key systems, robustness levels, persistentStateRequired and license-exchange logging for debugging EME playback.
- PallyCon HTML5 Player Multi-DRM Integration GuideEME integration guide for Widevine/PlayReady DASH CENC plus FairPlay specifics (certificateURL, prepareContentId, prepareCertificate), incl…
- FairPlay Streaming Overview (Apple)Apple's architecture document for FairPlay Streaming covering the SPC/CKC exchange and Key Security Module responsibilities for license ser…
- RPM Fusion ffmpeg.spec — Distro Packaging ReferenceComplete RPM spec file for FFmpeg showing every --enable-* flag, codec dependency and subpackage split used by RPM Fusion.
- OpenAPV: Open Collaborative Innovation in the Professional Video Ecosystem (ACM MM'25)ACM Multimedia 2025 paper introducing OpenAPV and the design rationale for an open professional mezzanine codec, with companion open source…
- Xiph.Org Test Media on AWS Open Data RegistryS3-hosted mirror of the Xiph test media collection, enabling fast bulk retrieval of uncompressed reference sequences.
- JVET VVC Trac — Conformance Bitstream TrackerJVET issue tracker for VVC conformance, with pointers to VTM reference software and the official conformance bitstream sets.
- Axinom key-rotation-implementationReference implementation of live DRM key rotation with token-based license delivery, CPIX over API Gateway/Lambda and a DynamoDB KID store.