A track’s CodecID string says how to read its frames, and
CodecPrivate holds the codec’s setup data. This is the
list on matroska.org.
Audio codecs marked “superseded” were replaced by plain A_AAC with an
AudioSpecificConfig.
Video
| CodecID | Codec | CodecPrivate |
|---|---|---|
V_AV1 | AV1 | AV1CodecConfigurationRecord |
V_AVS2 | AVS2-P2 | None |
V_AVS3 | AVS3-P2 | None |
V_CAVS | AVS1-P2 JiZhun | None |
V_DIRAC | BBC Dirac | None |
V_FFV1 | FFV1 lossless | None for v0 and 1; FFV1 Configuration Record for v3 and later |
V_JPEG2000 | JPEG 2000 frames | None |
V_MJPEG | Motion JPEG | None |
V_MPEGH/ISO/HEVC | HEVC/H.265 | HEVCDecoderConfigurationRecord |
V_MPEGI/ISO/VVC | VVC/H.266 | VVCDecoderConfigurationRecord |
V_MPEG1 | MPEG-1 video | None |
V_MPEG2 | MPEG-2 video | None |
V_MPEG4/ISO/AVC | AVC/H.264 | AVCDecoderConfigurationRecord, optionally an mvcC extension |
V_MPEG4/ISO/AP | MPEG-4 Advanced Profile | None |
V_MPEG4/ISO/ASP | MPEG-4 Advanced Simple (DivX 5, XviD) | None |
V_MPEG4/ISO/SP | MPEG-4 Simple Profile (DivX 4) | None |
V_MPEG4/MS/V3 | Microsoft MPEG-4 V3 (DivX 3 and similar) | None |
V_MS/VFW/FOURCC | Video for Windows VCM | BITMAPINFOHEADER and extra bytes, little-endian |
V_QUICKTIME | QuickTime video codecs | stsd atom data after the video descriptor |
V_PRORES | Apple ProRes | The FourCC, such as ap4x, apch, aprh |
V_REAL/RV10 | RealVideo 1.0 and 5 | real_video_props_t, big-endian |
V_REAL/RV20 | RealVideo G2 | real_video_props_t, big-endian |
V_REAL/RV30 | RealVideo 8 | real_video_props_t, big-endian |
V_REAL/RV40 | RealVideo 9 | real_video_props_t, big-endian |
V_THEORA | Theora | First three packets, Xiph-laced |
V_UNCOMPRESSED | Raw uncompressed video | None |
V_VC1 | VC-1 | VC1DecSpecStruc |
V_VP8 | VP8 | None |
V_VP9 | VP9 | Optional VP9 feature metadata |
Audio
| CodecID | Codec | CodecPrivate |
|---|---|---|
A_AAC | AAC | AudioSpecificConfig |
A_AAC/MPEG2/LC | MPEG-2 Low Complexity (superseded) | None |
A_AAC/MPEG2/LC/SBR | MPEG-2 LC with SBR (superseded) | None |
A_AAC/MPEG2/MAIN | MPEG-2 Main (superseded) | None |
A_AAC/MPEG2/SSR | MPEG-2 Scalable Sampling Rate (superseded) | None |
A_AAC/MPEG4/LC | MPEG-4 Low Complexity (superseded) | None |
A_AAC/MPEG4/LC/SBR | MPEG-4 LC with SBR (superseded) | None |
A_AAC/MPEG4/LTP | MPEG-4 Long Term Prediction (superseded) | None |
A_AAC/MPEG4/MAIN | MPEG-4 Main (superseded) | None |
A_AAC/MPEG4/SSR | MPEG-4 Scalable Sampling Rate (superseded) | None |
A_AC3 | Dolby Digital (AC-3) | None |
A_AC3/BSID9 | AC-3 with bsid 9 (not recommended) | None |
A_AC3/BSID10 | AC-3 with bsid 10 (not recommended) | None |
A_ALAC | Apple Lossless | Magic cookie |
A_ATRAC/AT1 | Sony ATRAC1 | None |
A_DTS | DTS | None |
A_DTS/EXPRESS | DTS Express (LBR) | None |
A_DTS/LOSSLESS | DTS Lossless (XLL) | None |
A_EAC3 | Dolby Digital Plus (E-AC-3) | None |
A_FLAC | FLAC | All FLAC data before the first frame |
A_MLP | Meridian Lossless Packing | None |
A_MPEG/L1 | MPEG Audio Layer I | None |
A_MPEG/L2 | MPEG Audio Layer II | None |
A_MPEG/L3 | MPEG Audio Layer III | None |
A_MS/ACM | Microsoft Audio Codec Manager | WAVEFORMATEX and extra bytes |
A_OPUS | Opus | Identification Header |
A_PCM/FLOAT/IEEE | IEEE float PCM | None |
A_PCM/INT/BIG | Big-endian integer PCM | None |
A_PCM/INT/LIT | Little-endian integer PCM | None |
A_QUICKTIME | QuickTime audio codecs | stsd data after the sound descriptor |
A_QUICKTIME/QDMC | QDesign Music (superseded) | stsd data after the sound descriptor |
A_QUICKTIME/QDM2 | QDesign Music v2 (superseded) | stsd data after the sound descriptor |
A_REAL/14_4 | Real Audio 1 | real_audio_v4 or v5 props |
A_REAL/28_8 | Real Audio 2 | real_audio_v4 or v5 props |
A_REAL/ATRC | Sony ATRAC3 | real_audio_v4 or v5 props |
A_REAL/COOK | Real Audio Cook | real_audio_v4 or v5 props |
A_REAL/RALF | Real Audio Lossless | real_audio_v4 or v5 props |
A_REAL/SIPR | Sipro voice | real_audio_v4 or v5 props |
A_TRUEHD | Dolby TrueHD | None |
A_TTA1 | True Audio | TTA header structure |
A_VORBIS | Vorbis | First three packets, Xiph-laced |
A_WAVPACK4 | WavPack | Version as 16-bit integer, little-endian |
Subtitles and buttons
| CodecID | Codec | CodecPrivate |
|---|---|---|
S_ARIBSUB | ARIB STD-B24 subtitles | Defined in the specification’s dedicated section |
S_DVBSUB | DVB graphical subtitles | Defined in the specification’s dedicated section |
S_HDMV/PGS | Blu-ray graphics subtitles | None |
S_HDMV/TEXTST | Blu-ray text subtitles | Defined in the specification’s dedicated section |
S_KATE | Karaoke And Text Encapsulation | Kate headers, Xiph-laced |
S_IMAGE/BMP | Bitmap image subtitles | None |
S_TEXT/ASS | Advanced SubStation Alpha | [Script Info] and styles sections |
S_ASS | Legacy name for ASS (not recommended) | As S_TEXT/ASS |
S_TEXT/ASCII | ASCII plain text | None |
S_TEXT/SSA | SubStation Alpha | [Script Info] and styles sections |
S_SSA | Legacy name for SSA (not recommended) | As S_TEXT/SSA |
S_TEXT/USF | Universal Subtitle Format (XML) | Optional metadata, styles and effects XML |
S_TEXT/UTF8 | UTF-8 plain text | None |
S_TEXT/WEBVTT | WebVTT | File body up to the first cue block |
S_VOBSUB | DVD VobSub | Palette and size lines from the .idx file |
B_VOBBTN | VobBtn DVD buttons | Not specified |