Skip to content
Novus Examples
mkv15.4 KB

Pixel Format — 12-bit 4:2:0

12-bit 4:2:0 HEVC. Twelve bits, at the top of what HEVC's Main 12 profile supports. Cinema and scientific capture; included as the limit case that finds decoders which silently truncate to 8 bits. Shipped in Matroska rather than MP4 on purpose: an exotic pixel format in an .mp4 would be advertised as browser-playable and then fail to decode. Every clip in this group is the same picture, so the pixel format is the only variable.

Rendered preview of Pixel Format — 12-bit 4:2:0

Rendered preview of the mkv file (15.4 KB). Download above for the original.

Specifications

Resolution
480x270
Fps
24
Pixel Format
yuv420p12le
Bit Depth
12
Chroma Subsampling
4:2:0
Codec
HEVC (libx265)
Container
Matroska
Browser Playable
no — by design, so the format is not misadvertised

Testing contract

Expected to pass
Scenario
Probe the pixel format and bit depth, then decode a frame and inspect the chroma planes.
Expected result
The stream decodes as yuv420p12le: 4:2:0 chroma at 12-bit, HEVC (libx265) in Matroska at 480x270, 24 fps. It is deliberately not browser-playable, so the format is not misadvertised - a pipeline that reports success by loading it into a <video> element is testing the wrong thing. Converting to 8-bit 4:2:0 must be an explicit step, not a silent one.

What is a .mkv file?

MKV (Matroska) is an open, codec-agnostic multimedia container that holds unlimited video, audio, subtitle, chapter, and attachment tracks in one file. Its structure is EBML, a binary tree of length-prefixed elements, and its attachments typically carry the fonts an ASS subtitle track needs. Because it constrains nothing about the streams inside, the extension says nothing about whether a player can decode them. Steve Lhomme started the project in 2002; WebM is the restricted profile of it that browsers accept.

How to use this file

Use an example MKV to test EBML parsing and multi-track demuxing, subtitle and chapter extraction, and remux pipelines, checking that per-track language and default flags survive, that font attachments are preserved, and that a remux to MP4 reports the tracks MP4 cannot carry instead of dropping them silently.

How to use this file for testing

“Pixel Format — 12-bit 4:2:0” is a deterministic Novus Examples fixture for Video codecs, Conversion testing, Video QA. One source encoded as H.264, HEVC, AV1, VP9, MJPEG, and a ProRes-compatible mezzanine, across 8/10/12-bit and 4:2:0/4:2:2/4:4:4, for testing decoder support, transcode pipelines, and container remuxing.

Documented properties for this file: 12-bit · 24 fps. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Media fixtures are short and synthetic by design. Prefer waveform or transcript ground truth in the same group when measuring ASR, trim, upscale, or sync tools; do not assume broadcast-quality masters.

Code examples

<video controls preload="metadata" width="640" src="yuv420p12le.mkv"></video>

Generated by generation/video_codecs_wave.py. Free for any use, no attribution required, license.