Skip to content
Novus Examples
webm44.4 KB

Alpha Channel — VP9 in WebM

Video with a real per-pixel alpha channel: VP9 yuva420p in WebM, the one alpha path browsers decode natively. Composite it over a page background and the transparency is genuine, not a chroma key. Roughly 90% of each frame is fully transparent. Two traps this file exists to expose. First, auto-alt-ref must be disabled at encode time or libvpx silently drops the alpha plane, producing a valid file with no transparency and no error. Second, WebM stores VP9 alpha in BlockAdditional and signals it with AlphaMode=1, so FFmpeg's NATIVE vp9 decoder reports pix_fmt yuv420p and decodes fully opaque — you must force `-c:v libvpx-vp9` to see the alpha at all. Probing this file with default settings and concluding it has no alpha is the expected mistake.

Specifications

Resolution
480x270
Fps
24
Codec
VP9 (libvpx-vp9)
Pixel Format
yuva420p — 4:2:0 plus an alpha plane
Alpha Storage
Matroska BlockAdditional, signalled by AlphaMode=1
Transparent Area
≈90% of each frame
Container
WebM
Browser Support
Chrome, Firefox, Edge; Safari does not decode VP9 alpha
Auto Alt Ref
disabled — required for alpha to survive encoding
Probe Caveat
ffprobe reports yuv420p unless -c:v libvpx-vp9 is forced

What is a .webm file?

WebM is an open, royalty-free multimedia container based on Matroska, designed for the web and typically carrying VP8 or VP9 video with Vorbis or Opus audio. It is natively supported by modern browsers via HTML5 video. It targets efficient, license-free web streaming.

How to use this file

Use an example WebM to test HTML5 <video> playback, Matroska-based demuxing, VP8/VP9 decoding, and converters between WebM and MP4.

How to use this file for testing

“Alpha Channel — VP9 in WebM” is a deterministic Novus Examples fixture for Video codecs, Video matting, 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: 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="vp9-alpha.webm"></video>

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