FourCC
A FourCC ("four-character code") is a sequence of four bytes (typically ASCII) used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives. The idea was later reused to identify compressed data types in QuickTime and DirectShow.
A FourCC ("four-character code") is a sequence of four bytes (typically ASCII) used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives. The idea was later reused to identify compressed data types in QuickTime and DirectShow. ==History== In 1984, the earliest version of a Macintosh OS, System 1, was released. It used the single-level Macintosh File System with metadata fields including file types, creator (application) information, and forks to store additional resources. It was possible to change this information without changing the data itself, so that they could be interpreted differently. Identical codes were used throughout the system, as type tags for all kinds of data. In 1985, Electronic Arts introduced the Interchange File Format (IFF) meta-format (family of file formats), originally devised for use on the Amiga. These files consisted of a sequence of "chunks", which could contain arbitrary data, each chunk prefixed by a four-byte ID. The IFF specification explicitly mentions that the origins of the FourCC idea lie with Apple. This IFF was adopted by a number of developers including Apple for AIFF files and Microsoft for RIFF files (which were used as the basis for the AVI and WAV file formats). Apple referred to many of these codes as OSTypes. Microsoft and Windows developers refer to their four-byte identifiers as FourCCs or Four-Character Codes. FourCC codes were also adopted by Microsoft to identify data formats used in DirectX, specifically within DirectShow and DirectX Graphics. The byte sequence is usually restricted to ASCII printable characters, with space characters reserved for padding shorter sequences. Case sensitivity is preserved, unlike in file extensions. FourCCs are sometimes encoded in hexadecimal (e.g., "0x31637661" for 'avc1') and sometimes encoded in a human-readable way (e.g., "mp4a"). Some FourCCs however, do contain non-printable characters, and are not human-readable without special formatting for display; for example, 10bit Y'CbCr 4:2:2 video can have a FourCC of ('Y', '3', 10, 10) which ffmpeg displays as rawvideo (Y3[10] [10] / 0x0A0A3359), yuv422p10le . Four-byte identifiers are useful because they can be made up of four human-readable characters with mnemonic qualities, while still fitting in the four-byte memory space typically allocated for integers in 32-bit systems (although endian issues may make them less readable). Thus, the codes can be used efficiently in program code as integers, as well as giving cues in binary data streams when inspected. ==Common uses== One of the most well-known uses of FourCCs is to identify the video codec or video coding format in AVI files. Common identifiers include DIVX, XVID, and H264. For audio coding formats, AVI and WAV files use a two-byte identifier, usually written in hexadecimal (such as 0055 for MP3). In QuickTime files, these two-byte identifiers are prefixed with the letters "ms" to form a four-character code. RealMedia files also use four-character codes, however, the actual codes used differ from those found in AVI or QuickTime files. Other file formats that make important use of the four-byte ID concept are the Standard MIDI File (SMF) format, the PNG image file format, the 3DS (3D Studio Max) mesh file format and the ICC profile format. Four-character codes are also used in applications other than file formats, for example: UEFI Forum for vendor in the ACPI ID Registry ACPI specification defines four-character identifiers in ACPI Source Language (ASL) Synopsys to tell component ID via registers of an IP (DesignWare collection) Other uses for OSTypes include: as record field IDs and event type and class IDs in AppleEvents for identifying components in the Component Manager as “atom” IDs in the QuickTime movie and image file formats as a localization-independent way of identifying standard folders in the Folder Manager in QuickDraw GX, they were used as gxTag types and also as types of collection items in the Collection Manager. Enumeration constants in Apple APIs (as an integer; host endianess) "OSStatus" error codes in certain libraries, such as QuickTime (as an integer; host endianess) For creator and resource type in PalmOS, under the data manager. ==See also== Filename extension (also known as "file extension") Interchange File Format Magic number OSType (now merged into this page, though the subpages remain independent) creator code type code ==References== ===General references=== Official Registration Authority for the ISOBMFF family of standards
References
- The Type/Creator Database Wikipedia revision 1335278691, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "The Type/Creator Database Wikipedia revision 1335278691, retrieved 2026-11-19." 2026-11-18. http://www.lacikam.co.il/tcdb/. Accessed 24 November 2026.
Chicago "The Type/Creator Database Wikipedia revision 1335278691, retrieved 2026-11-19." 2026-11-18. http://www.lacikam.co.il/tcdb/.
APA encyclopegia.org. (2026). The Type/Creator Database Wikipedia revision 1335278691, retrieved 2026-11-19. Retrieved November 24, 2026, from http://www.lacikam.co.il/tcdb/
- The C Preprocessor: Implementation-defined behavior · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "The C Preprocessor: Implementation-defined behavior." 2026-11-18. https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html. Accessed 24 November 2026.
Chicago "The C Preprocessor: Implementation-defined behavior." 2026-11-18. https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html.
APA encyclopegia.org. (2026). The C Preprocessor: Implementation-defined behavior. Retrieved November 24, 2026, from https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html
- ACPI ID Registry · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "ACPI ID Registry." 2026-11-18. http://www.uefi.org/acpi_id_list. Accessed 24 November 2026.
Chicago "ACPI ID Registry." 2026-11-18. http://www.uefi.org/acpi_id_list.
APA encyclopegia.org. (2026). ACPI ID Registry. Retrieved November 24, 2026, from http://www.uefi.org/acpi_id_list
- OSStatus — Apple API Errors · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "OSStatus — Apple API Errors." 2026-11-18. https://www.osstatus.com/search/results?platform=all&framework=all&search=who%3F. Accessed 24 November 2026.
Chicago "OSStatus — Apple API Errors." 2026-11-18. https://www.osstatus.com/search/results?platform=all&framework=all&search=who%3F.
APA encyclopegia.org. (2026). OSStatus — Apple API Errors. Retrieved November 24, 2026, from https://www.osstatus.com/search/results?platform=all&framework=all&search=who%3F
- Palm OS® Programmer's API Reference Chapter 30: Data and Resource Manager · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "Palm OS® Programmer's API Reference Chapter 30: Data and Resource Manager." 2026-11-18. https://palm.wiki/development/docs/601/PalmOSReference/DataAndResourceManager.html. Accessed 24 November 2026.
Chicago "Palm OS® Programmer's API Reference Chapter 30: Data and Resource Manager." 2026-11-18. https://palm.wiki/development/docs/601/PalmOSReference/DataAndResourceManager.html.
APA encyclopegia.org. (2026). Palm OS® Programmer's API Reference Chapter 30: Data and Resource Manager. Retrieved November 24, 2026, from https://palm.wiki/development/docs/601/PalmOSReference/DataAndResourceManager.html
- Signatures of Macintosh Files · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "Signatures of Macintosh Files." 2026-11-18. http://www.macdisk.com/macsigen.php. Accessed 24 November 2026.
Chicago "Signatures of Macintosh Files." 2026-11-18. http://www.macdisk.com/macsigen.php.
APA encyclopegia.org. (2026). Signatures of Macintosh Files. Retrieved November 24, 2026, from http://www.macdisk.com/macsigen.php
- EA IFF 85 · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "EA IFF 85." Morrison, Jerry (January 14, 1985). 2026-11-18. http://www.martinreddy.net/gfx/2d/IFF.txt. Accessed 24 November 2026.
Chicago "EA IFF 85." Morrison, Jerry (January 14, 1985). 2026-11-18. http://www.martinreddy.net/gfx/2d/IFF.txt.
APA Morrison, Jerry (January 14, 1985). (2026). EA IFF 85. Retrieved November 24, 2026, from http://www.martinreddy.net/gfx/2d/IFF.txt
- GetFileInfo · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "GetFileInfo." "GetFileInfo", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. 2026-11-18. https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/GetFileInfo.1.html. Accessed 24 November 2026.
Chicago "GetFileInfo." "GetFileInfo", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. 2026-11-18. https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/GetFileInfo.1.html.
APA "GetFileInfo", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. (2026). GetFileInfo. Retrieved November 24, 2026, from https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/GetFileInfo.1.html
- SetFile · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "SetFile." "SetFile", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. 2026-11-18. https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/SetFile.1.html. Accessed 24 November 2026.
Chicago "SetFile." "SetFile", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. 2026-11-18. https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/SetFile.1.html.
APA "SetFile", Darwin reference (man page), Apple Wikipedia revision 1335278691, retrieved 2026-11-19. (2026). SetFile. Retrieved November 24, 2026, from https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/SetFile.1.html
- What Is A Codec Tag? · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "What Is A Codec Tag?." online-metadata. 2026-11-18. https://www.get-metadata.com/file-info/codec-tag. Accessed 24 November 2026.
Chicago "What Is A Codec Tag?." online-metadata. 2026-11-18. https://www.get-metadata.com/file-info/codec-tag.
APA online-metadata. (2026). What Is A Codec Tag?. Retrieved November 24, 2026, from https://www.get-metadata.com/file-info/codec-tag
- git.videolan.org Git - ffmpeg.git/blob - libavformat/isom.c · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "git.videolan.org Git - ffmpeg.git/blob - libavformat/isom.c." "git. 2026-11-18. https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/isom.c. Accessed 24 November 2026.
Chicago "git.videolan.org Git - ffmpeg.git/blob - libavformat/isom.c." "git. 2026-11-18. https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/isom.c.
APA "git. (2026). git.videolan.org Git - ffmpeg.git/blob - libavformat/isom.c. Retrieved November 24, 2026, from https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/isom.c
- FFmpeg/FFmpeg search · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "FFmpeg/FFmpeg search." 2026-11-18. https://github.com/FFmpeg/FFmpeg. Accessed 24 November 2026.
Chicago "FFmpeg/FFmpeg search." 2026-11-18. https://github.com/FFmpeg/FFmpeg.
APA encyclopegia.org. (2026). FFmpeg/FFmpeg search. Retrieved November 24, 2026, from https://github.com/FFmpeg/FFmpeg
- FFmpeg: libavcodec/raw.c Source File · retrieved 2026-11-18 · rev 1335278691
Cite this reference
MLA "FFmpeg: libavcodec/raw.c Source File." "FFmpeg: libavcodec/raw. 2026-11-18. https://ffmpeg.org/doxygen/trunk/raw_8c_source.html#l00136. Accessed 24 November 2026.
Chicago "FFmpeg: libavcodec/raw.c Source File." "FFmpeg: libavcodec/raw. 2026-11-18. https://ffmpeg.org/doxygen/trunk/raw_8c_source.html#l00136.
APA "FFmpeg: libavcodec/raw. (2026). FFmpeg: libavcodec/raw.c Source File. Retrieved November 24, 2026, from https://ffmpeg.org/doxygen/trunk/raw_8c_source.html#l00136
Cite this article
MLA
"FourCC." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fourcc. Accessed 24 November 2026.
Chicago
"FourCC." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/fourcc.
APA
encyclopegia.org. (2026). FourCC. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/fourcc
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON