X

FOURCC Codes Explained, With a Full Reference List

A FOURCC is a four-character label that tells Windows which codec compressed a video, and knowing how to read one turns an unplayable file into a solved problem.

Four cube tiles in a row spelling a four-character code, the third one lifted and turned

Open an old AVI in a codec inspector and you will see something like XVID or DX50 stamped in its header.

That four-character code is how the file announces which decoder it needs.

The full reference list is further down, but there is one thing worth knowing first, because it sends a lot of people down a blind alley.

FOURCC is an AVI idea, not a universal one

Four-character codes come from Video for Windows, and they live in the header of an AVI file. That is the mechanism, and it is the only place a FOURCC in the strict sense exists.

MP4 and MKV identify their codecs differently. An MP4 uses sample entry names such as avc1 or hvc1 inside its atom structure, and an MKV uses CodecID strings such as V_MPEG4/ISO/AVC. Those are four characters long in the MP4 case and get loosely called FOURCCs, but they are a different mechanism in a different container.

IF YOU CAME HERE TO FIX AN MP4

There is no FOURCC in an MP4 to change. Tools that rewrite a four-character code operate on AVI headers, so if your file is an MP4, MKV or MOV, changing a FOURCC is not the fix and no tool will offer it. Identify what the file actually contains instead, and install the decoder it needs.

If containers and codecs are new to you as a distinction, our guide on containers and codecs covers it properly.

The codes you will actually meet

The full historical registry below runs to well over a hundred entries, most of them from hardware that has not shipped since the 1990s. These are the ones that turn up in practice.

Code What it is
XVID Xvid, MPEG-4 Part 2. The commonest code in older AVI files
DIVX DivX 4 and 5, MPEG-4 Part 2
DX50 DivX 5 specifically
DIV3, DIV4 DivX 3, which is a modified Microsoft MPEG-4 v3
FMP4 MPEG-4 Part 2 written by FFmpeg
MP4V MPEG-4 Part 2, generic
H264, X264, AVC1 H.264 or AVC. AVC1 is the MP4 sample entry name
HEVC, HVC1, HEV1 H.265 or HEVC. HVC1 and HEV1 are MP4 sample entry names
VP80, VP90 Google VP8 and VP9
AV01 AV1
WMV1, WMV2, WMV3 Windows Media Video 7, 8 and 9
WVC1 VC-1, the standardised form of Windows Media Video 9
MJPG Motion JPEG. Common in older cameras and capture cards
DVSD, DV25, DV50 DV, as recorded by miniDV camcorders
HFYU HuffYUV, lossless
FFV1 FFV1, lossless, widely used for archiving
LAGS Lagarith, lossless
I420, IYUV Raw planar YUV 4:2:0. Not a codec - uncompressed video
YV12 Raw planar YUV 4:2:0 with the chroma planes swapped
NV12 Raw YUV 4:2:0 with interleaved chroma. Common in hardware decoding
YUY2, UYVY Raw packed YUV 4:2:2
P010 Raw 10-bit YUV 4:2:0. Turns up with HDR sources

Notice how many of those are raw rather than compressed. A raw code means the file is storing uncompressed pixels, which is why an AVI marked I420 is enormous and needs no decoder at all.

Reading the code on a file you have

You do not have to guess. Three ways, depending on how much you want installed.

  • Nothing to install. Drop the file into our Codec Finder, which reads it in the browser and reports the codec and container.
  • The standard desktop tool. MediaInfo reports the FOURCC alongside every other stream detail.
  • The whole system. X Codec Inspector lists what is registered on the machine rather than what is in one file, which is the other half of the question.

Once you know the code, the table above or the registry below tells you what decoder to go looking for.

Changing a FOURCC, and when that helps

Occasionally an AVI carries a code that does not match what is actually inside it, usually because it was written by software taking liberties. The file will then refuse to play even though you have the right decoder installed.

The AVI FourCC Code Changer rewrites the code in the header without touching the video itself, which fixes exactly that mismatch. The classic case is an AVI labelled DX50 that plays once relabelled XVID, since Xvid and DivX are close enough for one decoder to handle both.

It only works on AVI. If the file is anything else, the fix is a decoder rather than a relabel, and the K-Lite Codec Pack covers most of what an older file is likely to want.

The full registry

This is the historical list of registered compressor codes. Most of it is of archival interest rather than practical use, which is exactly why it is worth keeping - these are the codes attached to files nobody can open any more.

Codes used for DIB compression

A DIB is a device-independent bitmap, the uncompressed image format Windows uses internally. These codes appear where a compression method is applied to one.

Quick questions

What does FOURCC stand for?

Four-Character Code. It is literally four characters stored in a file header, chosen to be readable rather than numeric.

Does my MP4 have a FOURCC?

Not in the strict sense. MP4 uses sample entry names such as avc1, which look similar and are often called FOURCCs loosely, but they are part of a different container structure.

Why do two codes mean the same codec?

Because different encoders stamped their own code for the same format. XVID, DIVX and FMP4 are all MPEG-4 Part 2 written by different software.

Is changing a FOURCC safe?

On an AVI, yes - it rewrites four bytes in the header and leaves the video untouched. Keep a copy anyway, as with any file edit.

What is the difference between I420 and YV12?

Both are planar YUV 4:2:0 raw video. They differ only in the order of the two chroma planes, which is why software sometimes shows one as green or pink when it misreads the other.

My file shows a code that is not on this list

Some encoders invent codes that were never registered. Read the file with an inspector rather than trusting the code, since the actual stream tells you more than the label does.

Read the code first, and only reach for a relabelling tool once you know the file is an AVI carrying the wrong one.

Download MediaInfo to read the codes on your own files, or browse more inspection tools under Codec Identifiers.

The decoders themselves sit in the Video Codecs section, and FFmpeg handles almost anything on this page from the command line.

LATEST REVIEWS (0)
Be the First to Write a COMMENT!
Verification Code
Click the image or refresh button to get a new code.
Quick heads up: Reviews & comments get a fast check before posting - no spam allowed.
Link copied to clipboard!