Hawkynt.FileFormats.Video 1.0.0.223

dotnet add package Hawkynt.FileFormats.Video --version 1.0.0.223
                    
NuGet\Install-Package Hawkynt.FileFormats.Video -Version 1.0.0.223
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hawkynt.FileFormats.Video" Version="1.0.0.223" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hawkynt.FileFormats.Video" Version="1.0.0.223" />
                    
Directory.Packages.props
<PackageReference Include="Hawkynt.FileFormats.Video" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hawkynt.FileFormats.Video --version 1.0.0.223
                    
#r "nuget: Hawkynt.FileFormats.Video, 1.0.0.223"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hawkynt.FileFormats.Video@1.0.0.223
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hawkynt.FileFormats.Video&version=1.0.0.223
                    
Install as a Cake Addin
#tool nuget:?package=Hawkynt.FileFormats.Video&version=1.0.0.223
                    
Install as a Cake Tool

Hawkynt.FileFormats.Video

NuGet CI License Target

Pure-C# video handling, with demuxing, decoding, encoding and muxing kept as separate contracts so packet-level remuxing never has to become a decode/re-encode by accident. The package claims the WHOLE domain β€” every video container and codec, not a selection of it. Where one is missing or only partly supported that is a tracked gap, and every gap is in Format / codec support below: what is read, what is written, and what is not decoded at all with the reason for each.

πŸ“¦ Installation

dotnet add package Hawkynt.FileFormats.Video

Decoded frames use FileFormat.Core.RawImage, the same representation exposed by Hawkynt.FileFormats.Images.

✨ Features

  • Separate container and codec contracts: demux, decode, encode, and mux are different responsibilities.
  • Lazy packet/frame access rather than materializing an entire movie in memory.
  • Shared RawImage output for decoded frames, enabling the existing image conversion/processing pipeline.
  • Container readers and writers for modern, legacy, game, and streaming formats.
  • Pure-C# decoders for a broad codec set including MPEG families, VPx, Theora, FFV1, ProRes, DNx, CineForm, classic QuickTime/Windows codecs, screen codecs, and game-video codecs.
  • Registry-based container/codec dispatch instead of container-specific decoder plumbing in callers, with decoders and encoders in separate tables so a caller asking what can be written is not told what can be read.
  • Packet boundaries are reconstructed according to each container's indexing/lacing/PES rules rather than guessed from byte patterns.
  • Packet-level remuxing preserves coded bytes and refuses source representations whose required container state cannot be reproduced honestly.

🧩 Format / codec support

Complete, and kept complete by a test rather than by care. Every container the package registers has a row in the first table, every codec has a row in the second, and every codec investigated and left undecoded has a row in the third. The first two are re-derived from the compile-time registry by VideoReadmeStateTests, which fails the build on any disagreement β€” a container without a row, a row for a codec nothing registers, an Encode tick with no encoder behind it β€” so a heading that says "support" cannot quietly come to mean "some of it". How each codec was measured is in codec-notes.md; what stopped the undecoded ones, at bitstream level, is in codec-investigations.md.

Container support

Container / stream format VideoFormat Extensions Demux Mux Oracle Reference
Advanced Systems Format (ASF) Asf .asf, .wmv, .wma, .wm, .wmx, .asx βœ… βœ… none Microsoft ASF overview
AVI Avi .avi βœ… βœ… ffmpeg Microsoft AVI RIFF reference
Flash Video Flv .flv, .f4v βœ… βœ… ffmpeg FLV format description
ISO Base Media / MP4 / QuickTime Mp4 .mp4, .m4v, .mov, .qt, .3gp, .3g2, .m4a βœ… βœ… ffmpeg MP4RA / Apple QuickTime File Format
Matroska / WebM Matroska .mkv, .mka, .mks, .mk3d, .webm βœ… βœ… ffmpeg Matroska elements / WebM container
IVF Ivf .ivf βœ… βœ… none MultimediaWiki IVF
H.264 Annex B byte stream H264Video .264, .h264, .avc, .x264 βœ… βœ… none ITU-T H.264
H.265 / HEVC Annex B byte stream H265Video .265, .h265, .hevc, .x265 βœ… βœ… none ITU-T H.265
H.263 elementary byte stream H263Video .263, .h263 βœ… βœ… none ITU-T H.263
AV1 low-overhead OBU byte stream Av1Video .obu βœ… βœ… none AV1 Bitstream & Decoding Process
MPEG Program Stream MpegProgramStream .mpg, .mpeg, .vob, .m2p, .m2ps βœ… βœ… none MPEG-2 Systems
MPEG Transport Stream TransportStream .ts, .m2ts, .mts, .m2t, .tsv βœ… βœ… none MPEG-2 Systems
Motion JPEG stream Mjpeg .mjpg, .mjpeg βœ… βœ… ffmpeg JPEG / ITU-T T.81
MPEG elementary video stream MpegVideo .m1v, .m2v, .mpv, .mpeg1video, .mpeg2video, .m1v1, .m2v1 βœ… βœ… none MPEG-1 Video / MPEG-2 Video
YUV4MPEG2 Yuv4Mpeg .y4m βœ… βœ… ffmpeg MultimediaWiki YUV4MPEG2
Ogg Ogg .ogg, .ogv, .oga, .ogx, .opus, .spx βœ… βœ… none RFC 3533
RealMedia RealMedia .rm, .rmvb, .ra, .rmj, .rms βœ… βœ… none MultimediaWiki RealMedia
Autodesk FLIC Fli .fli, .flc, .flx, .flh, .flt βœ… βœ… none MultimediaWiki FLIC
id RoQ Roq .roq βœ… βœ… ffmpeg MultimediaWiki RoQ
Interplay MVE Mve .mve βœ… βœ… ffmpeg MultimediaWiki MVE
id Cinematic Idcin .cin βœ… βœ… none MultimediaWiki CIN
Westwood VQA Vqa .vqa βœ… βœ… none MultimediaWiki VQA
Smacker Smacker .smk βœ… βœ… none RAD Game Tools
Electronic Arts Multimedia Ea .wve, .cmv, .tgv, .uv, .uv2 βœ… βœ… none MultimediaWiki EA formats
BFI Bfi .bfi βœ… βœ… none MultimediaWiki BFI
Commodore CDXL Cdxl .cdxl βœ… βœ… none MultimediaWiki CDXL
IFF ANIM Anim .anim, .iff βœ… βœ… none Amiga ANIM IFF
Sierra VMD Vmd .vmd βœ… βœ… none MultimediaWiki VMD
PlayStation STR Str .str βœ… βœ… none MultimediaWiki STR
ARMovie/RPL Rpl .rpl βœ… βœ… none MultimediaWiki ARMovie

Oracle names the program outside this repository that has read a file this container's muxer wrote β€” ffmpeg throughout. none means nothing but this package's own demuxer has ever opened one, which for most of the containers here is the answer: a muxer and a demuxer written from the same reading of a format will agree with each other whether or not that reading is right, and a file only the writer's own reader can open is not interchange. The claim is declared by [VerifiedBy] on the writer type, carried into VideoFormatEntry.VerifiedBy by the registry generator, and held to what it says by EncoderOracleTests, which writes a clip into the container and requires the named tool to decode a frame of it back at the size that went in.

Codec support

Every codec the package registers has a row, and the name in the first column is the codec's own CodecName β€” the same string a refusal message names it by. Decode is what VideoFormatRegistry.CreateDecoder builds, 105 of them; Encode is what VideoFormatRegistry.CreateEncoder builds, 86 of them. The two are separate tables in the registry because they are looked up by different things: a decoder by a whole stream description, an encoder by the four-character code a caller wants written.

⚠️ means the decoder refuses something the format itself defines β€” a profile, depth, variant or mode a conforming encoder may write β€” and the Notes column says which. βœ… means every layout the format defines is decoded; such a codec still refuses malformed input, undefined field values and forms no encoder produces, because a plausible wrong picture is worse than a refusal. No codec silently misdecodes what it will not read. An Encode tick is a lossless or format-faithful writer. Where the codec has a lossless form the encoder writes it and refuses by name any picture it would have to reduce to fit; where the format itself is lossy β€” Motion JPEG, Microsoft Video 1, Cinepak, DV, Microsoft's MPEG-4, ASUS V1 and V2, Apple Video, Apple Motion JPEG-B, GoPro CineForm, Intel Indeo 2, RealVideo 1, H.261, H.263, H.265, MPEG-1 video, MPEG-2 video, MPEG-4 Part 2, On2 VP3, Theora, Hap, Apple ProRes, id RoQ, Intel Indeo 4, Escape 124 β€” the row says so, because there is nothing else such an encoder could write. Codec-by-codec provenance and measurement notes are in codec-notes.md.

Codec Decode Encode Oracle Implemented scope / note Reference
Motion JPEG βœ… βœ… ffmpeg MJPG, jpeg, V_MJPEG; each packet one whole JPEG. The encoder writes baseline JPEG through the image package's own writer, every packet a key frame ITU-T T.81
Apple Motion JPEG-B βœ… βœ… ffmpeg mjpb; baseline JPEG behind a 48-byte field header, one or two fields a packet. The header layout is recovered by measurement, not published. The encoder writes one field a sample with its tables inline, every offset the QuickTime description requires aligned to sixteen bytes, and entropy data without JPEG's byte stuffing. The JPEG coding itself is the image package's baseline writer, so the loss is baseline JPEG's and nothing is added on top of it MultimediaWiki MJPEG
Avid AVRn βœ… βœ… ffmpeg AVRn; overloaded by history β€” without Avid's 1:1 codec marker it is Motion JPEG, with it the uncompressed Resolution 1:1 path, and the container's picture size is trusted over the JPEG frame header's. The encoder writes Resolution 1:1: packed UYVY 4:2:2 with no prediction, transform or entropy coding, so a 4:2:2 picture round-trips sample-exactly ITU-T T.81
MPEG-1 video (ISO/IEC 11172-2) ⚠️ βœ… ffmpeg I, P and B pictures. D pictures (2.4.2.8) refused by name. The encoder writes I, P and B pictures in groups of twelve as I B B P B B P B B P B B I, choosing per macroblock in a P picture between a forward prediction on a searched whole-pixel vector and not coding the macroblock at all, and per macroblock in a B picture between the previous anchor, the following anchor and the rounded average of both; vectors are coded with forward_f_code 2, so motion reaches thirty-two pixels rather than the sixteen an f_code of one would cap it at. Each prediction is made against the picture a decoder driven by this encoder's own output holds, not against the source, so nothing drifts along a group. B pictures are coded after the anchor that follows them, so a packet may belong to an earlier picture than the one just handed in; presentation timestamps stay with their pictures. Lossy by construction, because MPEG-1 is β€” every block goes through the transform and a quantiser and the standard has no lossless form ISO/IEC 11172-2
MPEG-2 video (ISO/IEC 13818-2) ⚠️ βœ… ffmpeg Frame and field pictures at 4:2:0, 4:2:2 and the 4:4:4 syntax H.262 defines but Annex D.2 assigns to no profile, including field DCT, field and 16x8 motion compensation and dual-prime prediction. The three scalability extensions refused by name. The encoder writes progressive 8-bit 4:2:0 Main Profile @ Main Level I, P and B pictures in groups of twelve, one slice per macroblock row, two B pictures between anchors. Each anchor is emitted before the pictures that display in front of it, so the bitstream itself is in decode order while presentation timestamps stay attached to their pictures; the two pictures before a key frame are written as P rather than B, so every packet marked as a key frame is a random-access point that needs nothing from the group before it. P macroblocks choose between a forward prediction on a searched vector and not coding the macroblock at all; B macroblocks choose per macroblock between forward, backward and interpolated prediction on vectors searched against both anchors, and repeat the previous macroblock where nothing moved and nothing was left over. Vectors are whole-pixel in luminance and so land between chrominance samples half the time, where the prediction is formed by the decoder's own interpolation rather than rounded to the nearer sample. It refuses geometry and rates outside the level it declares rather than mislabelling them ITU-T H.262
MPEG-4 Part 2 video (ISO/IEC 14496-2) ⚠️ βœ… ffmpeg Rectangular, progressive, 8-bit 4:2:0 I/P/B. Quarter-sample vectors, sprites/GMC, interlace, OBMC, data partitioning, scalability, shape coding, newpred, reduced resolution and the complexity-estimation header each refused where signalled. The encoder writes Advanced Simple I/P/B streams at quantiser 8, an I-VOP every twelve displayed pictures with two B-VOPs between anchors. P-VOPs carry a searched vector or nothing at all; B-VOPs choose forward, backward or interpolated prediction on vectors searched against both anchors, and a macroblock the following anchor did not code is not carried at all. Every packet repeats its VOL, so VFW-style containers need no out-of-band configuration. MPEG-4 Part 2 has no lossless mode in this coding path ISO/IEC 14496-2
H.261 (ITU-T H.261) ⚠️ βœ… ffmpeg QCIF and CIF, clauses 3 and 4 entire, in-loop filter included. Annex D still-image transmission refused. The encoder writes those same two formats and refuses every other picture size by name β€” clause 3.1 defines two and one bit of PTYPE names which, so there is no syntax here for a third β€” coding an intra picture every twelfth frame, marking it with Freeze Picture Release (PTYPE bit 3), which is the only entry point a format with no picture-level intra/inter flag can state and the flag every decoder reports a key frame from, and choosing per macroblock between an intra coding, a prediction with or without a searched whole-pixel vector, either of those with the loop filter of clause 3.2.3, and not transmitting the macroblock at all. It never states MQUANT: one quantiser per group of blocks, held across the picture. Lossy by construction, because H.261 is β€” every coded block goes through the transform and a five-bit quantiser and the Recommendation has no lossless form at all ITU-T H.261
H.263 / H.263+ (Annex O temporal B-pictures, Sorenson Spark) ⚠️ βœ… ffmpeg Baseline (clauses 5-6), Sorenson Spark, and the self-contained UFEP=001 shape of the H.263+ extended picture header, which carries custom picture formats and Annex O temporal B-pictures. A custom size that is not a whole number of macroblocks is coded as the next complete macroblock grid and cropped for display, because a later vector may point into those rows. All five Table O.1 prediction types are decoded β€” direct, forward, backward, bidirectional and intra β€” with Annex O's separate forward and backward vector predictor fields, direct mode scaling the co-located vector of the temporally subsequent anchor across a temporal-reference wraparound. Refused where signalled rather than decoded as baseline syntax, each by name: UFEP=000, the custom picture clock, Improved PB-frames, Annex O's EI/EP scalability, and annexes C, D, E, F, G, I, J, K, N, P, Q, R, S and T. The encoder writes the five standard Table 5 formats and H.263+ custom formats in groups of twelve at picture quantiser 8, choosing per macroblock between a forward prediction on a searched vector and not transmitting the macroblock at all; vectors are coded against 6.1.1's median of three neighbours. Annex O B-pictures are written when a count between references is asked for before the first picture, the future anchor going out ahead of the pictures that display before it; every B macroblock it writes is an explicit bidirectional one with zero transmitted vectors, so direct mode and non-zero B vectors are read and not written. Clause O.4 averages the two predictions by truncation and ffmpeg rounds, which is one level on roughly two thousand samples of a bidirectional picture and nothing anywhere else β€” the Recommendation is followed and the difference is recorded in codec-notes.md. Lossy by construction, because H.263 is ITU-T H.263
H.264/AVC (ITU-T H.264 | ISO/IEC 14496-10) ⚠️ βœ… ffmpeg Progressive 8-bit 4:2:0; CAVLC and CABAC I/P/B slices, High-profile 8x8 transform and scaling lists, long-term references, weighted and direct prediction. 4:2:2/4:4:4, depths above 8 bits, interlace/MBAFF, FMO, data partitioning, SVC/MVC and lossless bypass refused. The encoder writes Baseline-profile IDR pictures made of I_PCM macroblocks, so every coded sample is carried verbatim and a 4:2:0 source round-trips sample for sample; the only loss a non-YUV source incurs is the conversion to 4:2:0. It writes no predicted slices: those need the CAVLC and CABAC residual syntax in the write direction, and the entropy coders here decode only ITU-T H.264
H.265/HEVC (ITU-T H.265 | ISO/IEC 23008-2) ⚠️ βœ… ffmpeg Main profile, 8-bit 4:2:0; intra and inter slices, reference management, CABAC, weighted prediction, scaling lists, deblocking, SAO, tiles and dependent slices. The writer opens each group of twelve with a Main-profile IDR picture made from 32x32 PCM coding units β€” stored exactly, so the only loss there is the 4:2:0 conversion RGB input goes through β€” and codes the rest as P and B pictures in the order I P B B P B B: 32x32 and 16x16 inter coding units chosen by a rate-distortion search, square and half prediction units within them, quarter-sample motion searched against every active reference, up to two past references plus the future anchor with ref_idx_l0/ref_idx_l1 naming which, merge and skip where the candidate already names the motion found, explicit vectors against the advanced predictor where it does not, a choice per block between the past anchor, the future anchor and the average of the two, and a quantised transform residual. Pictures are coded out of display order and carry their own count, so a decoder reorders them. VPS/SPS/PPS travel in HEVCDecoderConfigurationRecord private data with length-prefixed samples. What it does not do is asymmetric motion partitions, quartered prediction units, or trial-encoding candidates through a cloned CABAC state β€” each costs compression, none costs conformance. The decoder handles that uniform PCM shape, arbitrary PCM coding units in its general slice path, and the rest of that path; the format range extensions, screen-content coding, multilayer/3D and separate colour planes are refused. Every picture the writer emits is required to come back out of ffmpeg sample for sample, which is the only check that can see a derivation encoder and decoder share being wrong in the same way ITU-T H.265
VC-1 / Windows Media Video 9 (SMPTE 421M, progressive Simple/Main profile) ⚠️ βœ… ffmpeg WMV3, progressive Simple and Main profile: intra, predicted, bidirectional and skipped pictures, with the sequence header read from container private data. Advanced profile (WVC1, WMVA), MULTIRES, RANGERED and LOOPFILTER are each refused by name. The encoder writes I, P and direct B pictures, buffering one B picture between anchors so the anchor is coded before the picture that displays ahead of it; the predicted pictures carry real P and B syntax with zero motion-vector differentials and transformed residuals rather than a motion search. Lossy by construction, and measurably so at the direct-current step 8.1.1.1 fixes for a given quantiser SMPTE ST 421
Microsoft MPEG-4 versions 1 to 3 video (MPG4/MP42/MP43) ⚠️ βœ… ffmpeg All three variants, intra and predicted pictures: version 1 (MPG4, MP41, DIV1), version 2 (MP42, DIV2) and version 3 (MP43, DIV3-DIV6, DVX3, AP41, AP42, COL0, COL1, MPG3, and Matroska's V_MPEG4/MS/V3). Windows Media Video 7 and 8 (WMV1, WMV2) are accepted by the registry and then refused by name. The encoder writes any of the three, one slice a picture, one motion vector a macroblock and no alternating current prediction; the registry routes MP43 to it DIVX3/MS-MPEG4 v1-v3
RealVideo 1 (RV10/RV13) ⚠️ βœ… ffmpeg RV10, RV13 at bitstream revision 0; H.263 macroblock layer under RealVideo's own slice header. PB-frames refused. RealVideo 2/3/4 are not claimed at all, so they reach the registry's own "no codec decodes this" refusal. The encoder writes RV10 revision-zero intra and predicted pictures in groups of twelve, one run covering the whole picture, over the same H.263 macroblock layer the decoder hands its pictures to β€” so the median vector predictor, the complemented CBPY of an inter macroblock and the COD rule are stated once and serve both directions. Lossy by construction: every coded block goes through the transform and a quantiser ITU-T H.263
On2 VP3 βœ… βœ… ffmpeg VP3.1 (VP31, VP32) entire, and VP30, whose key frames carry sixteen fewer header bits and are normalised into the VP3.1 shape rather than read by a second decoder. The encoder writes VP3.1 intra and inter frames in groups of twelve, choosing per macro block between a searched whole-sample vector, no displacement, and -- a whole super block at a time -- not coding the blocks at all. Modes and vectors are written in the literal forms the format offers, and the golden frame is never referenced. Lossy by construction: every coded block goes through the transform and a quantiser, and VP3 has no lossless form Theora specification, Appendix B
On2 VP5 βœ… β€” β€” VP50 entire: intra and predicted pictures, all ten macroblock modes over the previous and the golden reference, one motion vector or four, half-sample luminance and quarter-sample chrominance prediction with the edge filter that goes with it, direct-current prediction from up to four neighbours, and interlaced field-coded macroblocks. No encoder: nothing outside On2 writes VP5 β€” ffmpeg has a decoder and no encoder for it β€” so there is nothing to measure one against MultimediaWiki On2 VP5
VP8 (RFC 6386) βœ… βœ… ffmpeg RFC 6386 entire. Reserved bitstream versions and the reserved colour-space/clamping fields refused. The encoder writes key frames only, which RFC 6386 permits a whole stream to be, through the image package's VP8 writer β€” inter frames would need a second prediction and entropy encoder beside that one, and the row says so rather than the tick implying otherwise. Lossy by construction: every block goes through the transform and a quantiser RFC 6386
VP9 (profiles 0-3) βœ… βœ… ffmpeg Profiles 0-3: 8-, 10- and 12-bit, 4:2:0 and the non-4:2:0 layouts, and the full-range sRGB/GBR representation WebM VP9
Theora (Xiph.Org Theora I) βœ… βœ… ffmpeg Xiph.Org Theora I, all three pixel formats. Bitstream versions other than 3.2, the reserved pixel format and set reserved bits refused. The encoder writes 4:4:4 all-intra pictures with canonical Xiph headers, one constant quantisation matrix and raster-order DC prediction, and represents every 8x8 block by its DC coefficient alone: ordinary Theora I syntax, deliberately coarse, and lossy by construction. Its header declares the one base matrix twice, because the field a quant range names a matrix with is no field at all at one matrix by the specification and one bit by FFmpeg's reader, and only from two upwards do the two agree Theora specification
FFV1 (RFC 9043) ⚠️ βœ… ffmpeg Versions 0, 1 and 3, both entropy coders, slices and checksums; 8-bit samples only. Version 2 and deeper samplings refused. The encoder writes version 3 with the range coder, the small context model, a slice checksum on every slice and every frame a key frame β€” what ffmpeg -c:v ffv1 -level 3 -coder 1 -context 0 -slicecrc 1 -g 1 writes RFC 9043
Apple ProRes ⚠️ βœ… ffmpeg apco, apcs, apcn, apch at 4:2:2 and ap4h, ap4x at 4:4:4; bitstream versions 0 and 1. Reserved chroma formats, reserved interlace mode and reserved alpha types refused. Two deviations of ffmpeg's own ProRes 4444 output are read rather than refused, because refusing them means refusing years of real files: a bitstream version of 0 on a frame stating 4:4:4 or alpha, which 6.4 fixes at 4:2:2 and no alpha; and an alpha slice whose coded data stop one sample short, which ffmpeg's own decoder also reads through by taking zeroes past the end. Both are recorded rather than silently absorbed, and a slice that stops far short is still refused. Samples are clamped to RDD 36's permissible video levels, which scale with the depth, so a 4:4:4 picture differs from ffmpeg by up to twelve levels at the two extremes of the range β€” ffmpeg holds its lower clamp at 4 at both depths β€” and by no more than one anywhere else. The encoder writes all six profiles: the four 4:2:2 ones at ten bits and bitstream version 0, ap4h and ap4x at twelve-bit 4:4:4 and version 1. Each writes its own quantisation weight matrices and one quantisation index a picture, bisected to meet the profile's published data rate. A 4444 stream whose sample description states 32 bits carries the frame's matte losslessly, at eight or sixteen bits according to the source; 24 writes colour only. A QuickTime fiel child of 0x0201 or 0x0206 writes two field pictures in that order with RDD 36's interlaced coefficient scan; 0x0209 and 0x020E, whose coded and displayed orders disagree, are refused because the frame header has no second flag with which to preserve the distinction. There are no P or B pictures to write: ProRes has neither. ProRes quantises transform coefficients, so colour is lossy by construction and only a picture already on the quantiser's own grid comes back exactly; alpha passes through no transform and no quantiser and is exact. ffmpeg decoded all 24 streams written here without a warning, agreeing with this package's decode of them to within one coded level and reproducing every alpha sample exactly; a further 12 frames go the other way, written by ffmpeg across every profile, both field orders and all three alpha types, and read back here to within one level of ffmpeg's own decode Apple ProRes white paper
DV (IEC 61834 / SMPTE 314M / SMPTE 370M) ⚠️ βœ… ffmpeg dvsd, dv25, dv50, dvsl, cdvc, CDV5, dvis, pdvc, SL25, SLDV, the DVCPRO HD codes (dvhd, dvh1-dvh6, dvhq, dvhp, CDVH) and QuickTime's nine spellings (dvc , dvcp, dvcs, dvl , dvlp, dvpp, dv5n, dv5p, AVdv); the six standard-definition profiles β€” 525/60 and 625/50 at 25 Mbit in 4:1:1 and 4:2:0, and DVCPRO50 at 4:2:2 β€” with both transform modes, and SMPTE 370M DVCPRO HD at 1280x1080, 1440x1080 and 960x720. The profile comes from the frame, never from the tag. Every packet is intra coded, so every packet is a key frame. The encoder writes those profiles, the picture's own colour sampling choosing between them β€” 4:2:2 planar asks for DVCPRO50 β€” and the raster choosing the recording rate, except 960x720, where SMPTE 370M defines two and the caller must state which. It is lossy because DV is: a frame is a fixed length whatever is in it, so a picture that will not fit is quantised until it does. Handed the same planes it writes byte for byte what ffmpeg's own DV encoder writes SMPTE 314M
Avid DNxHD / DNxHR (SMPTE VC-3) ⚠️ βœ… none SMPTE VC-3 header versions 1-3, 4:2:2 and 4:4:4, progressive and interlaced, and compression ID 1256 RGB. 4:2:0, alpha-bearing compression IDs and DNxHR RGB (1270) refused. The encoder writes the fixed-raster progressive eight-bit 4:2:2 HD profiles, every frame a key frame SMPTE VC-3 overview
GoPro CineForm ⚠️ βœ… ffmpeg SMPTE VC-5 layouts named by EncodedFormat: 10-bit 4:2:2 YUV, 12-bit RGB 4:4:4, 12-bit RGBA 4:4:4:4 with the format's alpha companding, and 12-bit Bayer RAW. YUV reads and writes both progressive and legacy interlaced samples, in either field order. Bayer stays raw: its four decorrelated half-resolution components become an RGGB Cfa16 sensor mosaic rather than an invented demosaic, and non-RGGB phases are refused because the phase lives in CineForm's BFMT metadata rather than in the packet. Transform types 1 and 2 β€” the separate 14/17-subband field/field-plus organizations β€” and channel counts outside three or four are refused by name. The encoder writes I-frames of three spatial 2/6 wavelet levels, one raw sixteen-bit lowpass and Annex-C codebook highpasses, sharing its transform, companding and codebook with the decoder so the two directions cannot drift apart. CineForm is intra-only in this path, so every picture is one whole packet. Legacy stereo/multicam packets are read and written through a codec-specific multi-view API rather than the single-picture one, since several simultaneous views cannot be returned as one raster: each view stays a complete ordinary CFHD sample carrying tags 92-94, and ffmpeg β€” which has no CineForm 3-D support of its own β€” decodes each one individually. Lossy by construction: the wavelet coefficients are quantised and the format has no lossless form in these layouts LOC CineForm overview
Hap ⚠️ βœ… ffmpeg, Vidvox Hap + bcdec Hap1, Hap5, HapY, HapM, HapA, Hap7, HapH. Unknown texture formats, second-stage compressors, and image combinations Hap does not define are refused. The encoder writes all seven variants: BC1, BC3, Scaled YCoCg, Scaled YCoCg + BC4 alpha, BC4 alpha-only, BC7, and BC6H; HapH selects unsigned or signed BC6H from the finite input samples. Frames may be emitted as one texture section or as equal block-aligned chunks, with each chunk independently stored raw or Snappy-compressed. Hap is intra-only, so every packet is a key frame with no forward/backward reference state. DXT/BC texture coding is lossy except where its quantised endpoint/index representation states the source samples exactly. ffmpeg is the independent reader for every texture it can reach and agrees sample for sample on all of them: Hap1, Hap5, HapY and HapA directly, and HapM through its two nested images, which each carry their own section header and so stand alone as a Hap Q frame and a Hap Alpha-Only frame that ffmpeg does read. Those comparisons are made on four-chunk frames, so the decode instructions, the per-chunk compressor table and the Snappy payloads are all on the path being checked. ffmpeg maps neither the Hap7 nor the HapH FourCC to a decoder, so Vidvox HapDecode plus bcdec independently validate the Hap R BC7 and signed/unsigned Hap HDR BC6H output instead Vidvox Hap HapVideoDRAFT.md
Matrox Uncompressed SD βœ… β€” β€” M101; 8- and 10-bit 4:2:2 read from the 24-byte Matrox AVI trailer. Odd widths and other sample depths refused. Adapted from FFmpeg's LGPL-2.1-or-later decoder. No neutral overview of this format is published FFmpeg m101.c
Avid 1:1 10-bit RGB Packer (avrp) βœ… βœ… ffmpeg AVrp; little-endian 10-bit RGB word, rows padded to 64-pixel blocks. Word and padding recovered by measurement β€” nothing about this layout is published. The encoder writes the same words and the same block padding, byte for byte what ffmpeg's own avrp encoder writes β€”
Avid Meridien Uncompressed ⚠️ βœ… ffmpeg AVUI; UYVY 4:2:2 in one field or two behind a fixed run of blank lines, and the inverted-alpha companion a depth-32 sample carries behind that. The APRG atom of the sample description says which field mode a stream is in; with no APRG the reference decoder's interlaced default applies, and 486-line NTSC stores its odd field first where 576-line PAL stores its even field first. Only 720x486 and 720x576 accepted, the two geometries the format's own encoder writes, and only 16- and 32-bit samples. The encoder writes that same layout, progressive unless the stream description carries an APRG marking interlace, and refuses a transparent picture at depth 16 where the format has nowhere to put alpha. Every picture is a key frame and the packing is lossless, so a picture already on its 4:2:2 grid comes back exactly. Measured against ffmpeg 9.0.1: this encoder writes byte for byte what ffmpeg's own avui encoder writes at both geometries in both field modes, and ffmpeg's decoder reads all 1,529,280 alpha samples of the four depth-32 cases back exactly as they went in MultimediaWiki AVUI
Avid Meridien Compressed ⚠️ βœ… ffmpeg AVDJ; Avid JFIF, which is baseline Motion JPEG with two layout rules the JPEG itself does not carry. A packet whose coded picture is under three quarters of the stated frame height is two complete JPEG field pictures back to back and is woven into one frame, padding between them skipped; anything taller is one whole picture. A coded picture taller than the container’s geometry is Avid macroblock padding above the image, so the bottom rows and left columns are what the display keeps, and a container claiming more than its packet codes is refused rather than filled in. Which output rows the first coded field belongs on comes from QuickTime’s fiel extension, else the Video-for-Windows Avid discriminator (1 NTSC, 2 PAL) alone or behind a BITMAPINFOHEADER, else the two D1 rasters whose order Avid fixes β€” 486-line NTSC stores its lower field first, 576-line PAL its upper; a two-field packet at any other geometry with nothing saying which way round is refused rather than guessed. Deliberately not claimed: the alpha-bearing Meridien variant, which no public bitstream description defines β€” neither a second JPEG nor a four-component JPEG is reinterpreted as alpha on read, and a picture carrying non-opaque alpha is refused on write rather than flattened. The encoder writes baseline 4:2:2 JPEG at one fixed quality, 720x486 and 720x576 as two fields per packet in temporal order with a fiel of BB and TT respectively, every other geometry progressive; interlace follows the geometry because a stream description carries no field order to ask. Only the progressive case claims the Matroska V_MJPEG identity, a two-field packet under which would read back as its first field alone. Every packet is a key frame and JPEG is lossy, so nothing round-trips exactly. Measured against ffmpeg 8.1.2: three five-frame clips written here β€” 720x486, 720x576 and a progressive 320x240 β€” decoded without a message, every frame compared against the picture that went in, mean absolute error 1.1 interlaced and 1.9 progressive, where writing the display-only fiel forms instead measures 134 MultimediaWiki Motion JPEG
Microsoft Video 1 βœ… βœ… ffmpeg CRAM, MSVC, WHAM at 8-bit palettised and 16-bit 5-5-5. Other depths, and pictures that are not a whole number of 4x4 blocks, refused. The encoder writes MSVC at both depths, choosing per block between one colour, two, eight and a skip run; the coding is lossy by construction β€” two colours to a block β€” so only a picture the format can hold exactly comes back exactly MultimediaWiki
Microsoft RLE βœ… βœ… ffmpeg MRLE, BI_RLE8, BI_RLE4; 4- and 8-bit bottom-up frames with delta and skip escapes. Top-down heights and other depths refused. The encoder writes 4- and 8-bit palettised frames from indexed pictures only, using the delta escapes for what did not change; a picture that is not palettised is refused rather than quantised MultimediaWiki Microsoft RLE
Cinepak βœ… βœ… ffmpeg cvid, CVID; QuickTime and AVI alike. Strips that are not a whole number of 4x4 blocks, unknown chunk types and mid-stream size changes refused. The encoder writes cvid, pricing each strip's blocks between one codebook entry, four and a skip; the coding is lossy by construction β€” four luminances and one chrominance pair to sixteen pixels β€” and its colour space can state only 2669700 of the 16777216 colours exactly, all 256 greys and all eight corners of the colour cube among them MultimediaWiki Cinepak
Duck TrueMotion 2 ⚠️ βœ… ffmpeg TM20; seven Huffman-coded token streams over 4x4 luminance and 2x2 chrominance blocks, with still, update and motion blocks predicted from the picture before. Both header magics are read. Geometry that does not divide by four is refused rather than padded. The encoder writes high-resolution key frames every twelfth picture and still/update blocks between them; motion blocks are a compression choice it leaves to the decoder. Adapted from FFmpeg's LGPL-2.1-or-later decoder, which is also the oracle, as FFmpeg has no TrueMotion 2 encoder MultimediaWiki TrueMotion 2
Intel Indeo 2 βœ… βœ… ffmpeg RT21; Huffman-coded sample pairs against one of four delta tables, intra frames predicting from the line above and inter frames from the frame before. The picture's width must divide by eight and its height by four, which is what coding pairs into quarter-size chrominance planes means. The encoder writes both, in groups of twelve, trying every delta table and keeping the least-error result; an inter frame predicts from the encoder's own reconstruction, and a pair the previous frame already states well enough is skipped. Lossy by construction: every pair is quantised to one of the table's entries and the format has no lossless form MultimediaWiki Indeo 2
Intel Indeo 3 ⚠️ βœ… ffmpeg IV31, IV32; a binary tree cutting each plane into cells, motion compensation, and vector quantisation over 4x4 to 8x8 blocks. Eight-bit samples and half-sample motion vectors are flagged in a frame header and refused β€” no encoder is known to have written either β€” as is the "skip cell" null code, whose effect on the two frame buffers is stated nowhere MultimediaWiki Indeo 3
Intel Indeo Video Interactive 4 ⚠️ βœ… ffmpeg IV41; picture and band headers, the wavelet subdivision into one band or four, tiling, the slant and Haar transforms in two dimensions and in each one alone at both block sizes, the band that stores its samples untransformed, the fifteen scan patterns a band header may select by index, its nine eight-by-eight dequantisation matrices and its five four-by-four ones, run-value coded coefficients with the nine built-in maps and the per-band permutations of them, the sixteen built-in codebooks and the custom ones a stream spells out, whole- and half-sample motion compensation, bidirectional frames including the second frame Indeo 4 packs into the first one's packet, and the Haar recomposition of a scalable picture. Refused by name: the five of the format's eighteen transforms Intel specified and never shipped β€” the four discrete cosine transforms and the four-by-four pass-through β€” a band spelling out a scan pattern or a dequantisation matrix of its own, and a chrominance subsampling other than YVU9. The encoder writes YVU9 I/P/B prediction with one band per plane, 256-sample luma tiles, direct 8x8 luminance and 4x4 Haar chrominance, quantiser zero and custom fixed six-bit codebooks. Display-order triples use IV4's native packed-reference transport: the future P picture is encoded against the reconstructed past anchor and packed behind the preceding I picture, the intervening B picture predicts from both reconstructed anchors, and a null-last packet releases the deferred future picture in display order; a short tail flushes as ordinary I/P. P and B macroblocks search non-zero whole- and half-sample motion within the padded band buffers, B macroblocks choose forward, backward or averaged prediction by squared error, and zero-residual zero-motion forward blocks use the repeat-reference shorthand. Anchors are reconstructed through the decoder before reuse so prediction follows decoder state rather than source pixels. A block that holds nothing but the running DC prediction goes into the coded-block pattern as uncoded, because a coded block opening on its end-of-block symbol is block data out of step with the bitstream rather than an empty block. RGB round trips are lossy because IV41 subsamples chrominance 4:1:0. Measured against ffmpeg 9.0.1 on five decoder clips from samples.ffmpeg.org: 17,261 pictures, 1,910,624,004 samples of yuv410p, no difference on any plane of any frame FFmpeg indeo4.c
Intel Indeo Video Interactive 5 ⚠️ βœ… ffmpeg IV50; group, picture and band headers, the wavelet subdivision into one band or four, tiling, the slant transform in two dimensions and in each one alone, the band that stores its samples untransformed, the four-by-four chrominance transform, run-value coded coefficients with the nine built-in maps and the per-band permutations of them, the sixteen built-in codebooks and the custom ones a stream spells out, half-sample motion compensation, quantiser and motion-vector inheritance between bands, and the five-three recomposition of a scalable picture. Refused by name: a password-protected clip, whose frames are scrambled with a key the file does not carry; the YV12 picture format and four-by-four luminance blocks, both defined and neither ever written; and a band header carrying extended transform information. The encoder writes YVU9 intra and predicted pictures. Indeo 5 defines no B-picture, so none is invented; its three predicted forms are all written β€” the normal reference P-picture through the generic encoder contract, and the droppable and scalable-droppable ones through an IV50-specific overload, because nothing in the generic contract states whether a caller may discard a picture. A scalable stream splits luminance into four five-three bands, and the analysis that splits it is the algebraic inverse of the decoder's recomposition rather than the textbook five-three analysis, which that recomposition is not the synthesis half of: a scalable intra picture comes back within eight sample values of its source where the textbook pair loses seventy-eight. What that inverts is the operator this package decodes with, which is FFmpeg's, and that is a deliberate choice rather than a definition of correct β€” the recomposition filters its horizontal-detail band in a way no filter bank would be designed to, FFmpeg filters it the same way, and with Intel's own codec gone there is no third implementation left to settle whether it is a defect. Real scalable content decodes without error under either reading and the difference between them is a mild sharpening, so the measurement does not separate them. Lossy by construction, because Indeo 5 is β€” every band goes through a slant transform and a quantiser and the format has no lossless form. What the encoder writes is held to the same standard as what the decoder reads rather than to a frame count: ffmpeg decodes the muxed clip as yuv410p and every sample of every plane has to equal this package's own decoder's. Measured against ffmpeg 9.0.1 on fifteen clips from samples.ffmpeg.org: 5,516 pictures, 936,074,736 samples of yuv410p, no difference on any plane of any frame FFmpeg indeo5.c
QuickTime Animation (RLE) βœ… βœ… ffmpeg rle ; depths 1, 2, 4, 8, 16, 24 and 32, plus greyscale 33, 34, 36 and 40. A palettised stream with no colour table is refused rather than drawn through a guessed palette. The encoder writes 8-bit palettised, 24- and 32-bit frames, choosing each line's opcodes by the reference encoder's own dynamic programme. 16-bit is not written MultimediaWiki QuickTime RLE
Apple Video (RPZA) βœ… βœ… ffmpeg rpza in QuickTime, azpr in AVI; 15-bit RGB vector quantisation over 4x4 blocks. The encoder writes rpza, choosing per block between a run of skips, a run of one colour and a block stating all sixteen of its pixels; the four-colour opcode is read and never written β€” the reference encoder's own path for it never runs at its own thresholds, and forced it exchanges red and blue. Lossy by construction β€” 15-bit colour, and blocks β€” but bounded: no channel of any pixel comes back more than one level of 32 from the picture handed in, and nothing accumulates over a stream. Measured against ffmpeg, which has an rpza encoder as well as a decoder, in RGB555 rather than RGB so that no colour conversion sits between the two: this decoder agrees with ffmpeg's on all 108,728,920 pixels of the 21 RPZA streams published at samples.ffmpeg.org, this encoder writes byte for byte what ffmpeg's writes on all 3,830 of their frames and on 149 frames of 13 clips ffmpeg generated, and ffmpeg's decode of what it writes is identical to this package's on every pixel MultimediaWiki Apple RPZA
Apple Graphics (SMC) βœ… βœ… ffmpeg smc ; 8-bit palettised only. The colour table comes from the sample description, or from the QuickTime default where the stream names none; a stream naming a system colour resource by number is refused. The encoder writes the same eight-bit indices and is exact rather than lossy, because every block of a palettised picture is representable β€” one to eight colours by the shared-colour opcodes, more than eight by the sixteen raw indices β€” so a picture that is not Indexed8 is refused by name instead of being reduced to 256 colours, as are depth 40, a missing palette, and a palette or picture size that changes mid-stream. It resets the three colour caches with every packet and never names an entry that packet has not written, which is what makes its output read the same whether or not a decoder carries those caches between chunks β€” the one point on which the two readings of this format differ. 27 files it wrote, 394 frames, come back from ffmpeg's own SMC decoder with the index plane and the colour table identical; of 14 files ffmpeg's encoder wrote β€” 262 frames β€” this decoder agrees with ffmpeg's on 3 and differs on 11, in the carried-over caches and nowhere else MultimediaWiki Apple SMC
Apple Planar RGB (8BPS) ⚠️ βœ… ffmpeg 8BPS at 8-bit palettised, 24-bit RGB and 32-bit RGB with alpha. A named system colour resource is refused rather than substituted MultimediaWiki 8BPS
Autodesk Animator Codec βœ… βœ… ffmpeg AASC at 24 bits a pixel, bottom-up. Other depths and top-down heights refused MultimediaWiki AASC
FLIC ⚠️ βœ… ffmpeg FLIC; 8-bit palettised FLI/FLC, Autodesk/Ulead 15-bit RGB555 FLX, and AF44 DTA 15/16/24-bit RGB555/RGB565/BGR24 over a persistent previous-frame canvas. Standard type-7 SS2 obeys its two-bit line-opcode classes and uses word packets; AF44 type-27 DTA_LC instead treats any negative line word as a skip and counts packet skips/runs in pixels. Tempra FLX differs only in making type-7 packet skips byte counts and is not distinguished from Autodesk/Ulead AF12 by a reliable header marker. The lossless encoder writes SS2 deltas for indexed streams and DTA_LC deltas under AF44 for true colour, falling back to BRUN/DTA_BRUN whole pictures whenever they are smaller; unchanged pictures carry no image chunk. RGB555 input must already be exactly representable and is never silently quantised CompuPhase FLIC
Q-Team QPEG βœ… βœ… ffmpeg QPEG, Q1.0, Q1.1; palettised 8-bit bottom-up, with run-length, skip, fill-table and block motion coding. The encoder writes canonical QPEG from Indexed8 pictures, preserving the stream palette and choosing between complete frames and smaller no-motion deltas. It searches for no motion and references no fill table, so a moving picture costs more than a codec-aware encoder would spend; direct colour, alpha and palette changes are refused rather than quantised MultimediaWiki QPEG
ASUS V1 βœ… βœ… ffmpeg ASV1; intra-only 4:2:0 DCT, per-file quantiser from stream private data. The encoder writes ASV1 at quantiser 8, every picture whole and on its own β€” the format has no prediction between pictures β€” and drops the twenty-four block positions the End-Of-Block-terminated coding states must be nought. Lossy by construction, so only a flat picture comes back exactly. Ten streams written here (34x18 to 352x288, four of them not a whole number of macroblocks; flat colour, testsrc2, mandelbrot, smptebars, rgbtestsrc, a gradient and uniform noise), 82 frames, were decoded by ffmpeg 9.0.1: every frame accepted with no message, and its 4:2:0 planes differ from this package's own decode of the same bytes by at most one level β€” 14838 samples of 2869164, none by more than one, which is the two inverse transforms rounding apart. Against the pictures that went in the mean peak signal-to-noise ratio is 37.2 dB, and every one of the ten files is smaller than ffmpeg's own encoder writes at the same quantiser MultimediaWiki Asus Video
ASUS V2 βœ… βœ… ffmpeg ASV2; ASV1's macroblock under a reversed bit order and an explicit coefficient-group count. The encoder writes ASV2 at quantiser 16 β€” the same effective step ASV1's 8 gives against the coarser scale β€” and reaches all sixteen coefficient groups, so unlike ASV1 no block position is unreachable. Lossy by construction, so only a flat picture comes back exactly. Ten streams written here (the same sources and sizes as ASV1), 82 frames, were decoded by ffmpeg 9.0.1: every frame accepted with no message, and its 4:2:0 planes differ from this package's own decode of the same bytes by at most one level β€” 15233 samples of 2869164. Against the pictures that went in the mean peak signal-to-noise ratio is 42.8 dB, and every one of the ten files is smaller than ffmpeg's own encoder writes at the same quantiser MultimediaWiki Asus Video
Creative YUV (CYUV) βœ… βœ… ffmpeg cyuv; decoder accepts the 4:1:1 per-row difference coding and the real uncompressed UYVY 4:2:2 packet shape. The encoder deliberately writes the latter, bottom-up, because the published differential format specifies how to read its three per-frame tables but not how an encoder chooses them. Widths that are not a whole number of four-pixel groups refused Ferguson, cyuv.txt
Cirrus Logic AccuPak (CLJR) βœ… βœ… ffmpeg CLJR; 4:1:1 quantised into one 32-bit word per four pixels. Widths not divisible by four refused, as the format's own encoder refuses them. The encoder writes the same quantised word, with the reference's dither offset held fixed so a picture always codes to the same bytes MultimediaWiki AccuPak
HuffYUV / FFVHUFF ⚠️ βœ… ffmpeg HFYU, FFVH at 8 bits, with left, gradient and median prediction. Interlaced 4:2:0 under median prediction, deeper samplings, unknown prediction methods and original-HuffYUV streams carrying no stream description refused. The encoder writes progressive 8-bit frames with the tables in the stream description, in the 4:2:2 interleaved, packed colour and planar layouts; interlaced frames, per-frame tables and 4:2:0 are refused MultimediaWiki HuffYUV
Ut Video ⚠️ βœ… ffmpeg ULRG, ULRA, ULY0, ULY2, ULY4, ULH0, ULH2, ULH4. The Pro (UQ*) codes are accepted by the registry and then refused by name, as are interlaced frames and the fsemedian entropy mode; the T2 (UM*) codes belong to the separate Ut Video T2 row below. The encoder writes the 8-bit ULRG, ULRA, ULY0, ULY2 and ULY4 layouts, single-frame prediction, one slice per frame by default Ut Video
Ut Video T2 ⚠️ βœ… none UMRG, UMRA, UMY2, UMY4, UMH2, UMH4; intra packets and previous-frame delta packets, each eight-sample group reconstructed spatially or from the one reference the format allows. There are no future references, bidirectional packets or reordering. The packet handling is clean-room work from externally observable behaviour of the GPL upstream implementation, with FFmpeg's LGPL decoder as a second oracle for intra packets only, since it does not implement the temporal packet type. The encoder writes both packet types Ut Video
MagicYUV ⚠️ βœ… none The 8-bit M0*, M2*, M4* and M8* codes. MAGY, M8GA (grey with alpha) and the 10/12/14-bit codes are accepted and then refused by name. No neutral overview of this format is published. The encoder writes the six 8-bit layouts that have a picture type to come from β€” M8G0, M8RG, M8RA, M8Y4, M8Y2, M8Y0 β€” with median prediction by default MagicYUV
LCL ZLIB ⚠️ βœ… ffmpeg ZLIB; RGB24 only. The YUV image types, the multithread flag and the PNG-filter flag are refused β€” the format's own specification leaves each unstated. The encoder writes every picture as one complete zlib stream of RGB24 rows, bottom row first, so every packet is a key frame Togni, LCL codecs
LCL MSZH ⚠️ βœ… ffmpeg MSZH; RGB24 only, in the MSZH and uncompressed modes, including two-section packets. The back-reference parser is adapted from FFmpeg's LGPL-2.1-or-later decoder. The encoder writes single-section bottom-up RGB24 with DWORD-padded rows, using MSZH back-references where they shrink the frame and the reference decoder's equal-size raw form otherwise. The undocumented YUV byte orders and the multithread split fields are left alone rather than guessed FFmpeg lcldec.c
LOCO ⚠️ βœ… ffmpeg LOCO; RGB, RGBA, YUV 4:2:2 and 4:2:0. Odd-width 4:2:2, odd-sized 4:2:0 and unknown colour modes refused; odd-width RGB is repaired with the historical decoder rotation. The encoder writes version-1 lossless RGB24 and RGBA32, every packet a key frame; odd-width RGB writing is refused because that compatibility transform is non-invertible, while RGBA may be odd-width. The decoder is adapted from FFmpeg's LGPL-2.1-or-later implementation; the writer independently derives the inverse bitstream and is checked by ffmpeg FFmpeg loco.c
Canopus Lossless Codec ⚠️ βœ… ffmpeg CLLC; YUV 4:2:2, RGB24 and ARGB. Every packet is an independent Huffman-predicted key frame; the writer emits coding types 0, 1 and 3 and the reader also accepts the historical RGB type 2. Native YUV is kept as sample-exact Yuv422P8. Odd-width 4:2:2 and blocked YUV are refused β€” the latter is unimplemented in the reference decoder too β€” and ARGB hidden colour under alpha zero is refused because that colour is not present in the bitstream. The decoder is adapted from FFmpeg's LGPL-2.1-or-later implementation; the writer independently derives the inverse syntax and is checked by ffmpeg FFmpeg cllc.c
VBLE Lossless Codec βœ… β€” β€” VBLE; YUV 4:2:0 at codec version 1. Odd-sized pictures refused rather than given a guessed fringe. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg vble.c
MidiVid Archive Codec βœ… β€” β€” MVHA; YUV 4:2:2 from either the zlib or the Huffman payload. Odd widths and undefined packet types refused. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg mvha.c
ZeroCodec ⚠️ βœ… ffmpeg ZECO; the independently verified layout is zlib-compressed, bottom-up UYVY 4:2:2 at 16 bits a pixel. Key packets are literal I-pictures; P-pictures use zero bytes to copy from the immediately preceding picture. The encoder writes that layout, promoting a picture to I when a changed byte becomes zero because the P predictor cannot express that transition. There are no B-pictures, future references or frame reordering. Other depths advertised by the original VFW codec are refused because no independent wire-layout description or sample was found FFmpeg zerocodec.c / original ZeroCodec release
TechSmith Screen Capture βœ… β€” β€” tscc; 8-bit palettised, 16, 24 and 32 bits. Other depths refused. A packet that is not a zlib stream is an unchanged frame, not an error MultimediaWiki TSCC
CamStudio Screen Codec βœ… β€” β€” CSCD; 16, 24 and 32 bits behind LZO or zlib. 8-bit palettised refused, as the format has no palettised mode MultimediaWiki CamStudio
Flash Screen Video βœ… βœ… ffmpeg FSV1; a grid of independently zlib-compressed blocks. Mid-stream geometry changes refused. The encoder writes 64x64 cells, each its own zlib stream, sending only the cells whose bytes changed and a full key frame every twelfth SWF File Format Specification
Flash Screen Video 2 ⚠️ βœ… ffmpeg FSV2; 24-bit BGR and the hybrid 15/7-bit colourspace, custom palettes, partial-row interblocks and ZlibPrimeCompressPrevious. HasIFrameImage and ZlibPrimeCompressCurrent remain explicit refusals. The lossless encoder writes 64x64 24-bit keyblocks/interblocks, a full key frame every twelfth picture, zero-sized unchanged cells and the smallest row range differing from the last key frame; it uses independent zlib streams rather than optional priming SWF File Format Specification
Zip Motion Blocks Video ⚠️ βœ… ffmpeg ZMBV version 0.1, uncompressed and zlib, with the zlib dictionary carried across packets. A stream opening on an interframe, and the video formats no encoder writes, refused. The encoder writes version 0.1 at 8, 15, 16 and 32 bits with the zlib dictionary carried across packets, cutting each frame into the format's own blocks MultimediaWiki ZMBV
MS Screen 1 βœ… β€” β€” MSS1; palettised arithmetic-coded screen video. Pictures wider or taller than 4096 are rejected as invalid. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg mss1.c
Mandsoft / Screen Recorder Gold βœ… β€” β€” MSCC, SRGC; 8, 16, 24 and 32 bits. Other depths, and an indexed stream whose AVI carries no palette, refused. Adapted from FFmpeg's LGPL-2.1-or-later decoder. No neutral overview of this format is published FFmpeg mscc.c
MatchWare Screen Capture Codec βœ… β€” β€” MWSC; 24-bit BGR run-length walk inside one zlib stream. No neutral overview of this codec is published. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg mwsc.c
RemotelyAnywhere Screen Capture ⚠️ βœ… none RASC; PAL8, RGB555 and BGR0 with cursor overlay. Delta and MOVE compression type 2 refused β€” unimplemented in the reference decoder too. No neutral overview is published. Adapted from FFmpeg's LGPL-2.1-or-later decoder. The encoder writes a KBND key bundle and DLTA command streams for the pictures after it, at 8, 16 or 32 bits; the 16-bit form reduces eight-bit channels to five, and alpha, which RASC cannot state, is discarded FFmpeg rasc.c
innoHeim/Rsupport Screen Capture Codec βœ… β€” β€” RSCC, ISCC; 8, 16, 24 and 32 bits, tiles applied to a persistent picture. Other depths, and an indexed stream with no static palette, refused. No neutral overview is published. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg rscc.c
Screenpresso βœ… β€” β€” SPV1; full frames and additive deltas behind zlib. No neutral overview is published. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg screenpresso.c
WinCAM Motion Video βœ… β€” β€” WCMV; 16, 24 and 32 bits as rectangular updates onto a persistent picture. Other depths refused. No neutral overview is published. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg wcmv.c
VMware Screen Codec / VMware Video ⚠️ βœ… ffmpeg VMnc; persistent RFB framebuffer updates with Raw, CopyRect, RRE, CoRRE and Hextile rectangles, VMware display-mode changes, and colour/alpha cursor state at 8/16/32 stored bits (a container stating 24 means 32). Generic RFB extensions such as TRLE/ZRLE and 8-bit indexed screens remain unsupported, hence partial decode status. The lossless encoder writes 32-bit little-endian true-colour VMnc with WMVi + full Raw keyframes and previous-frame bounding-rectangle Raw deltas; VMnc defines no B/future-reference picture syntax. Original Raw/Hextile decoder lineage adapted from FFmpeg's LGPL-2.1-or-later decoder; additional paths and the encoder are implemented from the published VMnc/RFB wire descriptions FFmpeg vmnc.c
TDSC βœ… β€” β€” TDSC; raw and JPEG tiles onto a persistent BGR24 canvas behind zlib, with monochrome, BGRA and RGBA cursors composited onto the returned picture only. JPEG tiles go through the image package's own JPEG reader. Adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg tdsc.c
Uncompressed (BI_RGB) βœ… βœ… ffmpeg Codec tag 0 / vfw; device-independent bitmap pixel arrays at 1, 4, 8, 16, 24 and 32 bits, laid out by the BITMAPINFOHEADER the container carried. Other depths refused. The encoder writes the same pixel arrays at 8, 16, 24 and 32 bits with the BITMAPINFOHEADER a container needs BITMAPINFOHEADER
Planar raw YUV ⚠️ βœ… none YUV , rawvideo; the YUV4MPEG2 chroma tokens mono, 420, 422 and 444 at 8, 10, 12 and 16 bits. 420mpeg2 and 420paldv refused β€” their chroma siting has no faithful pixel format here. The encoder writes the same tokens back MultimediaWiki YUV4MPEG2
Uncompressed 4:2:2 10-bit (v210) βœ… βœ… ffmpeg 10-bit 4:2:2, six luma samples to a sixteen-byte group, rows padded to 128 bytes. The encoder writes the same groups and the same 128-byte row padding MultimediaWiki v210
Uncompressed 4:2:2 10-bit (012v) ⚠️ βœ… ffmpeg 10-bit 4:2:2; v210's group layout with the row length taken from the packet rather than padded. A stride that is not a whole number of groups is refused. Layout recovered by measurement. The encoder writes the same groups and pads no row, which is what makes the row length recoverable from the packet β€”
Uncompressed 4:2:2 10-bit (v210x) βœ… βœ… none 10-bit 4:2:2 as a continuous U, Y, V, Y component stream, three components to a big-endian 32-bit word with its low two bits unused. It has no four-character code, so a stream reaches it by naming v210x; rows do not restart at a word boundary. Extra bytes after the active raster are tolerated, because the raw .yuv10 demuxer pads each frame out to a width rounded up to 48. The encoder writes the same words and no padding FFmpeg v210x
Uncompressed RGB 10-bit (r210) βœ… βœ… ffmpeg 10-bit RGB, one big-endian word a pixel, rows padded to 256 bytes. Decoded straight to Rgb30 with no reduction to eight bits. The encoder writes the bit string ffmpeg's own r210enc.c writes, cross-checked against it MultimediaWiki r210
AJA Kona 10-bit RGB (r10k) βœ… βœ… ffmpeg AJA Kona 10-bit RGB; a different bit arrangement from r210 and no row padding at all. The encoder writes the same words, unpadded MultimediaWiki AJA Kona
Uncompressed YUV 4:1:1 (y41p) βœ… βœ… ffmpeg 4:1:1, twelve bytes to eight luma samples, rows coded bottom row first. Widths that are not a whole number of eight-pixel groups refused. Layout recovered by measurement. The encoder writes the same twelve-byte groups, bottom row first FOURCC y41p
Uncompressed 4:4:4 (v308) βœ… βœ… ffmpeg 4:4:4, three bytes a pixel (V, Y, U) with no padding. Layout recovered by measurement β€” no page describes this tag. The encoder writes the same three bytes a pixel β€”
Uncompressed 4:4:4 with alpha (v408) βœ… βœ… ffmpeg 4:4:4 with alpha, four bytes a pixel (U, Y, V, A) with no padding. Layout recovered by measurement. The encoder writes the same four bytes a pixel, alpha carried through untouched β€”
Uncompressed 4:4:4:4 (ayuv) βœ… βœ… ffmpeg 4:4:4:4, four bytes a pixel stored V, U, Y, alpha β€” the reverse of what the name spells. Layout recovered by measurement. The encoder writes the same four bytes a pixel, alpha carried through untouched FOURCC AYUV
Uncompressed packed 4:2:2 (YUY2) βœ… βœ… ffmpeg 4:2:2, two pixels to four bytes stored Y, Cb, Y, Cr, no padding. Odd widths refused. Decoded to Yuv422P8 samples rather than converted to colour. The encoder writes the same four bytes, byte for byte what ffmpeg's yuyv422 writes FOURCC YUY2
Uncompressed packed 4:2:2 (YVYU) βœ… βœ… ffmpeg YUY2 with the chroma pair exchanged: Y, Cr, Y, Cb. Odd widths refused. The encoder writes the same four bytes, byte for byte what ffmpeg's yvyu422 writes FOURCC YVYU
Uncompressed packed 4:2:2 (UYVY) βœ… βœ… ffmpeg YUY2 rotated by one byte: Cb, Y, Cr, Y. Odd widths refused. The encoder writes the same four bytes, byte for byte what ffmpeg's uyvy422 writes FOURCC UYVY
Uncompressed packed 4:2:2 (VYUY) βœ… βœ… ffmpeg UYVY with the chroma pair exchanged: Cr, Y, Cb, Y, as V4L2 documents the code. Odd widths refused. ffmpeg maps this tag onto yuyv422 instead, so it is not an oracle for it; the packing is checked against its uyvy422 writing of the chroma-exchanged picture, which is the same bytes V4L2 packed YUV
Uncompressed planar 4:2:0 (YV12) βœ… βœ… ffmpeg Luma plane, then the whole Cr plane, then the whole Cb plane. Odd widths and heights refused. Decoded to Yuv420P8 samples rather than converted to colour. ffmpeg's raw-video encoder writes I420's plane order under this tag while its decoder exchanges the planes; what is written here is what the code states FOURCC YV12
Uncompressed planar 4:2:0 (I420) βœ… βœ… ffmpeg Luma plane, then the whole Cb plane, then the whole Cr plane β€” ffmpeg's yuv420p. Odd widths and heights refused. The encoder writes the same three planes FOURCC I420
Uncompressed planar 4:2:0 (IYUV) βœ… βœ… ffmpeg Byte for byte I420 under a second name, kept apart so a stream can be written back under whichever code it stated. Odd widths and heights refused Microsoft 8-bit YUV formats
Uncompressed semi-planar 4:2:0 (NV12) βœ… βœ… ffmpeg Luma plane, then one interleaved chroma plane, Cb byte first. Odd widths and heights refused. The encoder writes the same two planes FOURCC NV12
Uncompressed semi-planar 4:2:0 (NV21) βœ… βœ… ffmpeg NV12 with the two bytes of every chroma pair exchanged, Cr byte first. Odd widths and heights refused. The encoder writes the same two planes FOURCC NV21
Uncompressed grey (Y800) βœ… βœ… ffmpeg One byte a pixel, luma only, no padding. Any picture size, odd dimensions included β€” the one of these layouts with no chroma grid to divide. Decoded to Gray8 with the samples unscaled. The encoder writes the same bytes FOURCC Y800
id RoQ ⚠️ βœ… ffmpeg RoQV; quadtree vector quantisation with motion compensation over two picture buffers, plus the older Trilobyte/11th Hour extensions: RoQ_JPEG intraframes, alpha-bearing ten-byte codebook cells, RoQ_HANG repeat pictures, legacy motion scaling and RoQ_PACKET wrappers. RoQ defines no B pictures or future references: FCC reads the immediately previous reconstructed picture, while MOT leaves the alternating target buffer untouched. The encoder writes the standard id/Quake III quadtree form β€” one packet per picture carrying INFO, QUAD_CODEBOOK and QUAD_VQ β€” sizing a codebook per picture and pricing every block between skip, motion, doubled 4x4 cells and subdivision. It is lossy because RoQ is. Mid-stream size changes and pictures whose sides are not a whole number of 16-pixel macroblocks are refused by name rather than guessed or padded MultimediaWiki RoQ
Interplay Video βœ… βœ… ffmpeg IMVE; both coded depths β€” 8-bit palettised and the RGB555 true-colour mode a version-2 INIT_VIDEO_BUFFERS selects β€” with all sixteen block encodings in each, the legacy 0x06 and 0x10 page-update forms, the skip map, and the compressed palette. A picture is presented on SEND_BUFFER, not on video data, so a chunk that redisplays a page without rebuilding it yields a held frame. Measured against ffmpeg over the four films on samples.ffmpeg.org: interplay-logo, baldursgate-logo, MARIO1 and descent3-level5-16bit decode here byte for byte as ffmpeg decodes them, 2,648 pictures in all. Between them they exercise fifteen of the sixteen block encodings β€” every one but 0x6, which appears in no sample and which the format’s own description doubts its own reading of β€” and MARIO1 covers the legacy 0x10 page-update form rather than the usual 0x11. The encoder writes the 8-bit form with previous- and two-pictures-back reuse and motion compensation, and the RGB555 form; it emits a subset of the vocabulary it reads, which is what an encoder is free to do. Lossy only in the quantisation the format imposes -- six bits a palette component, five a colour in RGB555 -- so a picture already on that grid comes back exactly and one that is not does not MultimediaWiki Interplay Video
id Cinematic Video βœ… β€” β€” IDCV; order-1 static Huffman over an already-palettised 8-bit picture, 256 trees. No neutral overview of this codec is published β€”
Westwood VQA Video ⚠️ βœ… ffmpeg WSVQ format versions 1, 2 and 3, 8-bit palettised and the 15-bit HiColor form, with the codebook rationed across eight pictures. A picture that is not a whole number of vectors, and a palettised stream using CBP? chunks while VQHD states no codebook parts, are refused. The encoder writes a full palette and codebook with every picture in the palettised form, which makes each one independently decodable; the HiColor form skips unchanged blocks and transparent overlay pixels, so a picture that does is marked non-key MultimediaWiki VQA
Electronic Arts CMV ⚠️ βœ… ffmpeg cmv ; eight-bit palettised pictures. Intra pictures are the complete raster; inter pictures are 4x4 blocks that copy an exact motion-compensated block from the previous picture, copy from the second-last picture through an escape, or carry sixteen literal indices. MVIh may change geometry and resets motion history. The lossless encoder writes full and partial palette headers, chooses the smaller of raw intra and exact two-reference inter coding, and refuses true-colour or alpha-bearing input rather than quantising it. Inter coding is emitted only for complete 4x4 grids; odd geometry remains intra. CMV has no forward-reference or B-picture syntax MultimediaWiki EA CMV
Commodore CDXL Video βœ… β€” β€” CDXL; bit-planar pictures through a twelve-bit palette or through Hold-And-Modify MultimediaWiki CDXL
IFF ANIM Video ⚠️ βœ… none ANIM; delta methods 2, 3, 5, 6, 7 and 8, palettised or Hold-And-Modify, including DPaint Anim Brush's XOR variant of method 5. Method 4's non-RLC variant and operation 74 publish no wire grammar and are refused. The encoder writes indexed colour only, as uncompressed ILBM key pictures and method 5 byte-vertical deltas Amiga ANIM IFF
Brute Force & Ignorance Video βœ… β€” β€” BFIV; palettised 8-bit with literal runs, back-references, carried runs and fills MultimediaWiki BFI
Sierra VMD Video ⚠️ β€” β€” VMDV codec version 2, 8-bit palettised, painted one rectangle at a time. New-palette frames, empty rectangles, LZ rectangles without the preload marker and unknown rendering methods refused MultimediaWiki VMD
Smacker Video βœ… β€” β€” SMK2 and SMK4; 8-bit palettised 4x4 blocks read through four Huffman tables the file states once and every frame shares, with the running palette resolved here rather than in the demuxer. A picture that is not a whole number of 4x4 blocks refuses, as does a stream stating none of its four tables. The composition of those four tables β€” the piece RAD's own description leaves out, and what this codec sat undecoded on β€” is adapted from FFmpeg's LGPL-2.1-or-later decoder FFmpeg smacker.c
Escape 124 ⚠️ βœ… ffmpeg ARMovie/RPL codec id 124; RGB555 2x2 macroblocks inside 8x8 superblocks, so dimensions not divisible by eight are refused rather than left fringed. The encoder refreshes codebook 1 on coded pictures, reuses unchanged superblocks from the previous reconstruction through the tiered skip code, and emits the eight-byte repeat form when a whole picture is unchanged. It has no forward reference or B-picture mode, so PTS and DTS are never reordered. Each 2x2 block is reduced to its best pair of source RGB555 colours, making the writer lossy by construction. The decoder is adapted from FFmpeg's LGPL-2.1-or-later decoder; encoder decisions are original, and a key/delta/repeat RPL clip is externally checked by FFmpeg FFmpeg escape124.c
Eidos Escape 130 βœ… β€” β€” ARMovie/RPL codec id 130; 2x2 blocks, so a picture must be a whole number of them MultimediaWiki Escape 130

Oracle names the program outside this repository that has read what the encoder writes. ffmpeg covers most codecs. Hap additionally uses Vidvox Hap + bcdec: Vidvox's reference HapDecode extracts the compressed BC7/BC6H texture and bcdec independently decodes those texture blocks. β€” is a codec with no encoder, so there is nothing for anything to have read. none is an encoder nothing else has looked at. The claim is declared by [VerifiedBy] on the encoder type, carried into VideoCodecEncoderEntry.VerifiedBy by the registry generator, and held to what it says by EncoderOracleTests. The ordinary runner asks ffmpeg to decode a frame back at the size that went in; the Hap runner creates deterministic Hap R and signed/unsigned Hap HDR frames, sends their framing through Vidvox HapDecode, and compares bcdec's reconstructed samples against the source. Either is stronger evidence than this package's own decoder agreeing with its own encoder, which is what the column exists to stop being mistaken for evidence.

Not supported, and why

The package claims the whole domain, so a codec it does not decode is a stated result and not a silence. Each of the codecs below was investigated against real files and every description that could be found, and each stopped somewhere specific. None of them is refused for want of effort, and none is waiting on a decision β€” they are waiting on a fact that is not published anywhere. Where each one stops precisely, and what would change the answer, is in codec-investigations.md.

Three walls account for nearly all of them. The tables are in the binary, not in the files β€” the smallest frame in a corpus cannot hold a quantisation table, so a table the format needs and never transmits can only come from an implementation. The only description is a paraphrase of a decoder β€” a wiki page whose function names, typos and constants match the decoder that predates it is not an independent source, and building on it makes a provenance problem out of a reverse-engineering one. There is no corpus at all β€” no encoder exists to make a file and no archive carries one, so nothing could be verified even with a description in hand.

Codec Why it is not decoded
TrueMotion 1 (DUCK) The tables are in the binary, at its limit β€” a zero-byte frame. Every table is in the decoder
On2 VP4 Structure published and verified against On2's own vp4vfw.dll frame by frame, but the per-component motion-vector Huffman codes are stored as branches in the binary and printed nowhere
On2 VP6 (VP60/VP61/VP62) Every table is published and every one was transcribed and checked; the decode still desynchronises on the third magnitude bit of the first coefficient block, and no variant tried fixes it without breaking others
On2 VP7 On2's own specification names its reference decoder's quant_common.c and findnearmv.c at exactly the two points β€” the dequantisation tables and the interframe motion-vector census β€” where it declines to print what they hold
Sorenson Video 1 (SVQ1) The one technical document explains the algorithm fully and then cites three FFmpeg source files as where the codebook is, instead of printing it
Sorenson Video 3 (SVQ3) Everything by which it departs from H.264 is described only by an uncited page that attributes its one sourced fact to svq3.c
Windows Media Video 7 (WMV1) Its run-level, DC and motion-vector tables are MS-MPEG4v3's own undocumented ones, tied to them by two shared escape constants; without them only empty macroblocks can be located in a corpus
Windows Media Video 8 (WMV2) WMV1's whole wall plus its own undocumented joint type/CBP table
Microsoft Screen 2 (MSS2) The absent source MS Screen 1 had, plus embedded WMV9 rectangles whose boundaries within a packet are stated nowhere
Lagarith (LAGS) The wrapper comes out completely; the range coder inside it is defined by one implementation's floating-point rounding rather than by anything written down, so even a reference decode is not a sound oracle
NewTek SpeedHQ Container, framing and DC coding match ISO/IEC 13818-2 exactly; some unknown number of AC codewords are reassigned, and the one source printing the reassignment copied it from FFmpeg
Canopus HQ, HQA, HQX The vendor's papers are marketing; the one bitstream write-up is the decoder author's own account of reverse-engineering the format
Dxtory The one page states only that frames hold YV12 blocks behind a 16-byte header, and was written by the decoder's author on the day of his decoder commit
HuffYUV MT (HYMT) The multithreaded slice table is described only by the fork's own GPL source, which is both an implementation and licence-incompatible with this package
Brooktree ProSumer (BT20) One sentence, written four years after the decoder, names a codebook needed for delta-pair replacement and prints not one entry of it
SheerVideo The properly sourced frame-format document names but never prints a dozen static VLC codesets and seed predictors β€” and because they are static rather than transmitted, no file can ever reveal them
YLC Complete and well-sourced except for one clause naming a 225-entry constant table of YUYV quads that is printed nowhere; one 100-frame sample cannot demonstrate every entry was exercised
Go2Meeting (G2M) The one detailed page states no provenance, over three coding paths including a JPEG hybrid β€” too much to build on an unconfirmed paraphrase
ScreenPressor (SCPR) The only descriptions found are two third-party reimplementations, which is more implementations, and one sample file
TechSmith Screen Codec 2 (TSCC2) The only technical write-up is by the decoder's own author, about writing the decoder
FM Screen Capture (FMVC) Every technical fact on its page was added five years after the decoder, and even then names its two compression types as LZ77 variants without stating either one's coding
Electronic Arts TGQ, TQI, MAD The shared inverse transform and zigzag are undocumented; the wiki page's edit history shows its own IDCT description being replaced by a link to the author's FFmpeg source
Electronic Arts TGV Four of five intra statement forms decode correctly against real files; the three-byte form's bit layout does not match the published formula and no single-field adjustment reaches the right copy offset without breaking the rest
Deluxe Paint Animation (ANM) The container is fully documented by EA's own manual; the RunSkipDump opcodes exist only in EA's unpublished program source, which is the format owner's code and still not licensed for transcription
Chronomaster DFA The only description reads as a transcription of a working decoder β€” C-shaped pseudocode with unexplained bit-level tie-breaks and no citation for any of its six chunk algorithms
8088flex TMV No description of any kind, and the single sample is truncated before its own last frame

Adapted from somebody else's code, and named

Seventeen decoders are adaptations of FFmpeg's own LGPL-2.1-or-later decoders rather than implementations from a published description: Escape 124, Indeo 4 and 5's tables, LCL MSZH's back-reference parser, LOCO, Canopus Lossless, Matrox M101, VBLE, MidiVid Archive, MS Screen 1, RemotelyAnywhere, MSCC, MWSC, RSCC, Screenpresso, WinCAM, VMware Screen Codec, TDSC and Smacker. Sixteen of the encoders are as well: Apple Graphics, Apple Video, Cinepak's bitstream, CLJR, DV, FFV1, Flash Screen Video, Hap's block compression, HuffYUV, LCL ZLIB, MagicYUV, Microsoft RLE, Microsoft Video 1's mode decision, QuickTime Animation, Ut Video and ZMBV. Hap's is the one of those not under the LGPL: FFmpeg's texturedspenc.c carries its own MIT grant and states it derives from public-domain code, and the notice beside it says so. The ASUS, FLIC, H.261, id RoQ and Apple ProRes encoders are not among them at all: those were written from published descriptions. The Indeo 4 encoder is not among them either: it is derived from the format behaviour this package's own decoder and shared IVI layer already express, and ffmpeg stands over it as an interoperability oracle rather than as encoder source. ProRes takes FFmpeg's quantisation matrices, which RDD 36 prints nowhere, but constants are not expression and the notice beside it records where they came from. Every one of those files carries the original author and the licence notice it came under; LGPL-2.1-or-later permits redistribution under this package's LGPL-3.0-or-later.

Each of those sixteen sat among the undecoded above, and for the same reason the entries there give: the missing piece existed nowhere but an implementation. Reading a licence-compatible implementation is what closed them. The entries recording why they could not be closed the other way are kept, because that reasoning still holds for everything reached without one.

FFmpeg is not the only source. The H.264 decoder's CABAC engine β€” Codecs/H264/, the arithmetic decoder and its context tables β€” is adapted from OxideAV/oxideav-h264's src/cabac.rs and src/cabac_ctx.rs, under the MIT licence. A verbatim copy of that licence and the statement of what was taken sit beside the code in Codecs/H264/THIRD-PARTY-NOTICE.OxideAV.txt, which is where the licence requires it to be rather than only here.

πŸš€ Quick start

using FileFormat.Core;
using Hawkynt.FileFormats.Video;

var file = new FileInfo("movie.mkv");

// Detect and inspect the container without decoding frames.
VideoFormat format = VideoFormatRegistry.Detect(file);
IReadOnlyList<MediaStreamInfo> streams = VideoFormatRegistry.ReadStreams(file);
VideoMetadata metadata = VideoFormatRegistry.ReadMetadata(file);

Console.WriteLine($"{format}: {streams.Count} stream(s)");

// Decode the first video stream lazily.
foreach (var frame in VideoFormatRegistry.DecodeFrames(file)) {
  RawImage image = frame.Image;
  Console.WriteLine($"{image.Width}x{image.Height} pts={frame.PresentationTimestamp}");
}

Demux without decoding

var data = File.ReadAllBytes("movie.avi");
var streams = VideoFormatRegistry.ReadStreams(data);

foreach (var packet in VideoFormatRegistry.ReadPackets(data)) {
  // CodedPacket remains compressed; no decoder was constructed.
}

Mux without encoding

using FileFormat.H264Video;

var source = H264VideoContainer.FromBytes(File.ReadAllBytes("source.h264"));
var streams = H264VideoContainer.Streams(source);
var packets = H264VideoContainer.ReadPackets(source);

byte[] remuxed = VideoIO.Mux<H264VideoWriter>(streams, packets, H264VideoContainer.Metadata(source));
File.WriteAllBytes("copy.h264", remuxed);

Select a decoder explicitly

var videoStream = streams.First(s => s.Kind == MediaStreamKind.Video);

if (VideoFormatRegistry.CanDecode(videoStream)) {
  IVideoFrameDecoder decoder = VideoFormatRegistry.CreateDecoder(videoStream);
  // Feed coded packets for that stream through the decoder as needed.
}

πŸ“š Core API

Member Purpose
VideoFormatRegistry.AllFormats Enumerate registered containers.
VideoFormatRegistry.AllCodecs Enumerate registered decoders.
VideoFormatRegistry.AllEncoders Enumerate registered encoders.
Detect(ReadOnlyMemory<byte>) / Detect(FileInfo) Detect container by content.
ByExtension(string) Find container candidates by extension.
ByMimeType(string) Find a container by MIME type.
ReadStreams(byte[] / FileInfo) Read declared media streams.
ReadPackets(byte[], ...) Lazily demux coded packets.
ReadMetadata(byte[] / FileInfo) Read container metadata.
VideoIO.CreateWriter<TWriter>(...) Create a statically dispatched container writer.
VideoIO.Mux<TWriter>(...) Packet-level mux/remux without decoding or encoding.
CanDecode(MediaStreamInfo) Test whether any registered codec accepts a stream.
CreateDecoder(MediaStreamInfo) Create the matching frame decoder or throw a named refusal.
CanEncode(MediaStreamInfo) Test whether any registered encoder writes a stream's codec.
CreateEncoder(MediaStreamInfo) Create the matching packet encoder or throw a named refusal.
DecodeFrames(byte[] / FileInfo, ...) Convenience path combining demux + decode.

Four contracts

Responsibility Contract Owns
Demux IVideoContainerReader<T> packet locations, timestamps, stream metadata
Decode IVideoCodecDecoder<T> codec bitstream β†’ decoded frame
Encode IVideoCodecEncoder<T> decoded frame β†’ coded packet
Mux IVideoContainerWriter<T> coded packets β†’ container layout

πŸ—οΈ Architecture

A few container rules explain much of the implementation shape:

  • MP4/MOV/3GP share one ISO-base-media parser. Packet boundaries are reconstructed from sample tables rather than scanned out of mdat; QuickTime cmov compressed headers are expanded before the same atom parser runs.
  • Matroska/WebM share EBML structure. Block lacing is unpacked into individual coded packets and unknown-length live-stream elements are terminated structurally.
  • MPEG Program Stream reassembles PES payloads and then cuts them at elementary-stream picture boundaries; PES packet size is not assumed to equal picture size.
  • MPEG Transport Stream reconstructs PES/program state from TS packets rather than exposing transport packet boundaries as codec packets.
  • Motion JPEG uses the JPEG parser from the image package rather than byte-searching for FF D9, which can occur inside entropy-coded data or embedded thumbnails.
  • PlayStation STR remuxing writes actual 2352-byte Mode-2 sectors, including Form-1 EDC/ECC and Form-2 EDC; parity is not left blank merely because the demuxer does not need it.
  • RoQ and STR retain rare packet-local framing state in CodedPacket.ContainerPrivateData when that state is required to reproduce the container but is not part of the codec payload itself.
  • Flash Video writes back what it reads: the title, author, album, encoder, creation date, duration and every annotation cross a remux as an onMetaData script tag. A reader that finds a field and a writer with nowhere to put it are not a round trip, they are a quiet deletion.
  • Ogg has no metadata area of its own, so the title, artist, album, encoder, date and annotations are written into the comment header of every Theora, Vorbis and Opus bitstream in the file, which is where the mappings put them. The vendor string stays with the library that encoded the stream, and the framing bit is written for Vorbis alone, as its specification and no other asks for one.

Those rules exist because β€œfind a familiar marker and split there” works on demo files and fails on real media. Detailed validation notes live next to the relevant readers and in codec-notes.md.

πŸ“š API reference

Every public and protected member of all 541 types, generated from the built assembly and its XML documentation, is in REFERENCE.md.

πŸ”Œ Dependencies

Dependency Role
Hawkynt.FileFormats.Images JPEG/bitmap readers and shared decoded-frame ecosystem.
FileFormat.Core RawImage, CodedPacket, MediaStreamInfo, DecodedFrame, and format infrastructure.
FileFormat.Core.Generators Compile-time format metadata generation.
FileFormat.Registry.Generator Compile-time video registry metadata generation.
FrameworkExtensions.Backports Framework backports used by the package.

⚠️ Limitations

  • Metadata crosses a remux only where the destination container has somewhere to put it. AVI, Matroska, MP4, ASF, RealMedia, RPL, FLV and Ogg write it back; the raw byte streams and most of the game formats have no metadata area at all and drop it, which is a property of those formats rather than of this package. Ogg carries the fields its comment headers define and not a duration, which it states as the granule position of its last page instead.
  • Mux support is packet-level remuxing, not codec transcoding. A writer may require container-specific stream description bytes, timing geometry, fragment offsets, or packet-private state when those cannot be reconstructed from coded payload alone.
  • H.264/H.265 raw-stream muxers accept Annex B packets only; length-prefixed MP4/QuickTime packet representations are refused rather than silently written as invalid byte streams.
  • MP4/QuickTime muxing requires a complete sample entry in CodecPrivateData for codecs whose configuration cannot be synthesized safely; missing codec configuration is refused rather than guessed.
  • Large RealVideo pictures require preserved slice offsets when they must be split across 16-bit RealMedia packet lengths, and RoQ sound requires its original predictor argument.
  • Several advanced codecs intentionally implement well-defined subsets (for example H.264 progressive 8-bit 4:2:0, HEVC without the range and screen-content extensions, and VC-1 Simple/Main intra pictures). Every row marked ⚠️ in the codec table names its own subset. Unsupported profiles/features are refused by name rather than silently misdecoded.
  • Codec support is more precise than a single green check can express; consult codec-notes.md before relying on a profile/level/feature not named in this README.
  • Encoding is a smaller domain than decoding on purpose: 86 codecs of the 105 read can also be written. Most are lossless; thirty are not, and each says so in its own row. Motion JPEG writes baseline JPEG, whose loss is a matter of degree, and DV's fixed-length frames, Microsoft Video 1's two-colours-to-a-block coding, Cinepak's vector quantisation, Microsoft's MPEG-4 transform, the ASUS codecs' quantised DCT, Apple Video's 15-bit blocks, H.261's, H.263's, MPEG-1 video's, MPEG-2 video's, MPEG-4 Part 2's, VP3's, VP8's, VC-1's, Theora's and Apple ProRes's quantised transforms, CineForm's quantised wavelet, H.264's and H.265's 4:2:0 conversion, Hap's texture blocks, id RoQ's vector quantisation Intel Indeo 4's and Indeo 5's YVU9 chroma subsampling and Escape 124's two-RGB555-colours-per-2x2-block coding have no lossless form at all β€” a picture that codec can hold exactly comes back exactly, and one it cannot does not. What is still not written back is the modern lossy codecs: a stream read as H.264 cannot be written back as H.264.
  • Video correctness depends on real-world packetization as much as codec math. The project therefore validates packet counts, sizes, timestamps, and key-frame flags against external tools where samples are available.

πŸ“š References

Each codec row links the specification it was built from. This table records the external material used across the package β€” the code some of it was converted from, and the tools that judge whether what it writes is readable by anything but itself. Per-codec provenance and measurement notes are in codec-notes.md; the formats that were investigated and left unimplemented, with the reasons, are in codec-investigations.md.

Reference Kind Used for
FFmpeg Foreign source code + oracle Both, and the distinction matters. Seventeen decoders and sixteen encoders are converted from its LGPL-2.1-or-later sources β€” the notices beside each name the files β€” and separately it is the decoder almost every codec here is measured against. A codec converted from it is never also verified by it alone; where that is the only check available, the row says so.
Vidvox Hap + bcdec Oracle Hap R/HDR interoperability: Vidvox HapDecode validates Hap framing and extracts the texture payload; bcdec independently decodes BC7 and signed/unsigned BC6H samples. CI pins both upstream revisions.
libavcodec/texturedspenc.c Foreign source code (MIT) The one file taken from FFmpeg's tree that is not LGPL: it carries its own MIT grant and states it derives from public-domain code. Hap's block compression.
OxideAV Foreign source code H.264 CABAC context tables and arithmetic decoder.
libde265 (dec265) Oracle A second opinion on HEVC, independent of FFmpeg β€” the two disagreed with each other on two streams where our decoder matched one of them.
x265 Corpus producer Intra HEVC streams at every chroma format and depth the decoder claims.
libaom / SVT-AV1 Corpus producers AV1 elementary streams for the low-overhead OBU container.
samples.ffmpeg.org External corpus Real files for codecs no encoder here can produce β€” Indeo, RPZA, RoQ, Smacker and others. Where a published checksum exists it is checked before the file is used.
RAD Game Tools Documentation Smacker container and codec background.
MultimediaWiki Documentation Format descriptions for codecs with no published specification. Treated as rung four: a page whose function names and constants match a decoder that predates it is not an independent source, and codec-investigations.md records where that mattered.

❀️ Support

If this project saves you time or money, consider supporting its development:

GitHub Sponsors PayPal

πŸ“œ License

Licensed under LGPL-3.0-or-later β€” see the repository LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.223 133 11/6/2026