Introduction
IVF is a very simple file for a single stream of compressed video, written by the reference encoders of the VP8, VP9 and AV1 codecs. It wraps each frame with its size and timestamp and nothing more: there is no audio and no index. IVF files are used to test encoders and decoders and to exchange raw VP8, VP9 and AV1 streams.
Structure
The file starts with a 32-byte header. All numbers are little-endian. The header holds
the signature DKIF, a 16-bit version (0), the 16-bit header length (32),
a four-character codec code such as VP80, VP90 or
AV01, the width and height in pixels, the time base as two 32-bit
numbers, and the number of frames.
Each frame follows with a 12-byte frame header, a 32-bit frame size and a 64-bit timestamp in time base units, then the frame data.
0SignatureDKIF4 bytes4Version and header length4 bytes8CodecVP80,VP90orAV014 bytes12Width and height4 bytes16Time base and frame count, then unused bytes16 bytes32Frame size, timestamp, then the frame data12 bytes + data
Reference
- File header – every field of the 32-byte header, the codecs and the time base, with a worked example
- Frames – the 12-byte frame header and what a frame holds for each codec
Not described
Known, not yet covered
- Reference: the IVF code of libvpx and libaom was not read directly; the pages rest on FFmpeg’s reader and writer and the MultimediaWiki description.
- Viewer: there is no IVF viewer plugin yet; the explorer shows the file as bytes.
Unknown
- Reference: no published specification of IVF exists, so nothing official can confirm the header fields beyond what those programs do.
Links
Software
- FFmpeg and ffplay – command-line tools that play, write and convert IVF (Windows, macOS, Linux)
- mpv – free, minimal media player (Windows, macOS, Linux)
- libvpx tools – the VP8 and VP9 reference encoder and decoder, which write and read IVF
- libaom tools – the AV1 reference encoder and decoder, which write and read IVF
Developers
- libavformat – FFmpeg’s container library, which reads and writes IVF (C)
- dav1d – AV1 decoder whose command-line tool reads IVF (C)