Skip to content

Instantly share code, notes, and snippets.

@vi
Last active February 1, 2017 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vi/751b996151f888da9bb8ba0f7757d2e6 to your computer and use it in GitHub Desktop.
Save vi/751b996151f888da9bb8ba0f7757d2e6 to your computer and use it in GitHub Desktop.
Matroska element types from official spec page
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 68.
AlphaMode,4,[53][C0],-,-,-,0,u,,,*,*,*,Alpha Video Mode. Presence of this Element indicates that the BlockAdditional Element could contain Alpha data.
AspectRatioType,4,[54][B3],-,-,-,0,u,*,*,*,*,*,"Specify the possible modifications to the aspect ratio (0: free resizing, 1: keep aspect ratio, 2: fixed)."
AttachedFile,2,[61][A7],mand.,mult.,-,-,m,*,*,*,*,,An attached file.
AttachmentLink,3,[74][46],-,-,not 0,-,u,*,*,*,*,,The UID of an attachment that is used by this codec.
Attachments,1,[19][41][A4][69],-,-,-,-,m,*,*,*,*,,Contain attached files.
Audio,3,[E1],-,-,-,-,m,*,*,*,*,*,Audio settings.
BitDepth,4,[62][64],-,-,not 0,-,u,*,*,*,*,*,"Bits per sample, mostly used for PCM."
BitsPerChannel,5,[55][B2],-,-,-,0,u,,,,*,,Number of decoded bits per channel. A value of 0 indicates that the BitsPerChannel is unspecified.
Block,3,[A1],mand.,-,-,-,b,*,*,*,*,*,Block containing the actual data to be rendered and a timestamp relative to the Cluster Timecode. (see Block Structure)
BlockAddID,5,[EE],mand.,-,not 0,1,u,*,*,*,*,,An ID to identify the BlockAdditional level.
BlockAdditional,5,[A5],mand.,-,-,-,b,*,*,*,*,,Interpreted by the codec as it wishes (using the BlockAddID).
BlockAdditionID,5,[CB],-,-,-,0,u,,,,,,The ID of the BlockAdditional Element (0 is the main Block).
BlockAdditions,3,[75][A1],-,-,-,-,m,*,*,*,*,,Contain additional blocks to complete the main one. An EBML parser that has no knowledge of the Block structure could still see and use/skip these data.
BlockDuration,3,[9B],-,-,-,DefaultDuration,u,*,*,*,*,*,"The duration of the Block (based on TimecodeScale). This Element is mandatory when DefaultDuration is set for the track (but can be omitted as other default values). When not written and with no DefaultDuration, the value is assumed to be the difference between the timestamp of this Block and the timestamp of the next Block in ""display"" order (not coding order). This Element can be useful at the end of a Track (as there is not other Block available), or when there is a break in a track like for subtitle tracks. When set to 0 that means the frame is not a keyframe."
BlockGroup,2,[A0],-,mult.,-,-,m,*,*,*,*,*,"Basic container of information containing a single Block or BlockVirtual, and information specific to that Block/VirtualBlock."
BlockMore,4,[A6],mand.,mult.,-,-,m,*,*,*,*,,Contain the BlockAdditional and some parameters.
BlockVirtual,3,[A2],-,-,-,-,b,,,,,,A Block with no data. It must be stored in the stream at the place the real Block should be in display order. (see Block Virtual)
CbSubsamplingHorz,5,[55][B5],-,-,-,-,u,,,,*,,"The amount of pixels to remove in the Cb channel for every pixel not removed horizontally. This is additive with ChromaSubsamplingHorz. Example: For video with 4:2:1 chroma subsampling, the ChromaSubsamplingHorz should be set to 1 and CbSubsamplingHorz should be set to 1."
CbSubsamplingVert,5,[55][B6],-,-,-,-,u,,,,*,,The amount of pixels to remove in the Cb channel for every pixel not removed vertically. This is additive with ChromaSubsamplingVert.
ChannelPositions,4,[7D][7B],-,-,-,-,b,,,,,,"Table of horizontal angles for each successive channel, see appendix."
Channels,4,[9F],mand.,-,not 0,1,u,*,*,*,*,*,Numbers of channels in the track.
ChapCountry,5,[43][7E],-,mult.,-,-,s,*,*,*,*,,"The countries corresponding to the string, same 2 octets as in Internet domains."
ChapLanguage,5,[43][7C],mand.,mult.,-,eng,s,*,*,*,*,*,"The languages corresponding to the string, in the bibliographic ISO-639-2 form."
ChapProcess,4,[69][44],-,mult.,-,-,m,*,*,*,*,,Contains all the commands associated to the Atom.
ChapProcessCodecID,5,[69][55],mand.,-,-,0,u,*,*,*,*,,"Contains the type of the codec used for the processing. A value of 0 means native Matroska processing (to be defined), a value of 1 means the DVD command set is used. More codec IDs can be added later."
ChapProcessCommand,5,[69][11],-,mult.,-,-,m,*,*,*,*,,Contains all the commands associated to the Atom.
ChapProcessData,6,[69][33],mand.,-,-,-,b,*,*,*,*,,"Contains the command information. The data should be interpreted depending on the ChapProcessCodecID value. For ChapProcessCodecID = 1, the data correspond to the binary DVD cell pre/post commands."
ChapProcessPrivate,5,[45][0D],-,-,-,-,b,*,*,*,*,,"Some optional data attached to the ChapProcessCodecID information. For ChapProcessCodecID = 1, it is the ""DVD level"" equivalent."
ChapProcessTime,6,[69][22],mand.,-,-,-,u,*,*,*,*,,"Defines when the process command should be handled (0: during the whole chapter, 1: before starting playback, 2: after playback of the chapter)."
ChapString,5,[85],mand.,-,-,-,8,*,*,*,*,*,Contains the string to use as the chapter atom.
ChapterAtom,3+,[B6],mand.,mult.,-,-,m,*,*,*,*,*,Contains the atom information to use as the chapter atom (apply to all tracks).
ChapterDisplay,4,[80],-,mult.,-,-,m,*,*,*,*,*,Contains all possible strings to use for the chapter display.
ChapterFlagEnabled,4,[45][98],mand.,-,0-1,1,u,*,*,*,*,,"Specify wether the chapter is enabled. It can be enabled/disabled by a Control Track. When disabled, the movie should skip all the content between the TimeStart and TimeEnd of this chapter (see flag notes). (1 bit)"
ChapterFlagHidden,4,[98],mand.,-,0-1,0,u,*,*,*,*,,"If a chapter is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"
ChapterPhysicalEquiv,4,[63][C3],-,-,-,-,u,*,*,*,*,,"Specify the physical equivalent of this ChapterAtom like ""DVD"" (60) or ""SIDE"" (50), see complete list of values."
Chapters,1,[10][43][A7][70],-,-,-,-,m,*,*,*,*,*,"A system to define basic menus and partition data. For more detailed information, look at the Chapters Explanation."
ChapterSegmentEditionUID,4,[6E][BC],-,-,not 0,-,u,*,*,*,*,,The EditionUID to play from the Segment linked in ChapterSegmentUID.
ChapterSegmentUID,4,[6E][67],-,-,>0,-,b,*,*,*,*,,"A Segment to play in place of this chapter. Edition ChapterSegmentEditionUID should be used for this Segment, otherwise no edition is used."
ChapterStringUID,4,[56][54],-,-,-,-,8,,,*,*,*,A unique string ID to identify the Chapter. Use for WebVTT cue identifier storage.
ChapterTimeEnd,4,[92],-,-,-,-,u,*,*,*,*,,"Timestamp of the end of Chapter (timestamp excluded, not scaled)."
ChapterTimeStart,4,[91],mand.,-,-,-,u,*,*,*,*,*,Timestamp of the start of Chapter (not scaled).
ChapterTrack,4,[8F],-,-,-,-,m,*,*,*,*,,"List of tracks on which the chapter applies. If this Element is not present, all tracks apply"
ChapterTrackNumber,5,[89],mand.,mult.,not 0,-,u,*,*,*,*,,"UID of the Track to apply this chapter too. In the absence of a control track, choosing this chapter will select the listed Tracks and deselect unlisted tracks. Absence of this Element indicates that the Chapter should be applied to any currently used Tracks."
ChapterTranslate,2,[69][24],-,mult.,-,-,m,*,*,*,*,,A tuple of corresponding ID used by chapter codecs to represent this Segment.
ChapterTranslateCodec,3,[69][BF],mand.,-,-,-,u,*,*,*,*,,"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."
ChapterTranslateEditionUID,3,[69][FC],-,mult.,-,-,u,*,*,*,*,,"Specify an edition UID on which this correspondance applies. When not specified, it means for all editions found in the Segment."
ChapterTranslateID,3,[69][A5],mand.,-,-,-,b,*,*,*,*,,The binary value used to represent this Segment in the chapter codec data. The format depends on the ChapProcessCodecID used.
ChapterUID,4,[73][C4],mand.,-,not 0,-,u,*,*,*,*,*,A unique ID to identify the Chapter.
ChromaSitingHorz,5,[55][B7],-,-,-,0,u,,,,*,,"How chroma is subsampled horizontally. (0: Unspecified, 1: Left Collocated, 2: Half)"
ChromaSitingVert,5,[55][B8],-,-,-,0,u,,,,*,,"How chroma is subsampled vertically. (0: Unspecified, 1: Top Collocated, 2: Half)"
ChromaSubsamplingHorz,5,[55][B3],-,-,-,-,u,,,,*,,"The amount of pixels to remove in the Cr and Cb channels for every pixel not removed horizontally. Example: For video with 4:2:0 chroma subsampling, the ChromaSubsamplingHorz should be set to 1."
ChromaSubsamplingVert,5,[55][B4],-,-,-,-,u,,,,*,,"The amount of pixels to remove in the Cr and Cb channels for every pixel not removed vertically. Example: For video with 4:2:0 chroma subsampling, the ChromaSubsamplingVert should be set to 1."
Cluster,1,[1F][43][B6][75],-,mult.,-,-,m,*,*,*,*,*,The Top-Level Element containing the (monolithic) Block structure.
CodecDecodeAll,3,[AA],mand.,-,0-1,1,u,,*,*,*,,The codec can decode potentially damaged data (1 bit).
CodecDelay,3,[56][AA],-,-,-,0,u,,,,*,*,CodecDelay is The codec-built-in delay in nanoseconds. This value must be subtracted from each block timestamp in order to get the actual timestamp. The value should be small so the muxing of tracks with the same actual timestamp are in the same Cluster.
CodecDownloadURL,3,[26][B2][40],-,mult.,-,-,s,,,,,,A URL to download about the codec used.
CodecID,3,[86],mand.,-,-,-,s,*,*,*,*,*,"An ID corresponding to the codec, see the codec page for more info."
CodecInfoURL,3,[3B][40][40],-,mult.,-,-,s,,,,,,A URL to find information about the codec used.
CodecName,3,[25][86][88],-,-,-,-,8,*,*,*,*,*,A human-readable string specifying the codec.
CodecPrivate,3,[63][A2],-,-,-,-,b,*,*,*,*,*,Private data only known to the codec.
CodecSettings,3,[3A][96][97],-,-,-,-,8,,,,,,A string describing the encoding setting used.
CodecState,3,[A4],-,-,-,-,b,,*,*,*,,The new codec state to use. Data interpretation is private to the codec. This information should always be referenced by a seek entry.
Colour,4,[55][B0],-,-,-,-,m,,,,*,,Settings describing the colour format.
ColourSpace,4,[2E][B5][24],-,-,-,-,b,*,*,*,*,,Same value as in AVI (32 bits).
ContentCompAlgo,6,[42][54],mand.,-,-,0,u,*,*,*,*,,"The compression algorithm used. Algorithms that have been specified so far are:"
ContentCompression,5,[50][34],-,-,-,-,m,*,*,*,*,,Settings describing the compression used. Must be present if the value of ContentEncodingType is 0 and absent otherwise. Each block must be decompressable even if no previous block is available in order not to prevent seeking.
ContentCompSettings,6,[42][55],-,-,-,-,b,*,*,*,*,,"Settings that might be needed by the decompressor. For Header Stripping (ContentCompAlgo=3), the bytes that were removed from the beggining of each frames of the track."
ContentEncAlgo,6,[47][E1],-,-,-,0,u,*,*,*,*,,"The encryption algorithm used. The value '0' means that the contents have not been encrypted but only signed. Predefined values:
ContentEncKeyID,6,[47][E2],-,-,-,-,b,*,*,*,*,,For public key algorithms this is the ID of the public key the the data was encrypted with.
ContentEncoding,4,[62][40],mand.,mult.,-,-,m,*,*,*,*,,Settings for one content encoding like compression or encryption.
ContentEncodingOrder,5,[50][31],mand.,-,-,0,u,*,*,*,*,,Tells when this modification was used during encoding/muxing starting with 0 and counting upwards. The decoder/demuxer has to start with the highest order number it finds and work its way down. This value has to be unique over all ContentEncodingOrder Elements in the Segment.
ContentEncodings,3,[6D][80],-,-,-,-,m,*,*,*,*,,Settings for several content encoding mechanisms like compression or encryption.
ContentEncodingScope,5,[50][32],mand.,-,not 0,1,u,*,*,*,*,,"A bit field that describes which Elements have been modified in this way. Values (big endian) can be OR'ed. Possible values:
ContentEncodingType,5,[50][33],mand.,-,-,0,u,*,*,*,*,,"A value describing what kind of transformation has been done. Possible values:
ContentEncryption,5,[50][35],-,-,-,-,m,*,*,*,*,,Settings describing the encryption used. Must be present if the value of ContentEncodingType is 1 and absent otherwise.
ContentSigAlgo,6,[47][E5],-,-,-,0,u,*,*,*,*,,"The algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values:
ContentSigHashAlgo,6,[47][E6],-,-,-,0,u,*,*,*,*,,"The hash algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values:
ContentSigKeyID,6,[47][E4],-,-,-,-,b,*,*,*,*,,This is the ID of the private key the data was signed with.
ContentSignature,6,[47][E3],-,-,-,-,b,*,*,*,*,,A cryptographic signature of the contents.
CRC-32,g,[BF],-,-,-,-,b,*,*,*,*,,The CRC is computed on all the data of the Master-element it's in. The CRC Element should be the first in it's parent master for easier reading. All level 1 Elements should include a CRC-32. The CRC in use is the IEEE CRC32 Little Endian
CueBlockNumber,4,[53][78],-,-,not 0,1,u,*,*,*,*,*,Number of the Block in the specified Cluster.
CueClusterPosition,4,[F1],mand.,-,-,-,u,*,*,*,*,*,The position of the Cluster containing the required Block.
CueCodecState,4,[EA],-,-,-,0,u,,*,*,*,,The position of the Codec State corresponding to this Cue Element. 0 means that the data is taken from the initial Track Entry.
CueDuration,4,[B2],-,-,-,-,u,,,,*,,The duration of the block according to the Segment time base. If missing the track's DefaultDuration does not apply and no duration information is available in terms of the cues.
CuePoint,2,[BB],mand.,mult.,-,-,m,*,*,*,*,*,Contains all information relative to a seek point in the Segment.
CueRefCluster,5,[97],mand.,-,-,-,u,,,,,,The Position of the Cluster containing the referenced Block.
CueRefCodecState,5,[EB],-,-,-,0,u,,,,,,The position of the Codec State corresponding to this referenced Element. 0 means that the data is taken from the initial Track Entry.
CueReference,4,[DB],-,mult.,-,-,m,,*,*,*,,The Clusters containing the required referenced Blocks.
CueRefNumber,5,[53][5F],-,-,not 0,1,u,,,,,,Number of the referenced Block of Track X in the specified Cluster.
CueRefTime,5,[96],mand.,-,-,-,u,,*,*,*,,Timestamp of the referenced Block.
CueRelativePosition,4,[F0],-,-,-,-,u,,,,*,,The relative position of the referenced block inside the cluster with 0 being the first possible position for an Element inside that cluster.
Cues,1,[1C][53][BB][6B],-,-,-,-,m,*,*,*,*,*,"A Top-Level Element to speed seeking access. All entries are local to the Segment. Should be mandatory for non ""live"" streams."
CueTime,3,[B3],mand.,-,-,-,u,*,*,*,*,*,Absolute timestamp according to the Segment time base.
CueTrack,4,[F7],mand.,-,not 0,-,u,*,*,*,*,*,The track for which a position is given.
CueTrackPositions,3,[B7],mand.,mult.,-,-,m,*,*,*,*,*,Contain positions for different tracks corresponding to the timestamp.
DateUTC,2,[44][61],-,-,-,-,d,*,*,*,*,*,"Date of the origin of timestamp (value 0), i.e. production date."
DefaultDecodedFieldDuration,3,[23][4E][7A],-,-,not 0,-,u,,,,*,,The period in nanoseconds (not scaled by TimcodeScale) between two successive fields at the output of the decoding process (see the notes)
DefaultDuration,3,[23][E3][83],-,-,not 0,-,u,*,*,*,*,*,Number of nanoseconds (not scaled via TimecodeScale) per frame ('frame' in the Matroska sense -- one Element put into a (Simple)Block).
Delay,5,[CE],-,-,-,0,u,,,,,,The (scaled) delay to apply to the Element.
DiscardPadding,3,[75][A2],-,-,-,-,i,,,,*,*,"Duration in nanoseconds of the silent data added to the Block (padding at the end of the Block for positive value, at the beginning of the Block for negative value). The duration of DiscardPadding is not calculated in the duration of the TrackEntry and should be discarded during playback."
DisplayHeight,4,[54][BA],-,-,not 0,PixelHeight - PixelCropTop - Pi,u,*,*,*,*,*,Height of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements). The default value is only valid when DisplayUnit is 0.
DisplayUnit,4,[54][B2],-,-,-,0,u,*,*,*,*,*,"How DisplayWidth & DisplayHeight should be interpreted (0: pixels, 1: centimeters, 2: inches, 3: Display Aspect Ratio)."
DisplayWidth,4,[54][B0],-,-,not 0,PixelWidth - PixelCropLeft - Pi,u,*,*,*,*,*,Width of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements). The default value is only valid when DisplayUnit is 0.
DocType,1,[42][82],mand.,-,-,matroska,s,*,*,*,*,*,A string that describes the type of document that follows this EBML header. 'matroska' in our case or 'webm' for webm files.
DocTypeReadVersion,1,[42][85],mand.,-,-,1,u,*,*,*,*,*,The minimum DocType version an interpreter has to support to read this file.
DocTypeVersion,1,[42][87],mand.,-,-,1,u,*,*,*,*,*,The version of DocType interpreter used to create the file.
Duration,2,[44][89],-,-,> 0,-,f,*,*,*,*,*,Duration of the Segment (based on TimecodeScale).
EBML,0,[1A][45][DF][A3],mand.,mult.,-,-,m,*,*,*,*,*,Set the EBML characteristics of the data to follow. Each EBML document has to start with this.
EBMLMaxIDLength,1,[42][F2],mand.,-,-,4,u,*,*,*,*,*,The maximum length of the IDs you'll find in this file (4 or less in Matroska).
EBMLMaxSizeLength,1,[42][F3],mand.,-,-,8,u,*,*,*,*,*,The maximum length of the sizes you'll find in this file (8 or less in Matroska). This does not override the Element size indicated at the beginning of an Element. Elements that have an indicated size which is larger than what is allowed by EBMLMaxSizeLength shall be considered invalid.
EBMLReadVersion,1,[42][F7],mand.,-,-,1,u,*,*,*,*,*,The minimum EBML version a parser has to support to read this file.
EBMLVersion,1,[42][86],mand.,-,-,1,u,*,*,*,*,*,The version of EBML parser used to create the file.
EditionEntry,2,[45][B9],mand.,mult.,-,-,m,*,*,*,*,*,Contains all information about a Segment edition.
EditionFlagDefault,3,[45][DB],mand.,-,0-1,0,u,*,*,*,*,,If a flag is set (1) the edition should be used as the default one. (1 bit)
EditionFlagHidden,3,[45][BD],mand.,-,0-1,0,u,*,*,*,*,,"If an edition is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"
EditionFlagOrdered,3,[45][DD],-,-,0-1,0,u,*,*,*,*,,Specify if the chapters can be defined multiple times and the order to play them is enforced. (1 bit)
EditionUID,3,[45][BC],-,-,not 0,-,u,*,*,*,*,,A unique ID to identify the edition. It's useful for tagging an edition.
EncryptedBlock,2,[AF],-,mult.,-,-,b,,,,,,Similar to SimpleBlock but the data inside the Block are Transformed (encrypt and/or signed). (see EncryptedBlock Structure)
FieldOrder,4,[9D],mand.,-,0-14,2,u,,,,*,,"Declare the field ordering of the video. If FlagInterlaced is not set to 1, this Element MUST be ignored. (0: Progressive, 1: Interlaced with top field display first and top field stored first, 2: Undetermined field order, 6: Interlaced with bottom field displayed first and bottom field stored first, 9: Interlaced with bottom field displayed first and top field stored first, 14: Interlaced with top field displayed first and bottom field stored first)"
FileData,3,[46][5C],mand.,-,-,-,b,*,*,*,*,,The data of the file.
FileDescription,3,[46][7E],-,-,-,-,8,*,*,*,*,,A human-friendly name for the attached file.
FileMimeType,3,[46][60],mand.,-,-,-,s,*,*,*,*,,MIME type of the file.
FileName,3,[46][6E],mand.,-,-,-,8,*,*,*,*,,Filename of the attached file.
FileReferral,3,[46][75],-,-,-,-,b,,,,,,A binary value that a track/codec can refer to when the attachment is needed.
FileUID,3,[46][AE],mand.,-,not 0,-,u,*,*,*,*,,"Unique ID representing the file, as random as possible."
FileUsedEndTime,3,[46][62],-,-,-,-,u,,,,,,DivX font extension
FileUsedStartTime,3,[46][61],-,-,-,-,u,,,,,,DivX font extension
FlagDefault,3,[88],mand.,-,0-1,1,u,*,*,*,*,*,"Set if that track (audio, video or subs) SHOULD be active if no language found matches the user preference. (1 bit)"
FlagEnabled,3,[B9],mand.,-,0-1,1,u,,*,*,*,*,Set if the track is usable. (1 bit)
FlagForced,3,[55][AA],mand.,-,0-1,0,u,*,*,*,*,*,"Set if that track MUST be active during playback. There can be many forced track for a kind (audio, video or subs), the player should select the one which language matches the user preference or the default + forced track. Overlay MAY happen between a forced and non-forced track of the same kind. (1 bit)"
FlagInterlaced,4,[9A],mand.,-,0-2,0,u,,*,*,*,*,"A flag to declare is the video is known to be progressive or interlaced and if applicable to declare details about the interlacement. (0: undetermined, 1: interlaced, 2: progressive)"
FlagLacing,3,[9C],mand.,-,0-1,1,u,*,*,*,*,*,Set if the track may contain blocks using lacing. (1 bit)
FrameNumber,5,[CD],-,-,-,0,u,,,,,,The number of the frame to generate from this lace with this delay (allow you to generate many frames from the same Block/Frame).
FrameRate,4,[23][83][E3],-,-,> 0,-,f,,,,,,Number of frames per second. Informational only.
GammaValue,4,[2F][B5][23],-,-,> 0,-,f,,,,,,Gamma Value.
Info,1,[15][49][A9][66],mand.,mult.,-,-,m,*,*,*,*,*,Contains miscellaneous general information and statistics on the file.
LaceNumber,5,[CC],-,-,-,0,u,*,*,*,*,*,"The reverse number of the frame in the lace (0 is the last frame, 1 is the next to last, etc). While there are a few files in the wild with this Element, it is no longer in use and has been deprecated. Being able to interpret this Element is not required for playback."
Language,3,[22][B5][9C],-,-,-,eng,s,*,*,*,*,*,Specifies the language of the track in the Matroska languages form.
LuminanceMax,6,[55][D9],-,-,0-9999.99,-,f,,,,*,,Maximum luminance. Shall be represented in candelas per square meter (cd/m²).
LuminanceMin,6,[55][DA],-,-,0-999.9999,-,f,,,,*,,Mininum luminance. Shall be represented in candelas per square meter (cd/m²).
MasteringMetadata,5,[55][D0],-,-,-,-,m,,,,*,,SMPTE 2086 mastering data.
MatrixCoefficients,5,[55][B1],-,-,-,2,u,,,,*,,"The Matrix Coefficients of the video used to derive luma and chroma values from reg, green, and blue color primaries. For clarity, the value and meanings for MatrixCoefficients are adopted from Table 4 of ISO/IEC 23001-8:2013/DCOR1. (0:GBR, 1: BT709, 2: Unspecified, 3: Reserved, 4: FCC, 5: BT470BG, 6: SMPTE 170M, 7: SMPTE 240M, 8: YCOCG, 9: BT2020 Non-constant Luminance, 10: BT2020 Constant Luminance)"
MaxBlockAdditionID,3,[55][EE],mand.,-,-,0,u,*,*,*,*,,The maximum value of BlockAddID. A value 0 means there is no BlockAdditions for this track.
MaxCache,3,[6D][F8],-,-,-,-,u,*,*,*,*,,The maximum cache size required to store referenced frames in and the current frame. 0 means no cache is needed.
MaxCLL,5,[55][BC],-,-,-,-,u,,,,*,,Maximum brightness of a single pixel (Maximum Content Light Level) in candelas per square meter (cd/m²).
MaxFALL,5,[55][BD],-,-,-,-,u,,,,*,,Maximum brightness of a single full frame (Maximum Frame-Average Light Level) in candelas per square meter (cd/m²).
MinCache,3,[6D][E7],mand.,-,-,0,u,*,*,*,*,,"The minimum number of frames a player should be able to cache during playback. If set to 0, the reference pseudo-cache system is not used."
MuxingApp,2,[4D][80],mand.,-,-,-,8,*,*,*,*,*,"Muxing application or library (""libmatroska-0.4.3"")."
Name,3,[53][6E],-,-,-,-,8,*,*,*,*,*,A human-readable track name.
NextFilename,2,[3E][83][BB],-,-,-,-,8,*,*,*,*,,An escaped filename corresponding to the next Segment.
NextUID,2,[3E][B9][23],-,-,-,-,b,*,*,*,*,,A unique ID to identify the next chained Segment (128 bits).
OldStereoMode,4,[53][B9],-,-,-,-,u,,,,,,"DEPRECATED, DO NOT USE. Bogus StereoMode value used in old versions of libmatroska. (0: mono, 1: right eye, 2: left eye, 3: both eyes)."
OutputSamplingFrequency,4,[78][B5],-,-,> 0,SamplingFrequency,f,*,*,*,*,*,Real output sampling frequency in Hz (used for SBR techniques).
PixelCropBottom,4,[54][AA],-,-,-,0,u,*,*,*,*,*,The number of video pixels to remove at the bottom of the image (for HDTV content).
PixelCropLeft,4,[54][CC],-,-,-,0,u,*,*,*,*,*,The number of video pixels to remove on the left of the image.
PixelCropRight,4,[54][DD],-,-,-,0,u,*,*,*,*,*,The number of video pixels to remove on the right of the image.
PixelCropTop,4,[54][BB],-,-,-,0,u,*,*,*,*,*,The number of video pixels to remove at the top of the image.
PixelHeight,4,[BA],mand.,-,not 0,-,u,*,*,*,*,*,Height of the encoded video frames in pixels.
PixelWidth,4,[B0],mand.,-,not 0,-,u,*,*,*,*,*,Width of the encoded video frames in pixels.
Position,2,[A7],-,-,-,-,u,*,*,*,*,,The Position of the Cluster in the Segment (0 in live broadcast streams). It might help to resynchronise offset on damaged streams.
PrevFilename,2,[3C][83][AB],-,-,-,-,8,*,*,*,*,,An escaped filename corresponding to the previous Segment.
PrevSize,2,[AB],-,-,-,-,u,*,*,*,*,*,"Size of the previous Cluster, in octets. Can be useful for backward playing."
PrevUID,2,[3C][B9][23],-,-,-,-,b,*,*,*,*,,A unique ID to identify the previous chained Segment (128 bits).
Primaries,5,[55][BB],-,-,-,2,u,,,,*,,"The colour primaries of the video. For clarity, the value and meanings for Primaries are adopted from Table 2 of ISO/IEC 23001-8:2013/DCOR1. (0: Reserved, 1: ITU-R BT.709, 2: Unspecified, 3: Reserved, 4: ITU-R BT.470M, 5: ITU-R BT.470BG, 6: SMPTE 170M, 7: SMPTE 240M, 8: FILM, 9: ITU-R BT.2020, 10: SMPTE ST 428-1, 22: JEDEC P22 phosphors)"
PrimaryBChromaticityX,6,[55][D5],-,-,0-1,-,f,,,,*,,Blue X chromaticity coordinate as defined by CIE 1931.
PrimaryBChromaticityY,6,[55][D6],-,-,0-1,-,f,,,,*,,Blue Y chromaticity coordinate as defined by CIE 1931.
PrimaryGChromaticityX,6,[55][D3],-,-,0-1,-,f,,,,*,,Green X chromaticity coordinate as defined by CIE 1931.
PrimaryGChromaticityY,6,[55][D4],-,-,0-1,-,f,,,,*,,Green Y chromaticity coordinate as defined by CIE 1931.
PrimaryRChromaticityX,6,[55][D1],-,-,0-1,-,f,,,,*,,Red X chromaticity coordinate as defined by CIE 1931.
PrimaryRChromaticityY,6,[55][D2],-,-,0-1,-,f,,,,*,,Red Y chromaticity coordinate as defined by CIE 1931.
Range,5,[55][B9],-,-,-,0,u,,,,*,,"Clipping of the color ranges. (0: Unspecified, 1: Broadcast Range, 2: Full range (no clipping), 3: Defined by MatrixCoefficients/TransferCharacteristics)"
ReferenceBlock,3,[FB],-,mult.,-,-,i,*,*,*,*,*,Timestamp of another frame used as a reference (ie: B or P frame). The timestamp is relative to the block it's attached to.
ReferenceFrame,3,[C8],-,-,-,-,m,,,,,,DivX trick track extenstions
ReferenceOffset,4,[C9],mand.,-,-,-,u,,,,,,DivX trick track extenstions
ReferencePriority,3,[FA],mand.,-,-,0,u,*,*,*,*,,This frame is referenced and has the specified cache priority. In cache only a frame of the same or higher priority can replace this frame. A value of 0 means the frame is not referenced.
ReferenceTimeCode,4,[CA],mand.,-,-,-,u,,,,,,DivX trick track extenstions
ReferenceVirtual,3,[FD],-,-,-,-,i,,,,,,Relative position of the data that should be in position of the virtual block.
SamplingFrequency,4,[B5],mand.,-,> 0,8000.0,f,*,*,*,*,*,Sampling frequency in Hz.
Seek,2,[4D][BB],mand.,mult.,-,-,m,*,*,*,*,*,Contains a single seek entry to an EBML Element.
SeekHead,1,[11][4D][9B][74],-,mult.,-,-,m,*,*,*,*,*,Contains the position of other Top-Level Elements.
SeekID,3,[53][AB],mand.,-,-,-,b,*,*,*,*,*,The binary ID corresponding to the Element name.
SeekPosition,3,[53][AC],mand.,-,-,-,u,*,*,*,*,*,The position of the Element in the Segment in octets (0 = first level 1 Element).
SeekPreRoll,3,[56][BB],mand.,-,-,0,u,,,,*,*,"After a discontinuity, SeekPreRoll is the duration in nanoseconds of the data the decoder must decode before the decoded data is valid."
Segment,0,[18][53][80][67],mand.,-,-,-,m,*,*,*,*,*,The Root Element that contains all other Top-Level Elements (Elements defined only at Level 1). A Matroska file is composed of 1 Segment.
SegmentFamily,2,[44][44],-,mult.,-,-,b,*,*,*,*,,A randomly generated unique ID that all Segments related to each other must use (128 bits).
SegmentFilename,2,[73][84],-,-,-,-,8,*,*,*,*,,A filename corresponding to this Segment.
SegmentUID,2,[73][A4],-,-,not 0,-,b,*,*,*,*,,A randomly generated unique ID to identify the current Segment between many others (128 bits).
Signature,1,[7E][B5],-,-,-,-,b,,,,,,The signature of the data (until a new.
SignatureAlgo,1,[7E][8A],-,-,-,-,u,,,,,,"Signature algorithm used (1=RSA, 2=elliptic)."
SignatureElementList,2,[7E][7B],-,mult.,-,-,m,,,,,,A list consists of a number of consecutive Elements that represent one case where data is used in signature. Ex: Cluster|Block|BlockAdditional means that the BlockAdditional of all Blocks in all Clusters is used for encryption.
SignatureElements,1,[7E][5B],-,-,-,-,m,,,,,,Contains Elements that will be used to compute the signature.
SignatureHash,1,[7E][9A],-,-,-,-,u,,,,,,"Hash algorithm used (1=SHA1-160, 2=MD5)."
SignaturePublicKey,1,[7E][A5],-,-,-,-,b,,,,,,The public key to use with the algorithm (in the case of a PKI-based signature).
SignatureSlot,g,[1B][53][86][67],-,mult.,-,-,m,,,,,,Contain signature of some (coming) Elements in the stream.
SignedElement,3,[65][32],-,mult.,-,-,b,,,,,,An Element ID whose data will be used to compute the signature.
SilentTrackNumber,3,[58][D7],-,mult.,-,-,u,*,*,*,*,,One of the track number that are not used from now on in the stream. It could change later if not specified as silent in a further Cluster.
SilentTracks,2,[58][54],-,-,-,-,m,*,*,*,*,,The list of tracks that are not used in that part of the stream. It is useful when using overlay tracks on seeking. Then you should decide what track to use.
SimpleBlock,2,[A3],-,mult.,-,-,b,,*,*,*,*,"Similar to Block but without all the extra information, mostly used to reduced overhead when no extra feature is needed. (see SimpleBlock Structure)"
SimpleTag,3+,[67][C8],mand.,mult.,-,-,m,*,*,*,*,,Contains general information about the target.
SliceDuration,5,[CF],-,-,-,0,u,,,,,,The (scaled) duration to apply to the Element.
Slices,3,[8E],-,-,-,-,m,*,*,*,*,*,Contains slices description.
StereoMode,4,[53][B8],-,-,-,0,u,,,*,*,*,"Stereo-3D video mode (0: mono, 1: side by side (left eye is first), 2: top-bottom (right eye is first), 3: top-bottom (left eye is first), 4: checkboard (right is first), 5: checkboard (left is first), 6: row interleaved (right is first), 7: row interleaved (left is first), 8: column interleaved (right is first), 9: column interleaved (left is first), 10: anaglyph (cyan/red), 11: side by side (right eye is first), 12: anaglyph (green/magenta), 13 both eyes laced in one Block (left eye is first), 14 both eyes laced in one Block (right eye is first)) . There are some more details on 3D support in the Specification Notes."
Tag,2,[73][73],mand.,mult.,-,-,m,*,*,*,*,,Element containing Elements specific to Tracks/Chapters.
TagAttachmentUID,4,[63][C6],-,mult.,-,0,u,*,*,*,*,,"A unique ID to identify the Attachment(s) the tags belong to. If the value is 0 at this level, the tags apply to all the attachments in the Segment."
TagBinary,4,[44][85],-,-,-,-,b,*,*,*,*,,The values of the Tag if it is binary. Note that this cannot be used in the same SimpleTag as TagString.
TagChapterUID,4,[63][C4],-,mult.,-,0,u,*,*,*,*,,"A unique ID to identify the Chapter(s) the tags belong to. If the value is 0 at this level, the tags apply to all chapters in the Segment."
TagDefault,4,[44][84],mand.,-,0-1,1,u,*,*,*,*,,Indication to know if this is the default/original language to use for the given tag. (1 bit)
TagEditionUID,4,[63][C9],-,mult.,-,0,u,*,*,*,*,,"A unique ID to identify the EditionEntry(s) the tags belong to. If the value is 0 at this level, the tags apply to all editions in the Segment."
TagLanguage,4,[44][7A],mand.,-,-,und,s,*,*,*,*,,"Specifies the language of the tag specified, in the Matroska languages form."
TagName,4,[45][A3],mand.,-,-,-,8,*,*,*,*,,The name of the Tag that is going to be stored.
Tags,1,[12][54][C3][67],-,mult.,-,-,m,*,*,*,*,,Element containing Elements specific to Tracks/Chapters. A list of valid tags can be found here.
TagString,4,[44][87],-,-,-,-,8,*,*,*,*,,The value of the Tag.
TagTrackUID,4,[63][C5],-,mult.,-,0,u,*,*,*,*,,"A unique ID to identify the Track(s) the tags belong to. If the value is 0 at this level, the tags apply to all tracks in the Segment."
Targets,3,[63][C0],mand.,-,-,-,m,*,*,*,*,,Contain all UIDs where the specified meta data apply. It is empty to describe everything in the Segment.
TargetType,4,[63][CA],-,-,-,-,s,*,*,*,*,,"An informational string that can be used to display the logical level of the target like ""ALBUM"", ""TRACK"", ""MOVIE"", ""CHAPTER"", etc (see TargetType)."
TargetTypeValue,4,[68][CA],-,-,-,50,u,*,*,*,*,,A number to indicate the logical level of the target (see TargetType).
Timecode,2,[E7],mand.,-,-,-,u,*,*,*,*,*,Absolute timestamp of the cluster (based on TimecodeScale).
TimecodeScale,2,[2A][D7][B1],mand.,-,-,1000000,u,*,*,*,*,*,Timestamp scale in nanoseconds (1.000.000 means all timestamps in the Segment are expressed in milliseconds).
TimeSlice,4,[E8],-,mult.,-,-,m,*,*,*,*,*,"Contains extra time information about the data contained in the Block. While there are a few files in the wild with this Element, it is no longer in use and has been deprecated. Being able to interpret this Element is not required for playback."
Title,2,[7B][A9],-,-,-,-,8,*,*,*,*,,General name of the Segment.
TrackCombinePlanes,4,[E3],-,-,-,-,m,,,*,*,,Contains the list of all video plane tracks that need to be combined to create this 3D track
TrackEntry,2,[AE],mand.,mult.,-,-,m,*,*,*,*,*,Describes a track with all Elements.
TrackJoinBlocks,4,[E9],-,-,-,-,m,,,*,*,,Contains the list of all tracks whose Blocks need to be combined to create this virtual track
TrackJoinUID,5,[ED],mand.,mult.,not 0,-,u,,,*,*,,The trackUID number of a track whose blocks are used to create this virtual track.
TrackNumber,3,[D7],mand.,-,not 0,-,u,*,*,*,*,*,"The track number as used in the Block Header (using more than 127 tracks is not encouraged, though the design allows an unlimited number)."
TrackOffset,3,[53][7F],-,-,-,0,i,,,,,,A value to add to the Block's Timestamp. This can be used to adjust the playback offset of a track.
TrackOperation,3,[E2],-,-,-,-,m,,,*,*,,Operation that needs to be applied on tracks to create this virtual track. For more details look at the Specification Notes on the subject.
TrackOverlay,3,[6F][AB],-,mult.,-,-,u,*,*,*,*,,"Specify that this track is an overlay track for the Track specified (in the u-integer). That means when this track has a gap (see SilentTracks) the overlay track should be used instead. The order of multiple TrackOverlay matters, the first one is the one that should be used. If not found it should be the second, etc."
TrackPlane,5,[E4],mand.,mult.,-,-,m,,,*,*,,Contains a video plane track that need to be combined to create this 3D track
TrackPlaneType,6,[E6],mand.,-,-,-,u,,,*,*,,"The kind of plane this track corresponds to (0: left eye, 1: right eye, 2: background)."
TrackPlaneUID,6,[E5],mand.,-,not 0,-,u,,,*,*,,The trackUID number of the track representing the plane.
Tracks,1,[16][54][AE][6B],-,mult.,-,-,m,*,*,*,*,*,A Top-Level Element of information with many tracks described.
TrackTimecodeScale,3,[23][31][4F],mand.,-,> 0,1.0,f,*,*,*,,,"DEPRECATED, DO NOT USE. The scale to apply on this track to work at normal speed in relation with other tracks (mostly used to adjust video speed when the audio length differs)."
TrackTranslate,3,[66][24],-,mult.,-,-,m,*,*,*,*,,The track identification for the given Chapter Codec.
TrackTranslateCodec,4,[66][BF],mand.,-,-,-,u,*,*,*,*,,"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."
TrackTranslateEditionUID,4,[66][FC],-,mult.,-,-,u,*,*,*,*,,"Specify an edition UID on which this translation applies. When not specified, it means for all editions found in the Segment."
TrackTranslateTrackID,4,[66][A5],mand.,-,-,-,b,*,*,*,*,,The binary value used to represent this track in the chapter codec data. The format depends on the ChapProcessCodecID used.
TrackType,3,[83],mand.,-,1-254,-,u,*,*,*,*,*,"A set of track types coded on 8 bits (1: video, 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, 0x12: buttons, 0x20: control)."
TrackUID,3,[73][C5],mand.,-,not 0,-,u,*,*,*,*,*,A unique ID to identify the Track. This should be kept the same when making a direct stream copy of the Track to another file.
TransferCharacteristics,5,[55][BA],-,-,-,2,u,,,,*,,"The transfer characteristics of the video. For clarity, the value and meanings for TransferCharacteristics 1-15 are adopted from Table 3 of ISO/IEC 23001-8:2013/DCOR1. TransferCharacteristics 16-18 are proposed values. (0: Reserved, 1: ITU-R BT.709, 2: Unspecified, 3: Reserved, 4: Gamma 2.2 curve, 5: Gamma 2.8 curve, 6: SMPTE 170M, 7: SMPTE 240M, 8: Linear, 9: Log, 10: Log Sqrt, 11: IEC 61966-2-4, 12: ITU-R BT.1361 Extended Colour Gamut, 13: IEC 61966-2-1, 14: ITU-R BT.2020 10 bit, 15: ITU-R BT.2020 12 bit, 16: SMPTE ST 2084, 17: SMPTE ST 428-1 18: ARIB STD-B67 (HLG))"
TrickMasterTrackSegmentUID,3,[C4],-,-,-,-,b,,,,,,DivX trick track extenstions
TrickMasterTrackUID,3,[C7],-,-,-,-,u,,,,,,DivX trick track extenstions
TrickTrackFlag,3,[C6],-,-,-,0,u,,,,,,DivX trick track extenstions
TrickTrackSegmentUID,3,[C1],-,-,-,-,b,,,,,,DivX trick track extenstions
TrickTrackUID,3,[C0],-,-,-,-,u,,,,,,DivX trick track extenstions
Video,3,[E0],-,-,-,-,m,*,*,*,*,*,Video settings.
Void,g,[EC],-,mult.,-,-,b,*,*,*,*,*,"Used to void damaged data, to avoid unexpected behaviors when using damaged data. The content is discarded. Also used to reserve space in a sub-element for later use."
WhitePointChromaticityX,6,[55][D7],-,-,0-1,-,f,,,,*,,White X chromaticity coordinate as defined by CIE 1931.
WhitePointChromaticityY,6,[55][D8],-,-,0-1,-,f,,,,*,,White Y chromaticity coordinate as defined by CIE 1931.
WritingApp,2,[57][41],mand.,-,-,-,8,*,*,*,*,*,"Writing application (""mkvmerge-0.3.3"")."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment