cellar S. Lhomme Internet-Draft Intended status: Standards Track M. Bunkus Expires: January 9, 2017 D. Rice July 8, 2016 Matroska draft-lhomme-cellar-matroska-00 Abstract This document defines the Matroska audiovisual container, including definitions of its structural Elements, as well as its terminology, vocabulary, and application. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on January 9, 2017. Copyright Notice Copyright (c) 2016 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Lhomme, et al. Expires January 9, 2017 [Page 1] Internet-Draft Matroska July 2016 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 9 2. Status of this document . . . . . . . . . . . . . . . . . . . 10 3. Security Considerations . . . . . . . . . . . . . . . . . . . 10 4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 11 5. Notations and Conventions . . . . . . . . . . . . . . . . . . 11 6. Basis in EBML . . . . . . . . . . . . . . . . . . . . . . . . 11 6.1. Added Constaints on EBML . . . . . . . . . . . . . . . . 11 6.2. Matroska Design . . . . . . . . . . . . . . . . . . . . . 11 6.2.1. Language Codes . . . . . . . . . . . . . . . . . . . 11 6.2.2. Physical Types . . . . . . . . . . . . . . . . . . . 11 6.2.3. Block Structure . . . . . . . . . . . . . . . . . . . 12 6.2.4. Lacing . . . . . . . . . . . . . . . . . . . . . . . 13 7. Matroska Schema . . . . . . . . . . . . . . . . . . . . . . . 17 7.1. EBML Schema Element Attributes . . . . . . . . . . . . . 18 7.2. Matroska Additions to Schema Element Attributes . . . . . 22 7.3. Matroska Schema . . . . . . . . . . . . . . . . . . . . . 23 8. Segment . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 9. SeekHead . . . . . . . . . . . . . . . . . . . . . . . . . . 23 10. Seek . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 11. SeekID . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 12. SeekPosition . . . . . . . . . . . . . . . . . . . . . . . . 25 13. Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 14. SegmentUID . . . . . . . . . . . . . . . . . . . . . . . . . 26 15. SegmentFilename . . . . . . . . . . . . . . . . . . . . . . . 26 16. PrevUID . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 17. PrevFilename . . . . . . . . . . . . . . . . . . . . . . . . 27 18. NextUID . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 19. NextFilename . . . . . . . . . . . . . . . . . . . . . . . . 28 20. SegmentFamily . . . . . . . . . . . . . . . . . . . . . . . . 29 21. ChapterTranslate . . . . . . . . . . . . . . . . . . . . . . 29 22. ChapterTranslateEditionUID . . . . . . . . . . . . . . . . . 30 23. ChapterTranslateCodec . . . . . . . . . . . . . . . . . . . . 31 24. ChapterTranslateID . . . . . . . . . . . . . . . . . . . . . 31 25. TimecodeScale . . . . . . . . . . . . . . . . . . . . . . . . 32 26. Duration . . . . . . . . . . . . . . . . . . . . . . . . . . 32 27. DateUTC . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 28. Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 29. MuxingApp . . . . . . . . . . . . . . . . . . . . . . . . . . 33 30. WritingApp . . . . . . . . . . . . . . . . . . . . . . . . . 34 31. Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 32. Timecode . . . . . . . . . . . . . . . . . . . . . . . . . . 35 33. SilentTracks . . . . . . . . . . . . . . . . . . . . . . . . 35 34. SilentTrackNumber . . . . . . . . . . . . . . . . . . . . . . 36 35. Position . . . . . . . . . . . . . . . . . . . . . . . . . . 36 36. PrevSize . . . . . . . . . . . . . . . . . . . . . . . . . . 37 37. SimpleBlock . . . . . . . . . . . . . . . . . . . . . . . . . 37 Lhomme, et al. Expires January 9, 2017 [Page 2] Internet-Draft Matroska July 2016 38. BlockGroup . . . . . . . . . . . . . . . . . . . . . . . . . 38 39. Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 40. BlockVirtual . . . . . . . . . . . . . . . . . . . . . . . . 39 41. BlockAdditions . . . . . . . . . . . . . . . . . . . . . . . 40 42. BlockMore . . . . . . . . . . . . . . . . . . . . . . . . . . 40 43. BlockAddID . . . . . . . . . . . . . . . . . . . . . . . . . 41 44. BlockAdditional . . . . . . . . . . . . . . . . . . . . . . . 41 45. BlockDuration . . . . . . . . . . . . . . . . . . . . . . . . 42 46. ReferencePriority . . . . . . . . . . . . . . . . . . . . . . 42 47. ReferenceBlock . . . . . . . . . . . . . . . . . . . . . . . 43 48. ReferenceVirtual . . . . . . . . . . . . . . . . . . . . . . 44 49. CodecState . . . . . . . . . . . . . . . . . . . . . . . . . 44 50. DiscardPadding . . . . . . . . . . . . . . . . . . . . . . . 44 51. Slices . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 52. TimeSlice . . . . . . . . . . . . . . . . . . . . . . . . . . 45 53. LaceNumber . . . . . . . . . . . . . . . . . . . . . . . . . 46 54. FrameNumber . . . . . . . . . . . . . . . . . . . . . . . . . 47 55. BlockAdditionID . . . . . . . . . . . . . . . . . . . . . . . 48 56. Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 57. SliceDuration . . . . . . . . . . . . . . . . . . . . . . . . 49 58. ReferenceFrame . . . . . . . . . . . . . . . . . . . . . . . 50 59. ReferenceOffset . . . . . . . . . . . . . . . . . . . . . . . 50 60. ReferenceTimeCode . . . . . . . . . . . . . . . . . . . . . . 50 61. EncryptedBlock . . . . . . . . . . . . . . . . . . . . . . . 51 62. Tracks . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 63. TrackEntry . . . . . . . . . . . . . . . . . . . . . . . . . 52 64. TrackNumber . . . . . . . . . . . . . . . . . . . . . . . . . 53 65. TrackUID . . . . . . . . . . . . . . . . . . . . . . . . . . 53 66. TrackType . . . . . . . . . . . . . . . . . . . . . . . . . . 54 67. FlagEnabled . . . . . . . . . . . . . . . . . . . . . . . . . 54 68. FlagDefault . . . . . . . . . . . . . . . . . . . . . . . . . 54 69. FlagForced . . . . . . . . . . . . . . . . . . . . . . . . . 55 70. FlagLacing . . . . . . . . . . . . . . . . . . . . . . . . . 56 71. MinCache . . . . . . . . . . . . . . . . . . . . . . . . . . 56 72. MaxCache . . . . . . . . . . . . . . . . . . . . . . . . . . 56 73. DefaultDuration . . . . . . . . . . . . . . . . . . . . . . . 57 74. DefaultDecodedFieldDuration . . . . . . . . . . . . . . . . . 57 75. TrackTimecodeScale . . . . . . . . . . . . . . . . . . . . . 58 76. TrackOffset . . . . . . . . . . . . . . . . . . . . . . . . . 59 77. MaxBlockAdditionID . . . . . . . . . . . . . . . . . . . . . 59 78. Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 79. Language . . . . . . . . . . . . . . . . . . . . . . . . . . 60 80. CodecID . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 81. CodecPrivate . . . . . . . . . . . . . . . . . . . . . . . . 61 82. CodecName . . . . . . . . . . . . . . . . . . . . . . . . . . 61 83. AttachmentLink . . . . . . . . . . . . . . . . . . . . . . . 62 84. CodecSettings . . . . . . . . . . . . . . . . . . . . . . . . 62 85. CodecInfoURL . . . . . . . . . . . . . . . . . . . . . . . . 63 Lhomme, et al. Expires January 9, 2017 [Page 3] Internet-Draft Matroska July 2016 86. CodecDownloadURL . . . . . . . . . . . . . . . . . . . . . . 63 87. CodecDecodeAll . . . . . . . . . . . . . . . . . . . . . . . 64 88. TrackOverlay . . . . . . . . . . . . . . . . . . . . . . . . 64 89. CodecDelay . . . . . . . . . . . . . . . . . . . . . . . . . 65 90. SeekPreRoll . . . . . . . . . . . . . . . . . . . . . . . . . 66 91. TrackTranslate . . . . . . . . . . . . . . . . . . . . . . . 66 92. TrackTranslateEditionUID . . . . . . . . . . . . . . . . . . 66 93. TrackTranslateCodec . . . . . . . . . . . . . . . . . . . . . 67 94. TrackTranslateTrackID . . . . . . . . . . . . . . . . . . . . 68 95. Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 96. FlagInterlaced . . . . . . . . . . . . . . . . . . . . . . . 69 97. FieldOrder . . . . . . . . . . . . . . . . . . . . . . . . . 69 98. StereoMode . . . . . . . . . . . . . . . . . . . . . . . . . 70 99. AlphaMode . . . . . . . . . . . . . . . . . . . . . . . . . . 71 100. OldStereoMode . . . . . . . . . . . . . . . . . . . . . . . 72 101. PixelWidth . . . . . . . . . . . . . . . . . . . . . . . . . 73 102. PixelHeight . . . . . . . . . . . . . . . . . . . . . . . . 73 103. PixelCropBottom . . . . . . . . . . . . . . . . . . . . . . 74 104. PixelCropTop . . . . . . . . . . . . . . . . . . . . . . . . 74 105. PixelCropLeft . . . . . . . . . . . . . . . . . . . . . . . 75 106. PixelCropRight . . . . . . . . . . . . . . . . . . . . . . . 75 107. DisplayWidth . . . . . . . . . . . . . . . . . . . . . . . . 76 108. DisplayHeight . . . . . . . . . . . . . . . . . . . . . . . 76 109. DisplayUnit . . . . . . . . . . . . . . . . . . . . . . . . 77 110. AspectRatioType . . . . . . . . . . . . . . . . . . . . . . 78 111. ColourSpace . . . . . . . . . . . . . . . . . . . . . . . . 78 112. GammaValue . . . . . . . . . . . . . . . . . . . . . . . . . 79 113. FrameRate . . . . . . . . . . . . . . . . . . . . . . . . . 79 114. Colour . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 115. MatrixCoefficients . . . . . . . . . . . . . . . . . . . . . 80 116. BitsPerChannel . . . . . . . . . . . . . . . . . . . . . . . 81 117. ChromaSubsamplingHorz . . . . . . . . . . . . . . . . . . . 82 118. ChromaSubsamplingVert . . . . . . . . . . . . . . . . . . . 83 119. CbSubsamplingHorz . . . . . . . . . . . . . . . . . . . . . 84 120. CbSubsamplingVert . . . . . . . . . . . . . . . . . . . . . 85 121. ChromaSitingHorz . . . . . . . . . . . . . . . . . . . . . . 86 122. ChromaSitingVert . . . . . . . . . . . . . . . . . . . . . . 87 123. Range . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 124. TransferCharacteristics . . . . . . . . . . . . . . . . . . 88 125. Primaries . . . . . . . . . . . . . . . . . . . . . . . . . 89 126. MaxCLL . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 127. MaxFALL . . . . . . . . . . . . . . . . . . . . . . . . . . 91 128. MasteringMetadata . . . . . . . . . . . . . . . . . . . . . 92 129. PrimaryRChromaticityX . . . . . . . . . . . . . . . . . . . 92 130. PrimaryRChromaticityY . . . . . . . . . . . . . . . . . . . 93 131. PrimaryGChromaticityX . . . . . . . . . . . . . . . . . . . 94 132. PrimaryGChromaticityY . . . . . . . . . . . . . . . . . . . 95 133. PrimaryBChromaticityX . . . . . . . . . . . . . . . . . . . 96 Lhomme, et al. Expires January 9, 2017 [Page 4] Internet-Draft Matroska July 2016 134. PrimaryBChromaticityY . . . . . . . . . . . . . . . . . . . 97 135. WhitePointChromaticityX . . . . . . . . . . . . . . . . . . 98 136. WhitePointChromaticityY . . . . . . . . . . . . . . . . . . 99 137. LuminanceMax . . . . . . . . . . . . . . . . . . . . . . . . 100 138. LuminanceMin . . . . . . . . . . . . . . . . . . . . . . . . 101 139. Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 140. SamplingFrequency . . . . . . . . . . . . . . . . . . . . . 103 141. OutputSamplingFrequency . . . . . . . . . . . . . . . . . . 103 142. Channels . . . . . . . . . . . . . . . . . . . . . . . . . . 104 143. ChannelPositions . . . . . . . . . . . . . . . . . . . . . . 104 144. BitDepth . . . . . . . . . . . . . . . . . . . . . . . . . . 105 145. TrackOperation . . . . . . . . . . . . . . . . . . . . . . . 105 146. TrackCombinePlanes . . . . . . . . . . . . . . . . . . . . . 106 147. TrackPlane . . . . . . . . . . . . . . . . . . . . . . . . . 106 148. TrackPlaneUID . . . . . . . . . . . . . . . . . . . . . . . 107 149. TrackPlaneType . . . . . . . . . . . . . . . . . . . . . . . 107 150. TrackJoinBlocks . . . . . . . . . . . . . . . . . . . . . . 108 151. TrackJoinUID . . . . . . . . . . . . . . . . . . . . . . . . 109 152. TrickTrackUID . . . . . . . . . . . . . . . . . . . . . . . 109 153. TrickTrackSegmentUID . . . . . . . . . . . . . . . . . . . . 109 154. TrickTrackFlag . . . . . . . . . . . . . . . . . . . . . . . 110 155. TrickMasterTrackUID . . . . . . . . . . . . . . . . . . . . 110 156. TrickMasterTrackSegmentUID . . . . . . . . . . . . . . . . . 111 157. ContentEncodings . . . . . . . . . . . . . . . . . . . . . . 112 158. ContentEncoding . . . . . . . . . . . . . . . . . . . . . . 112 159. ContentEncodingOrder . . . . . . . . . . . . . . . . . . . . 113 160. ContentEncodingScope . . . . . . . . . . . . . . . . . . . . 113 161. ContentEncodingType . . . . . . . . . . . . . . . . . . . . 114 162. ContentCompression . . . . . . . . . . . . . . . . . . . . . 115 163. ContentCompAlgo . . . . . . . . . . . . . . . . . . . . . . 116 164. ContentCompSettings . . . . . . . . . . . . . . . . . . . . 117 165. ContentEncryption . . . . . . . . . . . . . . . . . . . . . 118 166. ContentEncAlgo . . . . . . . . . . . . . . . . . . . . . . . 119 167. ContentEncKeyID . . . . . . . . . . . . . . . . . . . . . . 120 168. ContentSignature . . . . . . . . . . . . . . . . . . . . . . 121 169. ContentSigKeyID . . . . . . . . . . . . . . . . . . . . . . 122 170. ContentSigAlgo . . . . . . . . . . . . . . . . . . . . . . . 123 171. ContentSigHashAlgo . . . . . . . . . . . . . . . . . . . . . 124 172. Cues . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 173. CuePoint . . . . . . . . . . . . . . . . . . . . . . . . . . 126 174. CueTime . . . . . . . . . . . . . . . . . . . . . . . . . . 126 175. CueTrackPositions . . . . . . . . . . . . . . . . . . . . . 126 176. CueTrack . . . . . . . . . . . . . . . . . . . . . . . . . . 127 177. CueClusterPosition . . . . . . . . . . . . . . . . . . . . . 128 178. CueRelativePosition . . . . . . . . . . . . . . . . . . . . 128 179. CueDuration . . . . . . . . . . . . . . . . . . . . . . . . 129 180. CueBlockNumber . . . . . . . . . . . . . . . . . . . . . . . 129 181. CueCodecState . . . . . . . . . . . . . . . . . . . . . . . 130 Lhomme, et al. Expires January 9, 2017 [Page 5] Internet-Draft Matroska July 2016 182. CueReference . . . . . . . . . . . . . . . . . . . . . . . . 131 183. CueRefTime . . . . . . . . . . . . . . . . . . . . . . . . . 131 184. CueRefCluster . . . . . . . . . . . . . . . . . . . . . . . 132 185. CueRefNumber . . . . . . . . . . . . . . . . . . . . . . . . 132 186. CueRefCodecState . . . . . . . . . . . . . . . . . . . . . . 133 187. Attachments . . . . . . . . . . . . . . . . . . . . . . . . 134 188. AttachedFile . . . . . . . . . . . . . . . . . . . . . . . . 134 189. FileDescription . . . . . . . . . . . . . . . . . . . . . . 134 190. FileName . . . . . . . . . . . . . . . . . . . . . . . . . . 135 191. FileMimeType . . . . . . . . . . . . . . . . . . . . . . . . 135 192. FileData . . . . . . . . . . . . . . . . . . . . . . . . . . 136 193. FileUID . . . . . . . . . . . . . . . . . . . . . . . . . . 136 194. FileReferral . . . . . . . . . . . . . . . . . . . . . . . . 137 195. FileUsedStartTime . . . . . . . . . . . . . . . . . . . . . 137 196. FileUsedEndTime . . . . . . . . . . . . . . . . . . . . . . 138 197. Chapters . . . . . . . . . . . . . . . . . . . . . . . . . . 138 198. EditionEntry . . . . . . . . . . . . . . . . . . . . . . . . 139 199. EditionUID . . . . . . . . . . . . . . . . . . . . . . . . . 139 200. EditionFlagHidden . . . . . . . . . . . . . . . . . . . . . 140 201. EditionFlagDefault . . . . . . . . . . . . . . . . . . . . . 140 202. EditionFlagOrdered . . . . . . . . . . . . . . . . . . . . . 141 203. ChapterAtom . . . . . . . . . . . . . . . . . . . . . . . . 141 204. ChapterUID . . . . . . . . . . . . . . . . . . . . . . . . . 142 205. ChapterStringUID . . . . . . . . . . . . . . . . . . . . . . 143 206. ChapterTimeStart . . . . . . . . . . . . . . . . . . . . . . 143 207. ChapterTimeEnd . . . . . . . . . . . . . . . . . . . . . . . 144 208. ChapterFlagHidden . . . . . . . . . . . . . . . . . . . . . 144 209. ChapterFlagEnabled . . . . . . . . . . . . . . . . . . . . . 145 210. ChapterSegmentUID . . . . . . . . . . . . . . . . . . . . . 145 211. ChapterSegmentEditionUID . . . . . . . . . . . . . . . . . . 146 212. ChapterPhysicalEquiv . . . . . . . . . . . . . . . . . . . . 147 213. ChapterTrack . . . . . . . . . . . . . . . . . . . . . . . . 147 214. ChapterTrackNumber . . . . . . . . . . . . . . . . . . . . . 148 215. ChapterDisplay . . . . . . . . . . . . . . . . . . . . . . . 148 216. ChapString . . . . . . . . . . . . . . . . . . . . . . . . . 149 217. ChapLanguage . . . . . . . . . . . . . . . . . . . . . . . . 150 218. ChapCountry . . . . . . . . . . . . . . . . . . . . . . . . 150 219. ChapProcess . . . . . . . . . . . . . . . . . . . . . . . . 151 220. ChapProcessCodecID . . . . . . . . . . . . . . . . . . . . . 152 221. ChapProcessPrivate . . . . . . . . . . . . . . . . . . . . . 152 222. ChapProcessCommand . . . . . . . . . . . . . . . . . . . . . 153 223. ChapProcessTime . . . . . . . . . . . . . . . . . . . . . . 154 224. ChapProcessData . . . . . . . . . . . . . . . . . . . . . . 154 225. Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 226. Tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 227. Targets . . . . . . . . . . . . . . . . . . . . . . . . . . 156 228. TargetTypeValue . . . . . . . . . . . . . . . . . . . . . . 156 229. TargetType . . . . . . . . . . . . . . . . . . . . . . . . . 157 Lhomme, et al. Expires January 9, 2017 [Page 6] Internet-Draft Matroska July 2016 230. TagTrackUID . . . . . . . . . . . . . . . . . . . . . . . . 158 231. TagEditionUID . . . . . . . . . . . . . . . . . . . . . . . 158 232. TagChapterUID . . . . . . . . . . . . . . . . . . . . . . . 159 233. TagAttachmentUID . . . . . . . . . . . . . . . . . . . . . . 160 234. SimpleTag . . . . . . . . . . . . . . . . . . . . . . . . . 160 235. TagName . . . . . . . . . . . . . . . . . . . . . . . . . . 161 236. TagLanguage . . . . . . . . . . . . . . . . . . . . . . . . 161 237. TagDefault . . . . . . . . . . . . . . . . . . . . . . . . . 162 238. TagString . . . . . . . . . . . . . . . . . . . . . . . . . 162 239. TagBinary . . . . . . . . . . . . . . . . . . . . . . . . . 163 240. Beginning of File . . . . . . . . . . . . . . . . . . . . . 163 241. Block Timecodes . . . . . . . . . . . . . . . . . . . . . . 163 242. Default decoded field duration . . . . . . . . . . . . . . . 164 243. Default Values . . . . . . . . . . . . . . . . . . . . . . . 164 244. DRM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 245. EBML Class . . . . . . . . . . . . . . . . . . . . . . . . . 165 246. Encryption . . . . . . . . . . . . . . . . . . . . . . . . . 165 247. Image cropping . . . . . . . . . . . . . . . . . . . . . . . 165 248. Matroska version indicators . . . . . . . . . . . . . . . . 166 249. Mime Types . . . . . . . . . . . . . . . . . . . . . . . . . 166 250. Octet . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 251. Overlay Track . . . . . . . . . . . . . . . . . . . . . . . 167 252. Position References . . . . . . . . . . . . . . . . . . . . 167 253. Raw Timecode . . . . . . . . . . . . . . . . . . . . . . . . 167 254. Linked Segments . . . . . . . . . . . . . . . . . . . . . . 167 254.1. Hard Linking . . . . . . . . . . . . . . . . . . . . . 167 254.2. Soft Linking . . . . . . . . . . . . . . . . . . . . . 168 254.3. Medium Linking . . . . . . . . . . . . . . . . . . . . 168 255. Timecode Types . . . . . . . . . . . . . . . . . . . . . . . 169 256. TimecodeScale . . . . . . . . . . . . . . . . . . . . . . . 169 257. TimecodeScale Rounding . . . . . . . . . . . . . . . . . . . 170 258. Track Flags . . . . . . . . . . . . . . . . . . . . . . . . 172 258.1. Default flag . . . . . . . . . . . . . . . . . . . . . 172 258.2. Forced flag . . . . . . . . . . . . . . . . . . . . . . 172 259. TrackTimecodeScale . . . . . . . . . . . . . . . . . . . . . 172 260. Unknown elements . . . . . . . . . . . . . . . . . . . . . . 174 261. Multi-planar and 3D videos . . . . . . . . . . . . . . . . . 174 262. Track Operation . . . . . . . . . . . . . . . . . . . . . . 175 263. Matroska Element Ordering Guidelines . . . . . . . . . . . . 175 263.1. Top-Level Elements . . . . . . . . . . . . . . . . . . 176 263.2. CRC-32 . . . . . . . . . . . . . . . . . . . . . . . . 176 263.3. SeekHead . . . . . . . . . . . . . . . . . . . . . . . 176 263.4. Cues (index) . . . . . . . . . . . . . . . . . . . . . 177 263.5. Info . . . . . . . . . . . . . . . . . . . . . . . . . 177 263.6. Chapters . . . . . . . . . . . . . . . . . . . . . . . 177 263.7. Attachments . . . . . . . . . . . . . . . . . . . . . . 177 263.8. Tags . . . . . . . . . . . . . . . . . . . . . . . . . 177 263.9. Optimum layout from a muxer . . . . . . . . . . . . . . 178 Lhomme, et al. Expires January 9, 2017 [Page 7] Internet-Draft Matroska July 2016 263.10. Optimum layout after editing tags . . . . . . . . . . . 178 263.11. Optimum layout with Cues at the front . . . . . . . . . 178 263.12. Cluster Timecode . . . . . . . . . . . . . . . . . . . 179 264. CodecID . . . . . . . . . . . . . . . . . . . . . . . . . . 179 264.1. Example 1 : basic chaptering . . . . . . . . . . . . . 187 264.2. Example 2 : nested chapters . . . . . . . . . . . . . . 188 264.2.1. The Micronauts "Bleep To Bleep" . . . . . . . . . . 188 264.3. Edition and chapter flags . . . . . . . . . . . . . . . 189 264.3.1. Chapter flags . . . . . . . . . . . . . . . . . . . 189 264.3.2. Edition flags . . . . . . . . . . . . . . . . . . . 189 264.4. Menu features . . . . . . . . . . . . . . . . . . . . . 189 264.4.1. Matroska Script (0) . . . . . . . . . . . . . . . . 190 264.4.2. DVD menu (1) . . . . . . . . . . . . . . . . . . . 190 265. Subtitles . . . . . . . . . . . . . . . . . . . . . . . . . 191 266. Images Subtitles . . . . . . . . . . . . . . . . . . . . . . 192 267. SRT Subtitles . . . . . . . . . . . . . . . . . . . . . . . 195 268. SSA/ASS Subtitles . . . . . . . . . . . . . . . . . . . . . 196 269. USF Subtitles . . . . . . . . . . . . . . . . . . . . . . . 199 270. WebVTT . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 270.1. Storage of WebVTT in Matroska . . . . . . . . . . . . . 199 270.1.1. CodecID: codec identification . . . . . . . . . . . 199 270.1.2. CodecPrivate: storage of gloal WebVTT blocks . . . 199 270.1.3. Storage of non-global WebVTT blocks . . . . . . . . 199 270.1.4. Storage of Cues in Matroska blocks . . . . . . . . 200 270.1.5. BlockAdditions: storing non-global WebVTT blocks, Cue Settings Lists and Cue identifiers . . . . . . 200 270.2. Examples of transformation . . . . . . . . . . . . . . 200 270.2.1. Example WebVTT file . . . . . . . . . . . . . . . . 200 270.2.2. CodecPrivate . . . . . . . . . . . . . . . . . . . 201 270.2.3. Storage of Cue 1 . . . . . . . . . . . . . . . . . 201 270.2.4. Storage of Cue 2 . . . . . . . . . . . . . . . . . 201 270.2.5. Storage of Cue 3 . . . . . . . . . . . . . . . . . 201 270.2.6. Storage of Cue 4 . . . . . . . . . . . . . . . . . 201 270.3. Storage of WebVTT in Matroska vs. WebM . . . . . . . . 201 271. Tagging . . . . . . . . . . . . . . . . . . . . . . . . . . 202 271.1. Why official tags matter . . . . . . . . . . . . . . . 202 271.2. Tag translations . . . . . . . . . . . . . . . . . . . 203 271.3. Tag Formatting . . . . . . . . . . . . . . . . . . . . 203 271.4. Target types . . . . . . . . . . . . . . . . . . . . . 203 271.5. Official tags . . . . . . . . . . . . . . . . . . . . . 204 271.6. Notes . . . . . . . . . . . . . . . . . . . . . . . . . 204 272. Matroska Streaming . . . . . . . . . . . . . . . . . . . . . 205 273. File Access . . . . . . . . . . . . . . . . . . . . . . . . 205 274. Live Streaming . . . . . . . . . . . . . . . . . . . . . . . 206 275. Menu Specifications . . . . . . . . . . . . . . . . . . . . 206 276. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 206 277. Requirements . . . . . . . . . . . . . . . . . . . . . . . . 207 277.1. Highlights/Hotspots . . . . . . . . . . . . . . . . . . 207 Lhomme, et al. Expires January 9, 2017 [Page 8] Internet-Draft Matroska July 2016 277.2. Playback features . . . . . . . . . . . . . . . . . . . 207 277.3. Player requirements . . . . . . . . . . . . . . . . . . 208 278. Working Graph . . . . . . . . . . . . . . . . . . . . . . . 208 279. Ideas . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 280. Data Structure . . . . . . . . . . . . . . . . . . . . . . . 208 281. Overhead . . . . . . . . . . . . . . . . . . . . . . . . . . 209 281.1. Example 1 - low bitrate audio . . . . . . . . . . . . . 209 281.1.1. Conclusions . . . . . . . . . . . . . . . . . . . . 212 281.2. Example 2 - medium bitrate audio . . . . . . . . . . . 212 281.3. Example 3 - high bitrate audio . . . . . . . . . . . . 212 281.4. Example 4 - low bitrate video . . . . . . . . . . . . . 212 281.4.1. First example - all I frames (CBR) . . . . . . . . 213 281.4.2. Second example - 1 I frame for 1 B frame . . . . . 215 281.5. Example 5 - medium bitrate video . . . . . . . . . . . 216 281.6. Example 6 - high bitrate video . . . . . . . . . . . . 216 281.7. Example 7 - low bitrate video + low bitrate audio . . . 216 281.8. Example 8 - medium bitrate video + medium bitrate audio 216 281.9. Example 9 - high bitrate video + high bitrate audio . . 216 282.1. URIs . . . . . . . . . . . . . . . . . . . . . . . . . 216 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 220 1. Introduction Matroska aims to become THE standard of multimedia container formats. It was derived from a project called MCF [1], but differentiates from it significantly because it is based on EBML [2] (Extensible Binary Meta Language), a binary derivative of XML. EBML enables significant advantages in terms of future format extensibility, without breaking file support in old parsers. First, it is essential to clarify exactly "What an Audio/Video container is", to avoid any misunderstandings: o It is NOT a video or audio compression format (video codec) o It is an envelope for which there can be many audio, video and subtitles streams, allowing the user to store a complete movie or CD in a single file. Matroska is designed with the future in mind. It incorporates features like: o Fast seeking in the file o Chapter entries o Full metadata (tags) support Lhomme, et al. Expires January 9, 2017 [Page 9] Internet-Draft Matroska July 2016 o Selectable subtitle/audio/video streams o Modularly expandable o Error resilience (can recover playback even when the stream is damaged) o Streamable over the internet and local networks (HTTP, CIFS, FTP, etc) o Menus (like DVDs have) Matroska is an open standards project. This means for personal use it is absolutely free to use and that the technical specifications describing the bitstream are open to everybody, even to companies that would like to support it in their products. 2. Status of this document This document is a work-in-progress specification defining the Matroska file format as part of the IETF Cellar working group [3]. But since it's quite complete it is used as a reference for the development of libmatroska. Legacy versions of the specification can be found here [4] (PDF doc by Alexander Noe -- outdated). For a simplified diagram of the layout of a Matroska file, see the Diagram page [5]. A more refined and detailed version of the EBML specifications is being worked on here [6]. The table found below is now generated from the "source" of the Matroska specification. This XML file [7] is also used to generate the semantic data used in libmatroska and libmatroska2. We encourage anyone to use and monitor its changes so your code is spec-proof and always up to date. Note that versions 1, 2 and 3 have been finalized. Version 4 is currently work in progress. There MAY be further additions to v4. 3. Security Considerations Matroska inherits security considerations from EBML. Other security considerations are to be determined. Lhomme, et al. Expires January 9, 2017 [Page 10] Internet-Draft Matroska July 2016 4. IANA Considerations To be determined. 5. Notations and Conventions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [8]. 6. Basis in EBML Matroska is a Document Type of EBML (Extensible Binary Meta Language). This specification is dependent on the EBML Specification [9]. For an understanding of Matroska's EBML Schema, see in particular the sections of the EBML Specification covering EBML Element Types [10], EBML Schema [11], and EBML Structure [12]. 6.1. Added Constaints on EBML As an EBML Document Type, Matroska adds the following constraints to the EBML specification. o The "docType" of the "EBML Header" MUST be 'matroska'. o The "EBMLMaxIDLength" of the "EBML Header" MUST be "4". o The "EBMLMaxSizeLength" of the "EBML Header" MUST be "8" or less. 6.2. Matroska Design All top-levels elements (Segment and direct sub-elements) are coded on 4 octets, i.e. class D elements. 6.2.1. Language Codes Language codes can be either the 3 letters bibliographic ISO-639-2 [13] form (like "fre" for french), or such a language code followed by a dash and a country code for specialities in languages (like "fre-ca" for Canadian French). Country codes are the same as used for internet domains [14]. 6.2.2. Physical Types Each level can have different meanings for audio and video. The ORIGINAL_MEDIUM tag can be used to specify a string for ChapterPhysicalEquiv = 60. Here is the list of possible levels for both audio and video : Lhomme, et al. Expires January 9, 2017 [Page 11] Internet-Draft Matroska July 2016 +----------------------+--------------+-----------+-----------------+ | ChapterPhysicalEquiv | Audio | Video | Comment | +----------------------+--------------+-----------+-----------------+ | 70 | SET / | SET / | the collection | | | PACKAGE | PACKAGE | of different | | | | | media | | 60 | CD / 12" / | DVD / VHS | the physical | | | 10" / 7" / | / | medium like a | | | TAPE / | LASERDISC | CD or a DVD | | | MINIDISC / | | | | | DAT | | | | 50 | SIDE | SIDE | when the | | | | | original medium | | | | | (LP/DVD) has | | | | | different sides | | 40 | - | LAYER | another | | | | | physical level | | | | | on DVDs | | 30 | SESSION | SESSION | as found on CDs | | | | | and DVDs | | 20 | TRACK | - | as found on | | | | | audio CDs | | 10 | INDEX | - | the first | | | | | logical level | | | | | of the | | | | | side/medium | +----------------------+--------------+-----------+-----------------+ 6.2.3. Block Structure Size = 1 + (1-8) + 4 + (4 + (4)) octets. So from 6 to 21 octets. Bit 0 is the most significant bit. Frames using references SHOULD be stored in "coding order". That means the references first and then the frames referencing them. A consequence is that timecodes MAY NOT be consecutive. But a frame with a past timecode MUST reference a frame already known, otherwise it's considered bad/void. There can be many Blocks in a BlockGroup provided they all have the same timecode. It is used with different parts of a frame with different priorities. | Block Header | | Offset | Player | Description | | 0x00+ | MUST | Track Number (Track Entry). It is coded in EBML like form (1 octet if the value is < 0x80, 2 if < 0x4000, etc) (most significant bits Lhomme, et al. Expires January 9, 2017 [Page 12] Internet-Draft Matroska July 2016 set to increase the range). | | 0x01+ | MUST | Timecode (relative to Cluster timecode, signed int16) | | 0x03+ | - | | Flags | | Bit | Player | Description | | 0-3 | - | Reserved, set to 0 | | 4 | - | Invisible, the codec SHOULD decode this frame but not display it | | 5-6 | MUST | Lacing o 00 : no lacing o 01 : Xiph lacing o 11 : EBML lacing o 10 : fixed-size lacing | | 7 | - | not used | | | Lace (when lacing bit is set) | | 0x00 | MUST | Number of frames in the lace-1 (uint8) | | 0x01 / 0xXX | MUST* | Lace-coded size of each frame of the lace, except for the last one (multiple uint8). *This is not used with Fixed-size lacing as it is calculated automatically from (total size of lace) / (number of frames in lace). | | (possibly) Laced Data | | 0x00 | MUST | Consecutive laced frames | 6.2.4. Lacing Lacing is a mechanism to save space when storing data. It is typically used for small blocks of data (refered to as frames in matroska). There are 3 types of lacing : the Xiph one inspired by what is found in the Ogg container, the EBML one which is the same with sizes coded differently and the fixed-size one where the size is not coded. As an example is better than words... Let's say you want to store 3 frames of the same track. The first frame is 800 octets long, the second is 500 octets long and the third is 1000 octets long. As these data are small, you can store them in a lace to save space. They will then be solved in the same block as follows: 6.2.4.1. Xiph lacing o Block head (with lacing bits set to 01) o Lacing head: Number of frames in the lace -1, i.e. 2 (the 800 and 500 octets one) Lhomme, et al. Expires January 9, 2017 [Page 13] Internet-Draft Matroska July 2016 o Lacing sizes: only the 2 first ones will be coded, 800 gives 255;255;255;35, 500 gives 255;245. The size of the last frame is deduced from the total size of the Block. o Data in frame 1 o Data in frame 2 o Data in frame 3 A frame with a size multiple of 255 is coded with a 0 at the end of the size, for example 765 is coded 255;255;255;0. 6.2.4.2. EBML lacing In this case the size is not coded as blocks of 255 bytes, but as a difference with the previous size and this size is coded as in EBML. The first size in the lace is unsigned as in EBML. The others use a range shifting to get a sign on each value : o Block head (with lacing bits set to 11) o Lacing head: Number of frames in the lace -1, i.e. 2 (the 800 and 400 octets one) o Lacing sizes: only the 2 first ones will be coded, 800 gives 0x320 0x4000 = 0x4320, 500 is coded as -300 : - 0x12C + 0x1FFF + 0x4000 = 0x5ED3. The size of the last frame is deduced from the total size of the Block. o Data in frame 1 o Data in frame 2 o Data in frame 3 6.2.4.3. Fixed-size lacing In this case only the number of frames in the lace is saved, the size of each frame is deduced from the total size of the Block. For example, for 3 frames of 800 octets each : o Block head (with lacing bits set to 10) o Lacing head: Number of frames in the lace -1, i.e. 2 o Data in frame 1 Lhomme, et al. Expires January 9, 2017 [Page 14] Internet-Draft Matroska July 2016 o Data in frame 2 o Data in frame 3 6.2.4.4. SimpleBlock Structure The SimpleBlock is very inspired by the [Block structure](({{site.baseurl}}/index.html#block-structure). The main differences are the added Keyframe flag and Discardable flag. Otherwise everything is the same. Size = 1 + (1-8) + 4 + (4 + (4)) octets. So from 6 to 21 octets. Bit 0 is the most significant bit. Frames using references SHOULD be stored in "coding order". That means the references first and then the frames referencing them. A consequence is that timecodes MAY NOT be consecutive. But a frame with a past timecode MUST reference a frame already known, otherwise it's considered bad/void. There can be many Blocks in a BlockGroup provided they all have the same timecode. It is used with different parts of a frame with different priorities. | SimpleBlock Header | | Offset | Player | Description | | 0x00+ | MUST | Track Number (Track Entry). It is coded in EBML like form (1 octet if the value is < 0x80, 2 if < 0x4000, etc) (most significant bits set to increase the range). | | 0x01+ | MUST | Timecode (relative to Cluster timecode, signed int16) | | 0x03+ | - | | Flags | | Bit | Player | Description | | 0 | - | Keyframe, set when the Block contains only keyframes | | 1-3 | - | Reserved, set to 0 | | 4 | - | Invisible, the codec SHOULD decode this frame but not display it | | 5-6 | MUST | Lacing o 00 : no lacing o 01 : Xiph lacing o 11 : EBML lacing o 10 : fixed-size lacing | | 7 | - | Discardable, the frames of the Block can be discarded during playing if needed | Lhomme, et al. Expires January 9, 2017 [Page 15] Internet-Draft Matroska July 2016 | | Lace (when lacing bit is set) | | 0x00 | MUST | Number of frames in the lace-1 (uint8) | | 0x01 / 0xXX | MUST* | Lace-coded size of each frame of the lace, except for the last one (multiple uint8). *This is not used with Fixed-size lacing as it is calculated automatically from (total size of lace) / (number of frames in lace). | | (possibly) Laced Data | | 0x00 | MUST | Consecutive laced frames | 6.2.4.5. EncryptedBlock Structure The EncryptedBlock is very inspired by the [SimpleBlock structure](({{site.baseurl}}/index.html#simpleblock_structure). The main differences is that the raw data are Transformed. That means the data after the lacing definition (if present) have been processed before put into the Block. The laced sizes apply on the decoded (Inverse Transform) data. This size of the Transformed data MAY NOT match the size of the initial chunk of data. The other difference is that the number of frames in the lace are not saved if "no lacing" is specified (bits 5 and 6 set to 0). The Transformation is specified by a TransformID in the Block (MUST be the same for all frames within the EncryptedBlock). Size = 1 + (1-8) + 4 + (4 + (4)) octets. So from 6 to 21 octets. Bit 0 is the most significant bit. Frames using references SHOULD be stored in "coding order". That means the references first and then the frames referencing them. A consequence is that timecodes MAY NOT be consecutive. But a frame with a past timecode MUST reference a frame already known, otherwise it's considered bad/void. There can be many Blocks in a BlockGroup provided they all have the same timecode. It is used with different parts of a frame with different priorities. | EncryptedBlock Header | | Offset | Player | Description | | 0x00+ | MUST | Track Number (Track Entry). It is coded in EBML like form (1 octet if the value is < 0x80, 2 if < 0x4000, etc) (most significant bits set to increase the range). | | 0x01+ | MUST | Timecode (relative to Cluster timecode, signed int16) | | 0x03+ | - | | Flags | | Bit | Player | Description | | 0 | - | Keyframe, set when the Block contains only keyframes | | 1-3 | - | Reserved, set to 0 | | 4 | - | Invisible, the codec SHOULD decode this frame but not display it | | 5-6 | MUST | Lacing Lhomme, et al. Expires January 9, 2017 [Page 16] Internet-Draft Matroska July 2016 o 00 : no lacing o 01 : Xiph lacing o 11 : EBML lacing o 10 : fixed-size lacing | | 7 | - | Discardable, the frames of the Block can be discarded during playing if needed | | | Lace (when lacing bit is set) | | 0x00 | MUST* | Number of frames in the lace-1 (uint8) _Only available if bit 5 or bit 6 of the EncryptedBlock flag is set to one. | | 0x01 / 0xXX | MUST_ | Lace- coded size of each frame of the lace, except for the last one (multiple uint8). *This is not used with Fixed-size lacing as it is calculated automatically from (total size of lace) / (number of frames in lace). | | (possibly) Laced Data | | 0x00 | MUST | TransformID (EBML coded integer value). Value 0 = Null Transform | | 0x01+ | MUST | Consecutive laced frames | 6.2.4.6. Virtual Block The data in matroska is stored in coding order. But that means if you seek to a particular point and a frame has been referenced far away, you won't know while playing and you might miss this frame (true for independent frames and overlapping of dependent frames). So the idea is to have a placeholder for the original frame in the timecode (display) order. The structure is a scaled down version of the normal Block [15]. | Virtual Block Header | | Offset | Player | Description | | 0x00+ | MUST | Track Number (Track Entry). It is coded in EBML like form (1 octet if the value is < 0x80, 2 if < 0x4000, etc) (most significant bits set to increase the range). | | 0x01+ | MUST | Timecode (relative to Cluster timecode, signed int16) | | 0x03+ | - | | Flags | | Bit | Player | Description | | 7-0 | - | Reserved, set to 0 | | 7. Matroska Schema This specification includes an "EBML Schema" which defines the Elements and structure of Matroska as an EBML Document Type. The Lhomme, et al. Expires January 9, 2017 [Page 17] Internet-Draft Matroska July 2016 EBML Schema defines every valid Matroska element in a manner defined by the EBML specification. For convenience the section of the EBML specification that defines EBML Schema Element Attributes is restated here: 7.1. EBML Schema Element Attributes Within an EBML Schema the "" uses the following attributes to define the EBML Schema: +-----------+----------+--------------------------------------------+ | attribute | required | definition | | name | | | +-----------+----------+--------------------------------------------+ | docType | Yes | The "docType" lists the official name of | | | | the EBML Document Type that is defined by | | | | the EBML Schema; for example, "". | | version | Yes | The "version" lists an incremental non- | | | | negative integer that specifies the | | | | version of the docType documented by the | | | | EBML Schema. Unlike XML Schemas, an EBML | | | | Schema documents all versions of a | | | | docType's definition rather than using | | | | separate EBML Schemas for each version of | | | | a docType. Elements may be introduced and | | | | deprecated by using the "minver" and | | | | "maxver" attributes of . | +-----------+----------+--------------------------------------------+ Within an EBML Schema the "" uses the following attributes to define an EBML Element. +--------------------+----------+-----------------------------------+ | attribute name | required | definition | +--------------------+----------+-----------------------------------+ | name | Yes | The official human-readable name | | | | of the EBML Element. The value of | | | | the name MUST be in the form of | | | | an NCName as defined by the XML | | | | Schema specification [16]. | | level | Yes | The level notes at what | | | | hierarchical depth the EBML | | | | Element may occur within an EBML | | | | Document. The Root Element of an | | | | EBML Document is at level 0 and | | | | the Elements that it may contain | Lhomme, et al. Expires January 9, 2017 [Page 18] Internet-Draft Matroska July 2016 | | | are at level 1. The level MUST be | | | | expressed as an integer. Note | | | | that Elements defined as "global" | | | | and "recursive" MAY occur at a | | | | level greater than or equal to | | | | the defined "level". | | global | No | A boolean to express if an EBML | | | | Element MUST occur at its defined | | | | level or may occur within any | | | | Parent EBML Element. If the | | | | "global" attribute is not | | | | expressed for that Element then | | | | that element is to be considered | | | | not global. | | id | Yes | The Element ID expressed in | | | | hexadecimal notation prefixed by | | | | a '0x'. To reduce the risk of | | | | false positives while parsing | | | | EBML Streams, the IDs of the Root | | | | Element and Top-Level Elements | | | | SHOULD be at least 4 octets in | | | | length. Element IDs defined for | | | | use at Level 0 or Level 1 MAY use | | | | shorter octet lengths to | | | | facilitate padding and optimize | | | | edits to EBML Documents; for | | | | instance, the EBML Void Element | | | | uses an Element ID with a one | | | | octet length to allow its usage | | | | in more writing and editing | | | | scenarios. | | minOccurs | No | An integer to express the minimal | | | | number of occurrences that the | | | | EBML Element MUST occur within | | | | its Parent Element if its Parent | | | | Element is used. If the Element | | | | has no Parent Level (as is the | | | | case with Elements at Level 0), | | | | then minOccurs refers to | | | | constaints on the Element's | | | | occurrence within the EBML | | | | Document. If the minOccurs | | | | attribute is not expressed for | | | | that Element then that Element | | | | shall be considered to have a | | | | minOccurs value of 0. This value | | | | of minOccurs MUST be a positive | | | | integer. The semantic meaning of | Lhomme, et al. Expires January 9, 2017 [Page 19] Internet-Draft Matroska July 2016 | | | minOccurs within an EBML Schema | | | | is considered analogous to the | | | | meaning of minOccurs within an | | | | XML Schema [17]. Note that | | | | Elements with minOccurs set to | | | | "1" that also have a default | | | | value declared are not required | | | | to be stored but are required to | | | | be interpretted, see the "Note on | | | | the Use of default attributes to | | | | define Mandatory EBML Elements". | | maxOccurs | No | A value to express the maximum | | | | number of occurrences that the | | | | EBML Element MAY occur within its | | | | Parent Element if its Parent | | | | Element is used. If the Element | | | | has no Parent Level (as is the | | | | case with Elements at Level 0), | | | | then maxOccurs refers to | | | | constaints on the Element's | | | | occurrence within the EBML | | | | Document. This value may be | | | | either a positive integer or the | | | | term "unbounded" to indicate | | | | there is no maximum number of | | | | occurrences or the term | | | | "identical" to indicate that the | | | | Element is an "Identically | | | | Recurring Element". If the | | | | maxOccurs attribute is not | | | | expressed for that Element then | | | | that Element shall be considered | | | | to have a maxOccurs value of 1. | | | | The semantic meaning of maxOccurs | | | | within an EBML Schema is | | | | considered analogous to the | | | | meaning of minOccurs within an | | | | XML Schema [18], with EBML Schema | | | | adding the concept of Identically | | | | Recurring Elements. | | range | No | For Elements which are of | | | | numerical types (Unsigned | | | | Integer, Signed Integer, Float, | | | | and Date) a numerical range may | | | | be specified. If specified that | | | | the value of the EBML Element | | | | MUST be within the defined range | | | | inclusively. See the "section of | Lhomme, et al. Expires January 9, 2017 [Page 20] Internet-Draft Matroska July 2016 | | | Expressions of range" for rules | | | | applied to expression of range | | | | values. | | default | No | A default value may be provided. | | | | If an Element is mandatory but | | | | not written within its Parent | | | | EBML Element, then the parser of | | | | the EBML Document MUST insert the | | | | defined default value of the | | | | Element. EBML Elements that are | | | | Master-elements MUST NOT declare | | | | a default value. | | type | Yes | As defined within the "section on | | | | EBML Element Types", the type | | | | MUST be set to one of the | | | | following values: 'integer' | | | | (signed integer), 'uinteger' | | | | (unsigned integer), 'float', | | | | 'string', 'date', 'utf-8', | | | | 'master', or 'binary'. | | unknownsizeallowed | No | A boolean to express if an EBML | | | | Element MAY be used as an | | | | "Unknown-Sized Element" (having | | | | all VINT_DATA bits of Element | | | | Data Size set to 1). The | | | | "unknownsizeallowed" attribute | | | | only applies to Master-elements. | | | | If the "unknownsizeallowed" | | | | attribute is not used it is | | | | assumed that the element is not | | | | allowed to use an unknown Element | | | | Data Size. | | recursive | No | A boolean to express if an EBML | | | | Element MAY be stored | | | | recursively. In this case the | | | | Element MAY be stored at levels | | | | greater that defined in the | | | | "level" attribute if the Element | | | | is a Child Element of a Parent | | | | Element with the same Element ID. | | | | The "recursive" attribute only | | | | applies to Master-elements. If | | | | the "recursive" attribute is not | | | | used it is assumed that the | | | | element is not allowed to be used | | | | recursively. | | minver | No | The "minver" (minimum version) | | | | attribute stores a non-negative | Lhomme, et al. Expires January 9, 2017 [Page 21] Internet-Draft Matroska July 2016 | | | integer that represents the first | | | | version of the docType to support | | | | the element. If the "minver" | | | | attribute is not used it is | | | | assumed that the element has a | | | | minimum version of "1". | | maxver | No | The "maxver" (maximum version) | | | | attribute stores a non-negative | | | | integer that represents the last | | | | or most recent version of the | | | | docType to support the element. | | | | If the "maxver" attribute is not | | | | used it is assumed that the | | | | element has a maximum version | | | | equal to the value stored in the | | | | "version" attribute of . | +--------------------+----------+-----------------------------------+ The "" nodes shall contain a description of the meaning and use of the EBML Element stored within one or many "" sub-elements. The "" sub-element may use a "lang" attribute which may be set to the RFC 5646 value of the language of the element's documentation. The "" sub-element may use a "type" attribute to distinguish the meaning of the documentation. Recommended values for the "" sub- element's "type" attribute include: "definition", "rationale", "usage notes", and "references". The "" nodes MUST be arranged hierarchically according to the permitted structure of the EBML Document Type. An "" node that defines an EBML Element which is a Child Element of another Parent Element MUST be stored as an immediate sub-element of the "" node that defines the Parent Element. "" nodes that define Level 0 Elements and Global Elements should be sub- elements of "". 7.2. Matroska Additions to Schema Element Attributes In addition to the EBML Schema definition provided by the EBML Specification, Matroska adds the following additional attributes: Lhomme, et al. Expires January 9, 2017 [Page 22] Internet-Draft Matroska July 2016 +-----------+----------+--------------------------------------------+ | attribute | required | definition | | name | | | +-----------+----------+--------------------------------------------+ | webm | No | A boolean to express if the Matroska | | | | Element is also supported within version 2 | | | | of the "webm" specification. Please | | | | consider the webm specification [19] as | | | | the authoritative on "webm". | +-----------+----------+--------------------------------------------+ 7.3. Matroska Schema Here the definition of each Matroska Element is provided. % concatenate with Matroska EBML Schema converted to markdown % 8. Segment +---------------+---------------------------------------------------+ | Element Name | Segment | +---------------+---------------------------------------------------+ | Element ID | 0x18538067 | | Element Type | master | | Version | 1-4 | | Parent | None | | Element | | | Child | Section 9 Section 13 Section 31 Section 62 | | Elements | Section 172 Section 187 Section 197 Section 225 | | Element | None | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The Root Element that contains all other Top- | | | Level Elements (Elements defined only at Level | | | 1). A Matroska file is composed of 1 Segment. | +---------------+---------------------------------------------------+ 9. SeekHead Lhomme, et al. Expires January 9, 2017 [Page 23] Internet-Draft Matroska July 2016 +-----------------+-------------------------------------------------+ | Element Name | SeekHead | +-----------------+-------------------------------------------------+ | Element ID | 0x114D9B74 | | Element Type | master | | Version | 1-4 | | Parent Element | Section 8 | | Child Elements | Section 10 | | Element Context | /Section 8/SeekHead | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Contains the position of other Top-Level | | | Elements. | +-----------------+-------------------------------------------------+ 10. Seek +-----------------+-------------------------------------------------+ | Element Name | Seek | +-----------------+-------------------------------------------------+ | Element ID | 0x4DBB | | Element Type | master | | Version | 1-4 | | Parent Element | Section 9 | | Child Elements | Section 11 Section 12 | | Element Context | /Section 8/Section 9/Seek | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Contains a single seek entry to an EBML | | | Element. | +-----------------+-------------------------------------------------+ 11. SeekID Lhomme, et al. Expires January 9, 2017 [Page 24] Internet-Draft Matroska July 2016 +-----------------+-------------------------------------------------+ | Element Name | SeekID | +-----------------+-------------------------------------------------+ | Element ID | 0x53AB | | Element Type | binary | | Version | 1-4 | | Parent Element | Section 10 | | Child Elements | None | | Element Context | /Section 8/Section 9/Section 10/SeekID | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The binary ID corresponding to the Element | | | name. | +-----------------+-------------------------------------------------+ 12. SeekPosition +---------------+---------------------------------------------------+ | Element Name | SeekPosition | +---------------+---------------------------------------------------+ | Element ID | 0x53AC | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 10 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 9/Section 10/SeekPosition | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The position of the Element in the Segment in | | | octets (0 = first level 1 Element). | +---------------+---------------------------------------------------+ 13. Info Lhomme, et al. Expires January 9, 2017 [Page 25] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | Info | +---------------+---------------------------------------------------+ | Element ID | 0x1549A966 | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 14 Section 15 Section 16 Section 17 | | Elements | Section 18 Section 19 Section 20 Section 21 | | | Section 25 Section 26 Section 27 Section 28 | | | Section 29 Section 30 | | Element | /Section 8/Info | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Contains general information about the Segment. | +---------------+---------------------------------------------------+ 14. SegmentUID +---------------+---------------------------------------------------+ | Element Name | SegmentUID | +---------------+---------------------------------------------------+ | Element ID | 0x73A4 | | Element Type | binary | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/SegmentUID | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A randomly generated unique ID to identify the | | | Segment amongst many others (128 bits). | +---------------+---------------------------------------------------+ 15. SegmentFilename Lhomme, et al. Expires January 9, 2017 [Page 26] Internet-Draft Matroska July 2016 +-----------------+-------------------------------------------+ | Element Name | SegmentFilename | +-----------------+-------------------------------------------+ | Element ID | 0x7384 | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 13 | | Child Elements | None | | Element Context | /Section 8/Section 13/SegmentFilename | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A filename corresponding to this Segment. | +-----------------+-------------------------------------------+ 16. PrevUID +---------------+---------------------------------------------------+ | Element Name | PrevUID | +---------------+---------------------------------------------------+ | Element ID | 0x3CB923 | | Element Type | binary | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/PrevUID | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A unique ID to identify the previous Segment of a | | | Linked Segment (128 bits). | +---------------+---------------------------------------------------+ 17. PrevFilename Lhomme, et al. Expires January 9, 2017 [Page 27] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | PrevFilename | +---------------+---------------------------------------------------+ | Element ID | 0x3C83AB | | Element Type | utf-8 | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/PrevFilename | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A filename corresponding to the file of the | | | previous Linked Segment. | +---------------+---------------------------------------------------+ 18. NextUID +---------------+---------------------------------------------------+ | Element Name | NextUID | +---------------+---------------------------------------------------+ | Element ID | 0x3EB923 | | Element Type | binary | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/NextUID | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A unique ID to identify the next Segment of a | | | Linked Segment (128 bits). | +---------------+---------------------------------------------------+ 19. NextFilename Lhomme, et al. Expires January 9, 2017 [Page 28] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | NextFilename | +---------------+---------------------------------------------------+ | Element ID | 0x3E83BB | | Element Type | utf-8 | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/NextFilename | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A filename corresponding to the file of the next | | | Linked Segment. | +---------------+---------------------------------------------------+ 20. SegmentFamily +---------------+---------------------------------------------------+ | Element Name | SegmentFamily | +---------------+---------------------------------------------------+ | Element ID | 0x4444 | | Element Type | binary | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/SegmentFamily | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | A randomly generated unique ID that all Segments | | | of a Linked Segment MUST share (128 bits). | +---------------+---------------------------------------------------+ 21. ChapterTranslate Lhomme, et al. Expires January 9, 2017 [Page 29] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | ChapterTranslate | +---------------+---------------------------------------------------+ | Element ID | 0x6924 | | Element Type | master | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | Section 22 Section 23 Section 24 | | Elements | | | Element | /Section 8/Section 13/ChapterTranslate | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | A tuple of corresponding ID used by chapter | | | codecs to represent this Segment. | +---------------+---------------------------------------------------+ 22. ChapterTranslateEditionUID +-------------+-----------------------------------------------------+ | Element | ChapterTranslateEditionUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x69FC | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 21 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/Section | | Context | 21/ChapterTranslateEditionUID | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Specify an edition UID on which this correspondance | | on | applies. When not specified, it means for all | | | editions found in the Segment. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 30] Internet-Draft Matroska July 2016 23. ChapterTranslateCodec +--------------+----------------------------------------------------+ | Element Name | ChapterTranslateCodec | +--------------+----------------------------------------------------+ | Element ID | 0x69BF | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 21 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/Section | | Context | 21/ChapterTranslateCodec | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | The chapter codec using this ID (0: Matroska | | n | Script, 1: DVD-menu). | +--------------+----------------------------------------------------+ 24. ChapterTranslateID +--------------+----------------------------------------------------+ | Element Name | ChapterTranslateID | +--------------+----------------------------------------------------+ | Element ID | 0x69A5 | | Element Type | binary | | Version | 1-4 | | Parent | Section 21 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/Section | | Context | 21/ChapterTranslateID | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | The binary value used to represent this Segment in | | n | the chapter codec data. The format depends on the | | | ChapProcessCodecID used. | +--------------+----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 31] Internet-Draft Matroska July 2016 25. TimecodeScale +---------------+---------------------------------------------------+ | Element Name | TimecodeScale | +---------------+---------------------------------------------------+ | Element ID | 0x2AD7B1 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/TimecodeScale | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Timestamp scale in nanoseconds (1.000.000 means | | | all timestamps in the Segment are expressed in | | | milliseconds). | +---------------+---------------------------------------------------+ 26. Duration +---------------+---------------------------------------------------+ | Element Name | Duration | +---------------+---------------------------------------------------+ | Element ID | 0x4489 | | Element Type | float | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/Duration | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Duration of the Segment in nanoseconds based on | | | TimecodeScale. | +---------------+---------------------------------------------------+ 27. DateUTC Lhomme, et al. Expires January 9, 2017 [Page 32] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | DateUTC | +---------------+---------------------------------------------------+ | Element ID | 0x4461 | | Element Type | date | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/DateUTC | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The date and time that the Segment was created by | | | the muxing application or library. | +---------------+---------------------------------------------------+ 28. Title +-----------------+------------------------------+ | Element Name | Title | +-----------------+------------------------------+ | Element ID | 0x7BA9 | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 13 | | Child Elements | None | | Element Context | /Section 8/Section 13/Title | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | General name of the Segment. | +-----------------+------------------------------+ 29. MuxingApp Lhomme, et al. Expires January 9, 2017 [Page 33] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | MuxingApp | +---------------+---------------------------------------------------+ | Element ID | 0x4D80 | | Element Type | utf-8 | | Version | 1-4 | | Parent | Section 13 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 13/MuxingApp | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Muxing application or library (example: | | | "libmatroska-0.4.3"). | +---------------+---------------------------------------------------+ 30. WritingApp +-----------------+-------------------------------------------------+ | Element Name | WritingApp | +-----------------+-------------------------------------------------+ | Element ID | 0x5741 | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 13 | | Child Elements | None | | Element Context | /Section 8/Section 13/WritingApp | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Writing application (example: | | | "mkvmerge-0.3.3"). | +-----------------+-------------------------------------------------+ 31. Cluster Lhomme, et al. Expires January 9, 2017 [Page 34] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | Cluster | +---------------+---------------------------------------------------+ | Element ID | 0x1F43B675 | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 32 Section 33 Section 35 Section 36 | | Elements | Section 37 Section 38 Section 61 | | Element | /Section 8/Cluster | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | The Top-Level Element containing the (monolithic) | | | Block structure. | +---------------+---------------------------------------------------+ 32. Timecode +---------------+---------------------------------------------------+ | Element Name | Timecode | +---------------+---------------------------------------------------+ | Element ID | 0xE7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Timecode | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Absolute timestamp of the cluster (based on | | | TimecodeScale). | +---------------+---------------------------------------------------+ 33. SilentTracks Lhomme, et al. Expires January 9, 2017 [Page 35] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | SilentTracks | +---------------+---------------------------------------------------+ | Element ID | 0x5854 | | Element Type | master | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | Section 34 | | Elements | | | Element | /Section 8/Section 31/SilentTracks | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The list of tracks that are not used in that part | | | of the stream. It is useful when using overlay | | | tracks on seeking or to decide what track to use. | +---------------+---------------------------------------------------+ 34. SilentTrackNumber +--------------+----------------------------------------------------+ | Element Name | SilentTrackNumber | +--------------+----------------------------------------------------+ | Element ID | 0x58D7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 33 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 33/SilentTrackNumber | | Context | | | Mandatory | Not Mandatory | | Repeatabilit | Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | One of the track number that are not used from now | | n | on in the stream. It could change later if not | | | specified as silent in a further Cluster. | +--------------+----------------------------------------------------+ 35. Position Lhomme, et al. Expires January 9, 2017 [Page 36] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | Position | +---------------+---------------------------------------------------+ | Element ID | 0xA7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Position | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The Position of the Cluster in the Segment (0 in | | | live broadcast streams). It might help to | | | resynchronise offset on damaged streams. | +---------------+---------------------------------------------------+ 36. PrevSize +---------------+---------------------------------------------------+ | Element Name | PrevSize | +---------------+---------------------------------------------------+ | Element ID | 0xAB | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/PrevSize | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Size of the previous Cluster, in octets. Can be | | | useful for backward playing. | +---------------+---------------------------------------------------+ 37. SimpleBlock Lhomme, et al. Expires January 9, 2017 [Page 37] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | SimpleBlock | +---------------+---------------------------------------------------+ | Element ID | 0xA3 | | Element Type | binary | | Version | 2-4 | | Parent | Section 31 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/SimpleBlock | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Similar to Block but without all the extra | | | information, mostly used to reduced overhead when | | | no extra feature is needed. (see SimpleBlock | | | Structure) | +---------------+---------------------------------------------------+ 38. BlockGroup +---------------+---------------------------------------------------+ | Element Name | BlockGroup | +---------------+---------------------------------------------------+ | Element ID | 0xA0 | | Element Type | master | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | Section 39 Section 40 Section 41 Section 45 | | Elements | Section 46 Section 47 Section 48 Section 49 | | | Section 50 Section 51 Section 58 | | Element | /Section 8/Section 31/BlockGroup | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Basic container of information containing a | | | single Block or BlockVirtual, and information | | | specific to that Block/VirtualBlock. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 38] Internet-Draft Matroska July 2016 39. Block +---------------+---------------------------------------------------+ | Element Name | Block | +---------------+---------------------------------------------------+ | Element ID | 0xA1 | | Element Type | binary | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Block | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Block containing the actual data to be rendered | | | and a timestamp relative to the Cluster Timecode. | | | (see Block Structure) | +---------------+---------------------------------------------------+ 40. BlockVirtual +---------------+---------------------------------------------------+ | Element Name | BlockVirtual | +---------------+---------------------------------------------------+ | Element ID | 0xA2 | | Element Type | binary | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/BlockVirtual | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A Block with no data. It MUST be stored in the | | | stream at the place the real Block would be in | | | display order. (see Block Virtual) | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 39] Internet-Draft Matroska July 2016 41. BlockAdditions +---------------+---------------------------------------------------+ | Element Name | BlockAdditions | +---------------+---------------------------------------------------+ | Element ID | 0x75A1 | | Element Type | master | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | Section 42 | | Elements | | | Element | /Section 8/Section 31/Section 38/BlockAdditions | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ 42. BlockMore +--------------+----------------------------------------------------+ | Element Name | BlockMore | +--------------+----------------------------------------------------+ | Element ID | 0xA6 | | Element Type | master | | Version | 1-4 | | Parent | Section 41 | | Element | | | Child | Section 43 Section 44 | | Elements | | | Element | /Section 8/Section 31/Section 38/Section | | Context | 41/BlockMore | | Mandatory | Mandatory | | Repeatabilit | Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Contain the BlockAdditional and some parameters. | | n | | +--------------+----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 40] Internet-Draft Matroska July 2016 43. BlockAddID +------------+------------------------------------------------------+ | Element | BlockAddID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xEE | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 42 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 41/Section | | Context | 42/BlockAddID | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | An ID to identify the BlockAdditional level. | | ion | | +------------+------------------------------------------------------+ 44. BlockAdditional +-----------+-------------------------------------------------------+ | Element | BlockAdditional | | Name | | +-----------+-------------------------------------------------------+ | Element | 0xA5 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 42 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 41/Section | | Context | 42/BlockAdditional | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Interpreted by the codec as it wishes (using the | | tion | BlockAddID). | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 41] Internet-Draft Matroska July 2016 45. BlockDuration +---------------+---------------------------------------------------+ | Element Name | BlockDuration | +---------------+---------------------------------------------------+ | Element ID | 0x9B | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/BlockDuration | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ 46. ReferencePriority Lhomme, et al. Expires January 9, 2017 [Page 42] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | ReferencePriority | +--------------+----------------------------------------------------+ | Element ID | 0xFA | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/ReferencePriority | | Context | | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | This frame is referenced and has the specified | | n | 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. | +--------------+----------------------------------------------------+ 47. ReferenceBlock +---------------+---------------------------------------------------+ | Element Name | ReferenceBlock | +---------------+---------------------------------------------------+ | Element ID | 0xFB | | Element Type | integer | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/ReferenceBlock | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Timestamp of another frame used as a reference | | | (ie: B or P frame). The timestamp is relative to | | | the block it's attached to. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 43] Internet-Draft Matroska July 2016 48. ReferenceVirtual +---------------+---------------------------------------------------+ | Element Name | ReferenceVirtual | +---------------+---------------------------------------------------+ | Element ID | 0xFD | | Element Type | integer | | Version | 1-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/ReferenceVirtual | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Relative position of the data that would | | | otherwise be in position of the virtual block. | +---------------+---------------------------------------------------+ 49. CodecState +---------------+---------------------------------------------------+ | Element Name | CodecState | +---------------+---------------------------------------------------+ | Element ID | 0xA4 | | Element Type | binary | | Version | 2-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/CodecState | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The new codec state to use. Data interpretation | | | is private to the codec. This information SHOULD | | | always be referenced by a seek entry. | +---------------+---------------------------------------------------+ 50. DiscardPadding Lhomme, et al. Expires January 9, 2017 [Page 44] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | DiscardPadding | +---------------+---------------------------------------------------+ | Element ID | 0x75A2 | | Element Type | integer | | Version | 4-4 | | Parent | Section 38 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/DiscardPadding | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ 51. Slices +-----------------+-----------------------------------------+ | Element Name | Slices | +-----------------+-----------------------------------------+ | Element ID | 0x8E | | Element Type | master | | Version | 1-4 | | Parent Element | Section 38 | | Child Elements | Section 52 | | Element Context | /Section 8/Section 31/Section 38/Slices | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Contains slices description. | +-----------------+-----------------------------------------+ 52. TimeSlice Lhomme, et al. Expires January 9, 2017 [Page 45] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | TimeSlice | +--------------+----------------------------------------------------+ | Element ID | 0xE8 | | Element Type | master | | Version | 1-4 | | Parent | Section 51 | | Element | | | Child | Section 53 Section 54 Section 55 Section 56 | | Elements | Section 57 | | Element | /Section 8/Section 31/Section 38/Section | | Context | 51/TimeSlice | | Mandatory | Not Mandatory | | Repeatabilit | Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Contains extra time information about the data | | n | 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. | +--------------+----------------------------------------------------+ 53. LaceNumber Lhomme, et al. Expires January 9, 2017 [Page 46] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | LaceNumber | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xCC | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 52 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 51/Section | | Context | 52/LaceNumber | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The reverse number of the frame in the lace (0 is | | ion | 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. | +------------+------------------------------------------------------+ 54. FrameNumber Lhomme, et al. Expires January 9, 2017 [Page 47] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | FrameNumber | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xCD | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 52 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 51/Section | | Context | 52/FrameNumber | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The number of the frame to generate from this lace | | ion | with this delay (allow you to generate many frames | | | from the same Block/Frame). | +------------+------------------------------------------------------+ 55. BlockAdditionID +-----------+-------------------------------------------------------+ | Element | BlockAdditionID | | Name | | +-----------+-------------------------------------------------------+ | Element | 0xCB | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 52 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 51/Section | | Context | 52/BlockAdditionID | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The ID of the BlockAdditional Element (0 is the main | | tion | Block). | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 48] Internet-Draft Matroska July 2016 56. Delay +-------------+-----------------------------------------------------+ | Element | Delay | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xCE | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 52 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 51/Section | | Context | 52/Delay | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The (scaled) delay to apply to the Element. | | on | | +-------------+-----------------------------------------------------+ 57. SliceDuration +------------+------------------------------------------------------+ | Element | SliceDuration | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xCF | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 52 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section 51/Section | | Context | 52/SliceDuration | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The (scaled) duration to apply to the Element. | | ion | | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 49] Internet-Draft Matroska July 2016 58. ReferenceFrame +-----------------+-------------------------------------------------+ | Element Name | ReferenceFrame | +-----------------+-------------------------------------------------+ | Element ID | 0xC8 | | Element Type | master | | Version | 0-4 | | Parent Element | Section 38 | | Child Elements | Section 59 Section 60 | | Element Context | /Section 8/Section 31/Section 38/ReferenceFrame | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | DivX trick track extenstions | +-----------------+-------------------------------------------------+ 59. ReferenceOffset +-------------+-----------------------------------------------------+ | Element | ReferenceOffset | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xC9 | | Element | uinteger | | Type | | | Version | 0-4 | | Parent | Section 58 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section | | Context | 58/ReferenceOffset | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | DivX trick track extenstions | | on | | +-------------+-----------------------------------------------------+ 60. ReferenceTimeCode Lhomme, et al. Expires January 9, 2017 [Page 50] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | ReferenceTimeCode | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xCA | | Element | uinteger | | Type | | | Version | 0-4 | | Parent | Section 58 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/Section 38/Section | | Context | 58/ReferenceTimeCode | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | DivX trick track extenstions | | on | | +-------------+-----------------------------------------------------+ 61. EncryptedBlock +---------------+---------------------------------------------------+ | Element Name | EncryptedBlock | +---------------+---------------------------------------------------+ | Element ID | 0xAF | | Element Type | binary | | Version | 1-4 | | Parent | Section 31 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 31/EncryptedBlock | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Similar to SimpleBlock but the data inside the | | | Block are Transformed (encrypt and/or signed). | | | (see EncryptedBlock Structure) | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 51] Internet-Draft Matroska July 2016 62. Tracks +---------------+---------------------------------------------------+ | Element Name | Tracks | +---------------+---------------------------------------------------+ | Element ID | 0x1654AE6B | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 63 | | Elements | | | Element | /Section 8/Tracks | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | A Top-Level Element of information with many | | | tracks described. | +---------------+---------------------------------------------------+ 63. TrackEntry +---------------+---------------------------------------------------+ | Element Name | TrackEntry | +---------------+---------------------------------------------------+ | Element ID | 0xAE | | Element Type | master | | Version | 1-4 | | Parent | Section 62 | | Element | | | Child | Section 64 Section 65 Section 66 Section 67 | | Elements | Section 68 Section 69 Section 70 Section 71 | | | Section 72 Section 73 Section 74 Section 75 | | | Section 76 Section 77 Section 78 Section 79 | | | Section 80 Section 81 Section 82 Section 83 | | | Section 84 Section 85 Section 86 Section 87 | | | Section 88 Section 89 Section 90 Section 91 | | | Section 95 Section 139 Section 145 Section 152 | | | Section 153 Section 154 Section 155 Section 156 | | | Section 157 | | Element | /Section 8/Section 62/TrackEntry | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Describes a track with all Elements. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 52] Internet-Draft Matroska July 2016 64. TrackNumber +---------------+---------------------------------------------------+ | Element Name | TrackNumber | +---------------+---------------------------------------------------+ | Element ID | 0xD7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackNumber | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The track number as used in the Block Header | | | (using more than 127 tracks is not encouraged, | | | though the design allows an unlimited number). | +---------------+---------------------------------------------------+ 65. TrackUID +---------------+---------------------------------------------------+ | Element Name | TrackUID | +---------------+---------------------------------------------------+ | Element ID | 0x73C5 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackUID | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 53] Internet-Draft Matroska July 2016 66. TrackType +---------------+---------------------------------------------------+ | Element Name | TrackType | +---------------+---------------------------------------------------+ | Element ID | 0x83 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackType | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A set of track types coded on 8 bits (1: video, | | | 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, | | | 0x12: buttons, 0x20: control). | +---------------+---------------------------------------------------+ 67. FlagEnabled +-----------------+----------------------------------------------+ | Element Name | FlagEnabled | +-----------------+----------------------------------------------+ | Element ID | 0xB9 | | Element Type | uinteger | | Version | 2-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/FlagEnabled | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Set if the track is usable. (1 bit) | +-----------------+----------------------------------------------+ 68. FlagDefault Lhomme, et al. Expires January 9, 2017 [Page 54] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | FlagDefault | +---------------+---------------------------------------------------+ | Element ID | 0x88 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/FlagDefault | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Set if that track (audio, video or subs) SHOULD | | | be active if no language found matches the user | | | preference. (1 bit) | +---------------+---------------------------------------------------+ 69. FlagForced +---------------+---------------------------------------------------+ | Element Name | FlagForced | +---------------+---------------------------------------------------+ | Element ID | 0x55AA | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/FlagForced | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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) | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 55] Internet-Draft Matroska July 2016 70. FlagLacing +---------------+---------------------------------------------------+ | Element Name | FlagLacing | +---------------+---------------------------------------------------+ | Element ID | 0x9C | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/FlagLacing | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Set if the track MAY contain blocks using lacing. | | | (1 bit) | +---------------+---------------------------------------------------+ 71. MinCache +---------------+---------------------------------------------------+ | Element Name | MinCache | +---------------+---------------------------------------------------+ | Element ID | 0x6DE7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/MinCache | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ 72. MaxCache Lhomme, et al. Expires January 9, 2017 [Page 56] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | MaxCache | +---------------+---------------------------------------------------+ | Element ID | 0x6DF8 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/MaxCache | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The maximum cache size necessary to store | | | referenced frames in and the current frame. 0 | | | means no cache is needed. | +---------------+---------------------------------------------------+ 73. DefaultDuration +---------------+---------------------------------------------------+ | Element Name | DefaultDuration | +---------------+---------------------------------------------------+ | Element ID | 0x23E383 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/DefaultDuration | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Number of nanoseconds (not scaled via | | | TimecodeScale) per frame ('frame' in the Matroska | | | sense -- one Element put into a (Simple)Block). | +---------------+---------------------------------------------------+ 74. DefaultDecodedFieldDuration Lhomme, et al. Expires January 9, 2017 [Page 57] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | DefaultDecodedFieldDuration | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x234E7A | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/DefaultDecodedFieldDuration | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The period in nanoseconds (not scaled by | | on | TimcodeScale) | +-------------+-----------------------------------------------------+ between two successive fields at the output of the decoding process (see the notes) 75. TrackTimecodeScale +--------------+----------------------------------------------------+ | Element Name | TrackTimecodeScale | +--------------+----------------------------------------------------+ | Element ID | 0x23314F | | Element Type | float | | Version | 1-3 DEPRECATED | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/TrackTimecodeScale | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | DEPRECATED, DO NOT USE. The scale to apply on this | | n | track to work at normal speed in relation with | | | other tracks (mostly used to adjust video speed | | | when the audio length differs). | +--------------+----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 58] Internet-Draft Matroska July 2016 76. TrackOffset +---------------+---------------------------------------------------+ | Element Name | TrackOffset | +---------------+---------------------------------------------------+ | Element ID | 0x537F | | Element Type | integer | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackOffset | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A value to add to the Block's Timestamp. This can | | | be used to adjust the playback offset of a track. | +---------------+---------------------------------------------------+ 77. MaxBlockAdditionID +--------------+----------------------------------------------------+ | Element Name | MaxBlockAdditionID | +--------------+----------------------------------------------------+ | Element ID | 0x55EE | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/MaxBlockAdditionID | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | The maximum value of BlockAddID. A value 0 means | | n | there is no BlockAdditions for this track. | +--------------+----------------------------------------------------+ 78. Name Lhomme, et al. Expires January 9, 2017 [Page 59] Internet-Draft Matroska July 2016 +-----------------+---------------------------------------+ | Element Name | Name | +-----------------+---------------------------------------+ | Element ID | 0x536E | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/Name | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A human-readable track name. | +-----------------+---------------------------------------+ 79. Language +---------------+---------------------------------------------------+ | Element Name | Language | +---------------+---------------------------------------------------+ | Element ID | 0x22B59C | | Element Type | string | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Language | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Specifies the language of the track in the | | | Matroska languages form. | +---------------+---------------------------------------------------+ 80. CodecID Lhomme, et al. Expires January 9, 2017 [Page 60] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | CodecID | +---------------+---------------------------------------------------+ | Element ID | 0x86 | | Element Type | string | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/CodecID | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | An ID corresponding to the codec, see the codec | | | page for more info. | +---------------+---------------------------------------------------+ 81. CodecPrivate +-----------------+-----------------------------------------------+ | Element Name | CodecPrivate | +-----------------+-----------------------------------------------+ | Element ID | 0x63A2 | | Element Type | binary | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/CodecPrivate | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Private data only known to the codec. | +-----------------+-----------------------------------------------+ 82. CodecName Lhomme, et al. Expires January 9, 2017 [Page 61] Internet-Draft Matroska July 2016 +-----------------+-----------------------------------------------+ | Element Name | CodecName | +-----------------+-----------------------------------------------+ | Element ID | 0x258688 | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/CodecName | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A human-readable string specifying the codec. | +-----------------+-----------------------------------------------+ 83. AttachmentLink +----------------+--------------------------------------------------+ | Element Name | AttachmentLink | +----------------+--------------------------------------------------+ | Element ID | 0x7446 | | Element Type | uinteger | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element | /Section 8/Section 62/Section 63/AttachmentLink | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The UID of an attachment that is used by this | | | codec. | +----------------+--------------------------------------------------+ 84. CodecSettings Lhomme, et al. Expires January 9, 2017 [Page 62] Internet-Draft Matroska July 2016 +-----------------+------------------------------------------------+ | Element Name | CodecSettings | +-----------------+------------------------------------------------+ | Element ID | 0x3A9697 | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/CodecSettings | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A string describing the encoding setting used. | +-----------------+------------------------------------------------+ 85. CodecInfoURL +-----------------+-------------------------------------------------+ | Element Name | CodecInfoURL | +-----------------+-------------------------------------------------+ | Element ID | 0x3B4040 | | Element Type | string | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/CodecInfoURL | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | A URL to find information about the codec used. | +-----------------+-------------------------------------------------+ 86. CodecDownloadURL Lhomme, et al. Expires January 9, 2017 [Page 63] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | CodecDownloadURL | +---------------+---------------------------------------------------+ | Element ID | 0x26B240 | | Element Type | string | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/CodecDownloadURL | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | A URL to download about the codec used. | +---------------+---------------------------------------------------+ 87. CodecDecodeAll +----------------+--------------------------------------------------+ | Element Name | CodecDecodeAll | +----------------+--------------------------------------------------+ | Element ID | 0xAA | | Element Type | uinteger | | Version | 2-4 | | Parent Element | Section 63 | | Child Elements | None | | Element | /Section 8/Section 62/Section 63/CodecDecodeAll | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The codec can decode potentially damaged data (1 | | | bit). | +----------------+--------------------------------------------------+ 88. TrackOverlay Lhomme, et al. Expires January 9, 2017 [Page 64] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | TrackOverlay | +---------------+---------------------------------------------------+ | Element ID | 0x6FAB | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackOverlay | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ 89. CodecDelay +---------------+---------------------------------------------------+ | Element Name | CodecDelay | +---------------+---------------------------------------------------+ | Element ID | 0x56AA | | Element Type | uinteger | | Version | 4-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/CodecDelay | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | 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. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 65] Internet-Draft Matroska July 2016 90. SeekPreRoll +---------------+---------------------------------------------------+ | Element Name | SeekPreRoll | +---------------+---------------------------------------------------+ | Element ID | 0x56BB | | Element Type | uinteger | | Version | 4-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/SeekPreRoll | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | After a discontinuity, SeekPreRoll is the | | | duration in nanoseconds of the data the decoder | | | MUST decode before the decoded data is valid. | +---------------+---------------------------------------------------+ 91. TrackTranslate +----------------+--------------------------------------------------+ | Element Name | TrackTranslate | +----------------+--------------------------------------------------+ | Element ID | 0x6624 | | Element Type | master | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | Section 92 Section 93 Section 94 | | Element | /Section 8/Section 62/Section 63/TrackTranslate | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | The track identification for the given Chapter | | | Codec. | +----------------+--------------------------------------------------+ 92. TrackTranslateEditionUID Lhomme, et al. Expires January 9, 2017 [Page 66] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | TrackTranslateEditionUID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x66FC | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 91 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 91/TrackTranslateEditionUID | | Mandatory | Not Mandatory | | Repeatabil | Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Specify an edition UID on which this translation | | ion | applies. When not specified, it means for all | | | editions found in the Segment. | +------------+------------------------------------------------------+ 93. TrackTranslateCodec +------------+------------------------------------------------------+ | Element | TrackTranslateCodec | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x66BF | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 91 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 91/TrackTranslateCodec | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The chapter codec using this ID (0: Matroska Script, | | ion | 1: DVD-menu). | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 67] Internet-Draft Matroska July 2016 94. TrackTranslateTrackID +------------+------------------------------------------------------+ | Element | TrackTranslateTrackID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x66A5 | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 91 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 91/TrackTranslateTrackID | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The binary value used to represent this track in the | | ion | chapter codec data. The format depends on the | | | ChapProcessCodecID used. | +------------+------------------------------------------------------+ 95. Video +---------------+---------------------------------------------------+ | Element Name | Video | +---------------+---------------------------------------------------+ | Element ID | 0xE0 | | Element Type | master | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | Section 96 Section 97 Section 98 Section 99 | | Elements | Section 100 Section 101 Section 102 Section 103 | | | Section 104 Section 105 Section 106 Section 107 | | | Section 108 Section 109 Section 110 Section 111 | | | Section 112 Section 113 Section 114 | | Element | /Section 8/Section 62/Section 63/Video | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Video settings. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 68] Internet-Draft Matroska July 2016 96. FlagInterlaced +-------------+-----------------------------------------------------+ | Element | FlagInterlaced | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x9A | | Element | uinteger | | Type | | | Version | 2-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/FlagInterlaced | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | A flag to declare is the video is known to be | | on | progressive or interlaced and if applicable to | | | declare details about the interlacement. (0: | | | undetermined, 1: interlaced, 2: progressive) | +-------------+-----------------------------------------------------+ 97. FieldOrder Lhomme, et al. Expires January 9, 2017 [Page 69] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | FieldOrder | +--------------+----------------------------------------------------+ | Element ID | 0x9D | | Element Type | uinteger | | Version | 4-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/FieldOrder | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Declare the field ordering of the video. If | | n | 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) | +--------------+----------------------------------------------------+ 98. StereoMode Lhomme, et al. Expires January 9, 2017 [Page 70] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | StereoMode | +--------------+----------------------------------------------------+ | Element ID | 0x53B8 | | Element Type | uinteger | | Version | 3-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/StereoMode | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Stereo-3D video mode (0: mono, 1: side by side | | n | (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. | +--------------+----------------------------------------------------+ 99. AlphaMode Lhomme, et al. Expires January 9, 2017 [Page 71] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | AlphaMode | +--------------+----------------------------------------------------+ | Element ID | 0x53C0 | | Element Type | uinteger | | Version | 3-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/AlphaMode | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Alpha Video Mode. Presence of this Element | | n | indicates that the BlockAdditional Element could | | | contain Alpha data. | +--------------+----------------------------------------------------+ 100. OldStereoMode +-------------+-----------------------------------------------------+ | Element | OldStereoMode | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x53B9 | | Element | uinteger | | Type | | | Version | 1-0 DEPRECATED | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/OldStereoMode | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | DEPRECATED, DO NOT USE. Bogus StereoMode value used | | on | in old versions of libmatroska. (0: mono, 1: right | | | eye, 2: left eye, 3: both eyes). | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 72] Internet-Draft Matroska July 2016 101. PixelWidth +--------------+----------------------------------------------------+ | Element Name | PixelWidth | +--------------+----------------------------------------------------+ | Element ID | 0xB0 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelWidth | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Width of the encoded video frames in pixels. | | n | | +--------------+----------------------------------------------------+ 102. PixelHeight +-------------+-----------------------------------------------------+ | Element | PixelHeight | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xBA | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelHeight | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Height of the encoded video frames in pixels. | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 73] Internet-Draft Matroska July 2016 103. PixelCropBottom +-------------+-----------------------------------------------------+ | Element | PixelCropBottom | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54AA | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelCropBottom | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The number of video pixels to remove at the bottom | | on | of the image (for HDTV content). | +-------------+-----------------------------------------------------+ 104. PixelCropTop +-------------+-----------------------------------------------------+ | Element | PixelCropTop | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54BB | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelCropTop | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The number of video pixels to remove at the top of | | on | the image. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 74] Internet-Draft Matroska July 2016 105. PixelCropLeft +-------------+-----------------------------------------------------+ | Element | PixelCropLeft | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54CC | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelCropLeft | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The number of video pixels to remove on the left of | | on | the image. | +-------------+-----------------------------------------------------+ 106. PixelCropRight +-------------+-----------------------------------------------------+ | Element | PixelCropRight | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54DD | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/PixelCropRight | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The number of video pixels to remove on the right | | on | of the image. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 75] Internet-Draft Matroska July 2016 107. DisplayWidth +-------------+-----------------------------------------------------+ | Element | DisplayWidth | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54B0 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/DisplayWidth | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Width of the video frames to display. Applies to | | on | the video frame after cropping (PixelCrop* | | | Elements). The default value is only valid when | | | DisplayUnit is 0. | +-------------+-----------------------------------------------------+ 108. DisplayHeight Lhomme, et al. Expires January 9, 2017 [Page 76] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | DisplayHeight | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54BA | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/DisplayHeight | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Height of the video frames to display. Applies to | | on | the video frame after cropping (PixelCrop* | | | Elements). The default value is only valid when | | | DisplayUnit is 0. | +-------------+-----------------------------------------------------+ 109. DisplayUnit +-------------+-----------------------------------------------------+ | Element | DisplayUnit | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54B2 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/DisplayUnit | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | How DisplayWidth & DisplayHeight are interpreted | | on | (0: pixels, 1: centimeters, 2: inches, 3: Display | | | Aspect Ratio). | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 77] Internet-Draft Matroska July 2016 110. AspectRatioType +-------------+-----------------------------------------------------+ | Element | AspectRatioType | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x54B3 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/AspectRatioType | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Specify the possible modifications to the aspect | | on | ratio (0: free resizing, 1: keep aspect ratio, 2: | | | fixed). | +-------------+-----------------------------------------------------+ 111. ColourSpace +-------------+-----------------------------------------------------+ | Element | ColourSpace | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x2EB524 | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/ColourSpace | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Same value as in AVI (32 bits). | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 78] Internet-Draft Matroska July 2016 112. GammaValue +--------------+----------------------------------------------------+ | Element Name | GammaValue | +--------------+----------------------------------------------------+ | Element ID | 0x2FB523 | | Element Type | float | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/GammaValue | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Gamma Value. | | n | | +--------------+----------------------------------------------------+ 113. FrameRate +--------------+----------------------------------------------------+ | Element Name | FrameRate | +--------------+----------------------------------------------------+ | Element ID | 0x2383E3 | | Element Type | float | | Version | 1-4 | | Parent | Section 95 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 95/FrameRate | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Number of frames per second. Informational only. | | n | | +--------------+----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 79] Internet-Draft Matroska July 2016 114. Colour +--------------+----------------------------------------------------+ | Element Name | Colour | +--------------+----------------------------------------------------+ | Element ID | 0x55B0 | | Element Type | master | | Version | 4-4 | | Parent | Section 95 | | Element | | | Child | Section 115 Section 116 Section 117 Section 118 | | Elements | Section 119 Section 120 Section 121 Section 122 | | | Section 123 Section 124 Section 125 Section 126 | | | Section 127 Section 128 | | Element | /Section 8/Section 62/Section 63/Section 95/Colour | | Context | | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Settings describing the colour format. | | n | | +--------------+----------------------------------------------------+ 115. MatrixCoefficients Lhomme, et al. Expires January 9, 2017 [Page 80] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | MatrixCoefficients | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B1 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/MatrixCoefficients | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The Matrix Coefficients of the video used to derive | | tion | 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) | +-----------+-------------------------------------------------------+ 116. BitsPerChannel Lhomme, et al. Expires January 9, 2017 [Page 81] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | BitsPerChannel | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B2 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/BitsPerChannel | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Number of decoded bits per channel. A value of 0 | | tion | indicates that the BitsPerChannel is unspecified. | +-----------+-------------------------------------------------------+ 117. ChromaSubsamplingHorz Lhomme, et al. Expires January 9, 2017 [Page 82] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ChromaSubsamplingHorz | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B3 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/ChromaSubsamplingHorz | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The amount of pixels to remove in the Cr and Cb | | tion | channels for every pixel not removed horizontally. | | | Example: For video with 4:2:0 chroma subsampling, the | | | ChromaSubsamplingHorz SHOULD be set to 1. | +-----------+-------------------------------------------------------+ 118. ChromaSubsamplingVert Lhomme, et al. Expires January 9, 2017 [Page 83] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ChromaSubsamplingVert | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B4 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/ChromaSubsamplingVert | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The amount of pixels to remove in the Cr and Cb | | tion | channels for every pixel not removed vertically. | | | Example: For video with 4:2:0 chroma subsampling, the | | | ChromaSubsamplingVert SHOULD be set to 1. | +-----------+-------------------------------------------------------+ 119. CbSubsamplingHorz Lhomme, et al. Expires January 9, 2017 [Page 84] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | CbSubsamplingHorz | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B5 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/CbSubsamplingHorz | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The amount of pixels to remove in the Cb channel for | | tion | 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. | +-----------+-------------------------------------------------------+ 120. CbSubsamplingVert Lhomme, et al. Expires January 9, 2017 [Page 85] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | CbSubsamplingVert | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B6 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/CbSubsamplingVert | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The amount of pixels to remove in the Cb channel for | | tion | every pixel not removed vertically. This is additive | | | with ChromaSubsamplingVert. | +-----------+-------------------------------------------------------+ 121. ChromaSitingHorz +-----------+-------------------------------------------------------+ | Element | ChromaSitingHorz | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B7 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/ChromaSitingHorz | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | How chroma is subsampled horizontally. (0: | | tion | Unspecified, 1: Left Collocated, 2: Half) | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 86] Internet-Draft Matroska July 2016 122. ChromaSitingVert +-----------+-------------------------------------------------------+ | Element | ChromaSitingVert | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55B8 | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/ChromaSitingVert | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | How chroma is subsampled vertically. (0: Unspecified, | | tion | 1: Top Collocated, 2: Half) | +-----------+-------------------------------------------------------+ 123. Range Lhomme, et al. Expires January 9, 2017 [Page 87] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | Range | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x55B9 | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Range | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Clipping of the color ranges. (0: Unspecified, 1: | | on | Broadcast Range, 2: Full range (no clipping), 3: | | | Defined by | | | MatrixCoefficients/TransferCharacteristics) | +-------------+-----------------------------------------------------+ 124. TransferCharacteristics Lhomme, et al. Expires January 9, 2017 [Page 88] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | TransferCharacteristics | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55BA | | ID | | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/TransferCharacteristics | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The transfer characteristics of the video. For | | tion | 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)) | +-----------+-------------------------------------------------------+ 125. Primaries Lhomme, et al. Expires January 9, 2017 [Page 89] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | Primaries | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x55BB | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Primaries | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The colour primaries of the video. For clarity, the | | ion | 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) | +------------+------------------------------------------------------+ 126. MaxCLL Lhomme, et al. Expires January 9, 2017 [Page 90] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | MaxCLL | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x55BC | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/MaxCLL | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Maximum brightness of a single pixel (Maximum | | ion | Content Light Level) in candelas per square meter | | | (cd/m^2). | +------------+------------------------------------------------------+ 127. MaxFALL +------------+------------------------------------------------------+ | Element | MaxFALL | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x55BD | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/MaxFALL | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Maximum brightness of a single full frame (Maximum | | ion | Frame-Average Light Level) in candelas per square | | | meter (cd/m^2). | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 91] Internet-Draft Matroska July 2016 128. MasteringMetadata +-----------+-------------------------------------------------------+ | Element | MasteringMetadata | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x55D0 | | ID | | | Element | master | | Type | | | Version | 4-4 | | Parent | Section 114 | | Element | | | Child | Section 129 Section 130 Section 131 Section 132 | | Elements | Section 133 Section 134 Section 135 Section 136 | | | Section 137 Section 138 | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/MasteringMetadata | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | SMPTE 2086 mastering data. | | tion | | +-----------+-------------------------------------------------------+ 129. PrimaryRChromaticityX Lhomme, et al. Expires January 9, 2017 [Page 92] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryRChromaticityX | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D1 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryRChromaticityX | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Red X chromaticity coordinate as defined by CIE 1931. | | ation | | +----------+--------------------------------------------------------+ 130. PrimaryRChromaticityY Lhomme, et al. Expires January 9, 2017 [Page 93] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryRChromaticityY | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D2 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryRChromaticityY | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Red Y chromaticity coordinate as defined by CIE 1931. | | ation | | +----------+--------------------------------------------------------+ 131. PrimaryGChromaticityX Lhomme, et al. Expires January 9, 2017 [Page 94] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryGChromaticityX | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D3 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryGChromaticityX | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Green X chromaticity coordinate as defined by CIE | | ation | 1931. | +----------+--------------------------------------------------------+ 132. PrimaryGChromaticityY Lhomme, et al. Expires January 9, 2017 [Page 95] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryGChromaticityY | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D4 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryGChromaticityY | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Green Y chromaticity coordinate as defined by CIE | | ation | 1931. | +----------+--------------------------------------------------------+ 133. PrimaryBChromaticityX Lhomme, et al. Expires January 9, 2017 [Page 96] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryBChromaticityX | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D5 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryBChromaticityX | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Blue X chromaticity coordinate as defined by CIE 1931. | | ation | | +----------+--------------------------------------------------------+ 134. PrimaryBChromaticityY Lhomme, et al. Expires January 9, 2017 [Page 97] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | PrimaryBChromaticityY | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D6 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/PrimaryBChromaticityY | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Blue Y chromaticity coordinate as defined by CIE 1931. | | ation | | +----------+--------------------------------------------------------+ 135. WhitePointChromaticityX Lhomme, et al. Expires January 9, 2017 [Page 98] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | WhitePointChromaticityX | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D7 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/WhitePointChromaticityX | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | White X chromaticity coordinate as defined by CIE | | ation | 1931. | +----------+--------------------------------------------------------+ 136. WhitePointChromaticityY Lhomme, et al. Expires January 9, 2017 [Page 99] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | WhitePointChromaticityY | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D8 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/WhitePointChromaticityY | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | White Y chromaticity coordinate as defined by CIE | | ation | 1931. | +----------+--------------------------------------------------------+ 137. LuminanceMax Lhomme, et al. Expires January 9, 2017 [Page 100] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | LuminanceMax | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55D9 | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/LuminanceMax | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Maximum luminance. Represented in candelas per square | | ation | meter (cd/m^2). | +----------+--------------------------------------------------------+ 138. LuminanceMin Lhomme, et al. Expires January 9, 2017 [Page 101] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | LuminanceMin | | Name | | +----------+--------------------------------------------------------+ | Element | 0x55DA | | ID | | | Element | float | | Type | | | Version | 4-4 | | Parent | Section 128 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 95/Section | | Context | 114/Section 128/LuminanceMin | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Mininum luminance. Represented in candelas per square | | ation | meter (cd/m^2). | +----------+--------------------------------------------------------+ 139. Audio +---------------+---------------------------------------------------+ | Element Name | Audio | +---------------+---------------------------------------------------+ | Element ID | 0xE1 | | Element Type | master | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | Section 140 Section 141 Section 142 Section 143 | | Elements | Section 144 | | Element | /Section 8/Section 62/Section 63/Audio | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Audio settings. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 102] Internet-Draft Matroska July 2016 140. SamplingFrequency +------------+------------------------------------------------------+ | Element | SamplingFrequency | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xB5 | | Element | float | | Type | | | Version | 1-4 | | Parent | Section 139 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 139/SamplingFrequency | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Sampling frequency in Hz. | | ion | | +------------+------------------------------------------------------+ 141. OutputSamplingFrequency +------------+------------------------------------------------------+ | Element | OutputSamplingFrequency | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x78B5 | | Element | float | | Type | | | Version | 1-4 | | Parent | Section 139 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 139/OutputSamplingFrequency | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Real output sampling frequency in Hz (used for SBR | | ion | techniques). | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 103] Internet-Draft Matroska July 2016 142. Channels +--------------+----------------------------------------------------+ | Element Name | Channels | +--------------+----------------------------------------------------+ | Element ID | 0x9F | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 139 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 139/Channels | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Numbers of channels in the track. | | n | | +--------------+----------------------------------------------------+ 143. ChannelPositions +-------------+-----------------------------------------------------+ | Element | ChannelPositions | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x7D7B | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 139 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 139/ChannelPositions | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Table of horizontal angles for each successive | | on | channel, see appendix. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 104] Internet-Draft Matroska July 2016 144. BitDepth +--------------+----------------------------------------------------+ | Element Name | BitDepth | +--------------+----------------------------------------------------+ | Element ID | 0x6264 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 139 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 139/BitDepth | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Bits per sample, mostly used for PCM. | | n | | +--------------+----------------------------------------------------+ 145. TrackOperation +---------------+---------------------------------------------------+ | Element Name | TrackOperation | +---------------+---------------------------------------------------+ | Element ID | 0xE2 | | Element Type | master | | Version | 3-4 | | Parent | Section 63 | | Element | | | Child | Section 146 Section 150 | | Elements | | | Element | /Section 8/Section 62/Section 63/TrackOperation | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Operation that needs to be applied on tracks to | | | create this virtual track. For more details look | | | at the Specification Notes on the subject. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 105] Internet-Draft Matroska July 2016 146. TrackCombinePlanes +------------+------------------------------------------------------+ | Element | TrackCombinePlanes | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xE3 | | Element | master | | Type | | | Version | 3-4 | | Parent | Section 145 | | Element | | | Child | Section 147 | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 145/TrackCombinePlanes | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Contains the list of all video plane tracks that | | ion | need to be combined to create this 3D track | +------------+------------------------------------------------------+ 147. TrackPlane +------------+------------------------------------------------------+ | Element | TrackPlane | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xE4 | | Element | master | | Type | | | Version | 3-4 | | Parent | Section 146 | | Element | | | Child | Section 148 Section 149 | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 145/Section | | Context | 146/TrackPlane | | Mandatory | Mandatory | | Repeatabil | Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Contains a video plane track that need to be | | ion | combined to create this 3D track | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 106] Internet-Draft Matroska July 2016 148. TrackPlaneUID +----------+--------------------------------------------------------+ | Element | TrackPlaneUID | | Name | | +----------+--------------------------------------------------------+ | Element | 0xE5 | | ID | | | Element | uinteger | | Type | | | Version | 3-4 | | Parent | Section 147 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 145/Section | | Context | 146/Section 147/TrackPlaneUID | | Mandator | Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The trackUID number of the track representing the | | ation | plane. | +----------+--------------------------------------------------------+ 149. TrackPlaneType Lhomme, et al. Expires January 9, 2017 [Page 107] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | TrackPlaneType | | Name | | +----------+--------------------------------------------------------+ | Element | 0xE6 | | ID | | | Element | uinteger | | Type | | | Version | 3-4 | | Parent | Section 147 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 145/Section | | Context | 146/Section 147/TrackPlaneType | | Mandator | Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The kind of plane this track corresponds to (0: left | | ation | eye, 1: right eye, 2: background). | +----------+--------------------------------------------------------+ 150. TrackJoinBlocks +-------------+-----------------------------------------------------+ | Element | TrackJoinBlocks | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xE9 | | Element | master | | Type | | | Version | 3-4 | | Parent | Section 145 | | Element | | | Child | Section 151 | | Elements | | | Element | /Section 8/Section 62/Section 63/Section | | Context | 145/TrackJoinBlocks | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Contains the list of all tracks whose Blocks need | | on | to be combined to create this virtual track | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 108] Internet-Draft Matroska July 2016 151. TrackJoinUID +------------+------------------------------------------------------+ | Element | TrackJoinUID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xED | | Element | uinteger | | Type | | | Version | 3-4 | | Parent | Section 150 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 145/Section | | Context | 150/TrackJoinUID | | Mandatory | Mandatory | | Repeatabil | Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The trackUID number of a track whose blocks are used | | ion | to create this virtual track. | +------------+------------------------------------------------------+ 152. TrickTrackUID +-----------------+------------------------------------------------+ | Element Name | TrickTrackUID | +-----------------+------------------------------------------------+ | Element ID | 0xC0 | | Element Type | uinteger | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/TrickTrackUID | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | DivX trick track extenstions | +-----------------+------------------------------------------------+ 153. TrickTrackSegmentUID Lhomme, et al. Expires January 9, 2017 [Page 109] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | TrickTrackSegmentUID | +--------------+----------------------------------------------------+ | Element ID | 0xC1 | | Element Type | binary | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/TrickTrackSegmentUID | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | DivX trick track extenstions | | n | | +--------------+----------------------------------------------------+ 154. TrickTrackFlag +-----------------+-------------------------------------------------+ | Element Name | TrickTrackFlag | +-----------------+-------------------------------------------------+ | Element ID | 0xC6 | | Element Type | uinteger | | Version | 1-4 | | Parent Element | Section 63 | | Child Elements | None | | Element Context | /Section 8/Section 62/Section 63/TrickTrackFlag | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | DivX trick track extenstions | +-----------------+-------------------------------------------------+ 155. TrickMasterTrackUID Lhomme, et al. Expires January 9, 2017 [Page 110] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | TrickMasterTrackUID | +--------------+----------------------------------------------------+ | Element ID | 0xC7 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/TrickMasterTrackUID | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | DivX trick track extenstions | | n | | +--------------+----------------------------------------------------+ 156. TrickMasterTrackSegmentUID +-------------+-----------------------------------------------------+ | Element | TrickMasterTrackSegmentUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xC4 | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section | | Context | 63/TrickMasterTrackSegmentUID | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | DivX trick track extenstions | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 111] Internet-Draft Matroska July 2016 157. ContentEncodings +---------------+---------------------------------------------------+ | Element Name | ContentEncodings | +---------------+---------------------------------------------------+ | Element ID | 0x6D80 | | Element Type | master | | Version | 1-4 | | Parent | Section 63 | | Element | | | Child | Section 158 | | Elements | | | Element | /Section 8/Section 62/Section 63/ContentEncodings | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Settings for several content encoding mechanisms | | | like compression or encryption. | +---------------+---------------------------------------------------+ 158. ContentEncoding +-------------+-----------------------------------------------------+ | Element | ContentEncoding | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x6240 | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 157 | | Element | | | Child | Section 159 Section 160 Section 161 Section 162 | | Elements | Section 165 | | Element | /Section 8/Section 62/Section 63/Section | | Context | 157/ContentEncoding | | Mandatory | Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Settings for one content encoding like compression | | on | or encryption. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 112] Internet-Draft Matroska July 2016 159. ContentEncodingOrder +-----------+-------------------------------------------------------+ | Element | ContentEncodingOrder | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x5031 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 158 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/ContentEncodingOrder | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Tells when this modification was used during | | tion | 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. | +-----------+-------------------------------------------------------+ 160. ContentEncodingScope Lhomme, et al. Expires January 9, 2017 [Page 113] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ContentEncodingScope | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x5032 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 158 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/ContentEncodingScope | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | A bit field that describes which Elements have been | | tion | modified in this way. Values (big endian) can be | | | OR'ed. Possible values: 1 - all frame contents, 2 - | | | the track's private data, 4 - the next | | | ContentEncoding (next ContentEncodingOrder. Either | | | the data inside ContentCompression and/or | | | ContentEncryption) | +-----------+-------------------------------------------------------+ 161. ContentEncodingType Lhomme, et al. Expires January 9, 2017 [Page 114] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ContentEncodingType | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x5033 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 158 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/ContentEncodingType | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | A value describing what kind of transformation has | | tion | been done. Possible values: 0 - compression, 1 - | | | encryption | +-----------+-------------------------------------------------------+ 162. ContentCompression Lhomme, et al. Expires January 9, 2017 [Page 115] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ContentCompression | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x5034 | | ID | | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 158 | | Element | | | Child | Section 163 Section 164 | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/ContentCompression | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Settings describing the compression used. This | | tion | Element 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. | +-----------+-------------------------------------------------------+ 163. ContentCompAlgo Lhomme, et al. Expires January 9, 2017 [Page 116] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentCompAlgo | | Name | | +----------+--------------------------------------------------------+ | Element | 0x4254 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 162 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 162/ContentCompAlgo | | Mandator | Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The compression algorithm used. Algorithms that have | | ation | been specified so far are: 0 - zlib, 1 - bzlib, 2 - | | | lzo1x 3 - Header Stripping | +----------+--------------------------------------------------------+ 164. ContentCompSettings Lhomme, et al. Expires January 9, 2017 [Page 117] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentCompSettings | | Name | | +----------+--------------------------------------------------------+ | Element | 0x4255 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 162 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 162/ContentCompSettings | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Settings that might be needed by the decompressor. For | | ation | Header Stripping (ContentCompAlgo=3), the bytes that | | | were removed from the beggining of each frames of the | | | track. | +----------+--------------------------------------------------------+ 165. ContentEncryption Lhomme, et al. Expires January 9, 2017 [Page 118] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ContentEncryption | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x5035 | | ID | | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 158 | | Element | | | Child | Section 166 Section 167 Section 168 Section 169 | | Elements | Section 170 Section 171 | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/ContentEncryption | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Settings describing the encryption used. This Element | | tion | MUST be present if the value of ContentEncodingType | | | is 1 and absent otherwise. | +-----------+-------------------------------------------------------+ 166. ContentEncAlgo Lhomme, et al. Expires January 9, 2017 [Page 119] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentEncAlgo | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E1 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentEncAlgo | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The encryption algorithm used. The value '0' means | | ation | that the contents have not been encrypted but only | | | signed. Predefined values: 1 - DES, 2 - 3DES, 3 - | | | Twofish, 4 - Blowfish, 5 - AES | +----------+--------------------------------------------------------+ 167. ContentEncKeyID Lhomme, et al. Expires January 9, 2017 [Page 120] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentEncKeyID | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E2 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentEncKeyID | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | For public key algorithms this is the ID of the public | | ation | key the the data was encrypted with. | +----------+--------------------------------------------------------+ 168. ContentSignature Lhomme, et al. Expires January 9, 2017 [Page 121] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentSignature | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E3 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentSignature | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | A cryptographic signature of the contents. | | ation | | +----------+--------------------------------------------------------+ 169. ContentSigKeyID Lhomme, et al. Expires January 9, 2017 [Page 122] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentSigKeyID | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E4 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentSigKeyID | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | This is the ID of the private key the data was signed | | ation | with. | +----------+--------------------------------------------------------+ 170. ContentSigAlgo Lhomme, et al. Expires January 9, 2017 [Page 123] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentSigAlgo | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E5 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentSigAlgo | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The algorithm used for the signature. A value of '0' | | ation | means that the contents have not been signed but only | | | encrypted. Predefined values: 1 - RSA | +----------+--------------------------------------------------------+ 171. ContentSigHashAlgo Lhomme, et al. Expires January 9, 2017 [Page 124] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ContentSigHashAlgo | | Name | | +----------+--------------------------------------------------------+ | Element | 0x47E6 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 165 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 62/Section 63/Section 157/Section | | Context | 158/Section 165/ContentSigHashAlgo | | Mandator | Not Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | The hash algorithm used for the signature. A value of | | ation | '0' means that the contents have not been signed but | | | only encrypted. Predefined values: 1 - SHA1-160 2 - | | | MD5 | +----------+--------------------------------------------------------+ 172. Cues +---------------+---------------------------------------------------+ | Element Name | Cues | +---------------+---------------------------------------------------+ | Element ID | 0x1C53BB6B | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 173 | | Elements | | | Element | /Section 8/Cues | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A Top-Level Element to speed seeking access. All | | | entries are local to the Segment. This Element | | | SHOULD be mandatory for non "live" streams. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 125] Internet-Draft Matroska July 2016 173. CuePoint +---------------+---------------------------------------------------+ | Element Name | CuePoint | +---------------+---------------------------------------------------+ | Element ID | 0xBB | | Element Type | master | | Version | 1-4 | | Parent | Section 172 | | Element | | | Child | Section 174 Section 175 | | Elements | | | Element | /Section 8/Section 172/CuePoint | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Contains all information relative to a seek point | | | in the Segment. | +---------------+---------------------------------------------------+ 174. CueTime +----------------+--------------------------------------------------+ | Element Name | CueTime | +----------------+--------------------------------------------------+ | Element ID | 0xB3 | | Element Type | uinteger | | Version | 1-4 | | Parent Element | Section 173 | | Child Elements | None | | Element | /Section 8/Section 172/Section 173/CueTime | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Absolute timestamp according to the Segment time | | | base. | +----------------+--------------------------------------------------+ 175. CueTrackPositions Lhomme, et al. Expires January 9, 2017 [Page 126] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | CueTrackPositions | +--------------+----------------------------------------------------+ | Element ID | 0xB7 | | Element Type | master | | Version | 1-4 | | Parent | Section 173 | | Element | | | Child | Section 176 Section 177 Section 178 Section 179 | | Elements | Section 180 Section 181 Section 182 | | Element | /Section 8/Section 172/Section | | Context | 173/CueTrackPositions | | Mandatory | Mandatory | | Repeatabilit | Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Contain positions for different tracks | | n | corresponding to the timestamp. | +--------------+----------------------------------------------------+ 176. CueTrack +-------------+-----------------------------------------------------+ | Element | CueTrack | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xF7 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueTrack | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The track for which a position is given. | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 127] Internet-Draft Matroska July 2016 177. CueClusterPosition +------------+------------------------------------------------------+ | Element | CueClusterPosition | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xF1 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueClusterPosition | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The position of the Cluster containing the | | ion | associated Block. | +------------+------------------------------------------------------+ 178. CueRelativePosition +------------+------------------------------------------------------+ | Element | CueRelativePosition | | Name | | +------------+------------------------------------------------------+ | Element ID | 0xF0 | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueRelativePosition | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The relative position of the referenced block inside | | ion | the cluster with 0 being the first possible position | | | for an Element inside that cluster. | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 128] Internet-Draft Matroska July 2016 179. CueDuration +-------------+-----------------------------------------------------+ | Element | CueDuration | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xB2 | | Element | uinteger | | Type | | | Version | 4-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueDuration | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The duration of the block according to the Segment | | on | time base. If missing the track's DefaultDuration | | | does not apply and no duration information is | | | available in terms of the cues. | +-------------+-----------------------------------------------------+ 180. CueBlockNumber Lhomme, et al. Expires January 9, 2017 [Page 129] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | CueBlockNumber | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x5378 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueBlockNumber | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Number of the Block in the specified Cluster. | | on | | +-------------+-----------------------------------------------------+ 181. CueCodecState +-------------+-----------------------------------------------------+ | Element | CueCodecState | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xEA | | Element | uinteger | | Type | | | Version | 2-4 | | Parent | Section 175 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueCodecState | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The position of the Codec State corresponding to | | on | this Cue Element. 0 means that the data is taken | | | from the initial Track Entry. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 130] Internet-Draft Matroska July 2016 182. CueReference +-------------+-----------------------------------------------------+ | Element | CueReference | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0xDB | | Element | master | | Type | | | Version | 2-4 | | Parent | Section 175 | | Element | | | Child | Section 183 Section 184 Section 185 Section 186 | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/CueReference | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The Clusters containing the referenced Blocks. | | on | | +-------------+-----------------------------------------------------+ 183. CueRefTime +------------+------------------------------------------------------+ | Element | CueRefTime | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x96 | | Element | uinteger | | Type | | | Version | 2-4 | | Parent | Section 182 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/Section 182/CueRefTime | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Timestamp of the referenced Block. | | ion | | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 131] Internet-Draft Matroska July 2016 184. CueRefCluster +-----------+-------------------------------------------------------+ | Element | CueRefCluster | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x97 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 182 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/Section 182/CueRefCluster | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The Position of the Cluster containing the referenced | | tion | Block. | +-----------+-------------------------------------------------------+ 185. CueRefNumber Lhomme, et al. Expires January 9, 2017 [Page 132] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | CueRefNumber | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x535F | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 182 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/Section 182/CueRefNumber | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Number of the referenced Block of Track X in the | | tion | specified Cluster. | +-----------+-------------------------------------------------------+ 186. CueRefCodecState +-----------+-------------------------------------------------------+ | Element | CueRefCodecState | | Name | | +-----------+-------------------------------------------------------+ | Element | 0xEB | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 182 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 172/Section 173/Section | | Context | 175/Section 182/CueRefCodecState | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The position of the Codec State corresponding to this | | tion | referenced Element. 0 means that the data is taken | | | from the initial Track Entry. | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 133] Internet-Draft Matroska July 2016 187. Attachments +-----------------+-------------------------+ | Element Name | Attachments | +-----------------+-------------------------+ | Element ID | 0x1941A469 | | Element Type | master | | Version | 1-4 | | Parent Element | Section 8 | | Child Elements | Section 188 | | Element Context | /Section 8/Attachments | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Contain attached files. | +-----------------+-------------------------+ 188. AttachedFile +---------------+---------------------------------------------------+ | Element Name | AttachedFile | +---------------+---------------------------------------------------+ | Element ID | 0x61A7 | | Element Type | master | | Version | 1-4 | | Parent | Section 187 | | Element | | | Child | Section 189 Section 190 Section 191 Section 192 | | Elements | Section 193 Section 194 Section 195 Section 196 | | Element | /Section 8/Section 187/AttachedFile | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | An attached file. | +---------------+---------------------------------------------------+ 189. FileDescription Lhomme, et al. Expires January 9, 2017 [Page 134] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | FileDescription | +--------------+----------------------------------------------------+ | Element ID | 0x467E | | Element Type | utf-8 | | Version | 1-4 | | Parent | Section 188 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 187/Section 188/FileDescription | | Context | | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | A human-friendly name for the attached file. | | n | | +--------------+----------------------------------------------------+ 190. FileName +-----------------+---------------------------------------------+ | Element Name | FileName | +-----------------+---------------------------------------------+ | Element ID | 0x466E | | Element Type | utf-8 | | Version | 1-4 | | Parent Element | Section 188 | | Child Elements | None | | Element Context | /Section 8/Section 187/Section 188/FileName | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Filename of the attached file. | +-----------------+---------------------------------------------+ 191. FileMimeType Lhomme, et al. Expires January 9, 2017 [Page 135] Internet-Draft Matroska July 2016 +-----------------+-------------------------------------------------+ | Element Name | FileMimeType | +-----------------+-------------------------------------------------+ | Element ID | 0x4660 | | Element Type | string | | Version | 1-4 | | Parent Element | Section 188 | | Child Elements | None | | Element Context | /Section 8/Section 187/Section 188/FileMimeType | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | MIME type of the file. | +-----------------+-------------------------------------------------+ 192. FileData +-----------------+---------------------------------------------+ | Element Name | FileData | +-----------------+---------------------------------------------+ | Element ID | 0x465C | | Element Type | binary | | Version | 1-4 | | Parent Element | Section 188 | | Child Elements | None | | Element Context | /Section 8/Section 187/Section 188/FileData | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | The data of the file. | +-----------------+---------------------------------------------+ 193. FileUID Lhomme, et al. Expires January 9, 2017 [Page 136] Internet-Draft Matroska July 2016 +----------------+--------------------------------------------------+ | Element Name | FileUID | +----------------+--------------------------------------------------+ | Element ID | 0x46AE | | Element Type | uinteger | | Version | 1-4 | | Parent Element | Section 188 | | Child Elements | None | | Element | /Section 8/Section 187/Section 188/FileUID | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Unique ID representing the file, as random as | | | possible. | +----------------+--------------------------------------------------+ 194. FileReferral +---------------+---------------------------------------------------+ | Element Name | FileReferral | +---------------+---------------------------------------------------+ | Element ID | 0x4675 | | Element Type | binary | | Version | 1-4 | | Parent | Section 188 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 187/Section 188/FileReferral | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A binary value that a track/codec can refer to | | | when the attachment is needed. | +---------------+---------------------------------------------------+ 195. FileUsedStartTime Lhomme, et al. Expires January 9, 2017 [Page 137] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | FileUsedStartTime | +--------------+----------------------------------------------------+ | Element ID | 0x4661 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 188 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 187/Section | | Context | 188/FileUsedStartTime | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | DivX font extension | | n | | +--------------+----------------------------------------------------+ 196. FileUsedEndTime +--------------+----------------------------------------------------+ | Element Name | FileUsedEndTime | +--------------+----------------------------------------------------+ | Element ID | 0x4662 | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 188 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 187/Section 188/FileUsedEndTime | | Context | | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | DivX font extension | | n | | +--------------+----------------------------------------------------+ 197. Chapters Lhomme, et al. Expires January 9, 2017 [Page 138] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | Chapters | +---------------+---------------------------------------------------+ | Element ID | 0x1043A770 | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 198 | | Elements | | | Element | /Section 8/Chapters | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A system to define basic menus and partition | | | data. For more detailed information, look at the | | | Chapters Explanation. | +---------------+---------------------------------------------------+ 198. EditionEntry +---------------+---------------------------------------------------+ | Element Name | EditionEntry | +---------------+---------------------------------------------------+ | Element ID | 0x45B9 | | Element Type | master | | Version | 1-4 | | Parent | Section 197 | | Element | | | Child | Section 199 Section 200 Section 201 Section 202 | | Elements | Section 203 | | Element | /Section 8/Section 197/EditionEntry | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Contains all information about a Segment edition. | +---------------+---------------------------------------------------+ 199. EditionUID Lhomme, et al. Expires January 9, 2017 [Page 139] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | EditionUID | +---------------+---------------------------------------------------+ | Element ID | 0x45BC | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 198 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/EditionUID | | Context | | | Mandatory | Not Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | A unique ID to identify the edition. It's useful | | | for tagging an edition. | +---------------+---------------------------------------------------+ 200. EditionFlagHidden +--------------+----------------------------------------------------+ | Element Name | EditionFlagHidden | +--------------+----------------------------------------------------+ | Element ID | 0x45BD | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 198 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section | | Context | 198/EditionFlagHidden | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | If an edition is hidden (1), it SHOULD NOT be | | n | available to the user interface (but still to | | | Control Tracks; see flag notes). (1 bit) | +--------------+----------------------------------------------------+ 201. EditionFlagDefault Lhomme, et al. Expires January 9, 2017 [Page 140] Internet-Draft Matroska July 2016 +--------------+----------------------------------------------------+ | Element Name | EditionFlagDefault | +--------------+----------------------------------------------------+ | Element ID | 0x45DB | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 198 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section | | Context | 198/EditionFlagDefault | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | If a flag is set (1) the edition SHOULD be used as | | n | the default one. (1 bit) | +--------------+----------------------------------------------------+ 202. EditionFlagOrdered +--------------+----------------------------------------------------+ | Element Name | EditionFlagOrdered | +--------------+----------------------------------------------------+ | Element ID | 0x45DD | | Element Type | uinteger | | Version | 1-4 | | Parent | Section 198 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section | | Context | 198/EditionFlagOrdered | | Mandatory | Not Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | Specify if the chapters can be defined multiple | | n | times and the order to play them is enforced. (1 | | | bit) | +--------------+----------------------------------------------------+ 203. ChapterAtom Lhomme, et al. Expires January 9, 2017 [Page 141] Internet-Draft Matroska July 2016 +---------------+---------------------------------------------------+ | Element Name | ChapterAtom | +---------------+---------------------------------------------------+ | Element ID | 0xB6 | | Element Type | master | | Version | 1-4 | | Parent | Section 198 | | Element | | | Child | Section 204 Section 205 Section 206 Section 207 | | Elements | Section 208 Section 209 Section 210 Section 211 | | | Section 212 Section 213 Section 215 Section 219 | | Element | /Section 8/Section 197/Section 198/ChapterAtom | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Recursive | | Documentation | Contains the atom information to use as the | | | chapter atom (apply to all tracks). | +---------------+---------------------------------------------------+ 204. ChapterUID +-------------+-----------------------------------------------------+ | Element | ChapterUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x73C4 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterUID | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | A unique ID to identify the Chapter. | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 142] Internet-Draft Matroska July 2016 205. ChapterStringUID +------------+------------------------------------------------------+ | Element | ChapterStringUID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x5654 | | Element | utf-8 | | Type | | | Version | 3-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterStringUID | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | A unique string ID to identify the Chapter. Use for | | ion | WebVTT cue identifier storage. | +------------+------------------------------------------------------+ 206. ChapterTimeStart +------------+------------------------------------------------------+ | Element | ChapterTimeStart | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x91 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterTimeStart | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Timestamp of the start of Chapter (not scaled). | | ion | | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 143] Internet-Draft Matroska July 2016 207. ChapterTimeEnd +-------------+-----------------------------------------------------+ | Element | ChapterTimeEnd | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x92 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterTimeEnd | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Timestamp of the end of Chapter (timestamp | | on | excluded, not scaled). | +-------------+-----------------------------------------------------+ 208. ChapterFlagHidden +------------+------------------------------------------------------+ | Element | ChapterFlagHidden | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x98 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterFlagHidden | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | If a chapter is hidden (1), it SHOULD NOT be | | ion | available to the user interface (but still to | | | Control Tracks; see flag notes). (1 bit) | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 144] Internet-Draft Matroska July 2016 209. ChapterFlagEnabled +------------+------------------------------------------------------+ | Element | ChapterFlagEnabled | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x4598 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterFlagEnabled | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Specify wether the chapter is enabled. It can be | | ion | 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) | +------------+------------------------------------------------------+ 210. ChapterSegmentUID Lhomme, et al. Expires January 9, 2017 [Page 145] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | ChapterSegmentUID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x6E67 | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterSegmentUID | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | The SegmentUID of another Segment to play during | | ion | this chapter. | +------------+------------------------------------------------------+ 211. ChapterSegmentEditionUID +-----------+-------------------------------------------------------+ | Element | ChapterSegmentEditionUID | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x6EBC | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterSegmentEditionUID | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The EditionUID to play from the Segment linked in | | tion | ChapterSegmentUID. If ChapterSegmentEditionUID is | | | undeclared then no Edition of the linked Segment is | | | used. | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 146] Internet-Draft Matroska July 2016 212. ChapterPhysicalEquiv +------------+------------------------------------------------------+ | Element | ChapterPhysicalEquiv | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x63C3 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterPhysicalEquiv | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Specify the physical equivalent of this ChapterAtom | | ion | like "DVD" (60) or "SIDE" (50), see complete list of | | | values. | +------------+------------------------------------------------------+ 213. ChapterTrack +-------------+-----------------------------------------------------+ | Element | ChapterTrack | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x8F | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | Section 214 | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterTrack | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | List of tracks on which the chapter applies. If | | on | this Element is not present, all tracks apply | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 147] Internet-Draft Matroska July 2016 214. ChapterTrackNumber +-----------+-------------------------------------------------------+ | Element | ChapterTrackNumber | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x89 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 213 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 213/ChapterTrackNumber | | Mandatory | Mandatory | | Repeatabi | Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | UID of the Track to apply this chapter too. In the | | tion | absense of a control track, choosing this chapter | | | will select the listed Tracks and deselect unlisted | | | tracks. Absense of this Element indicates that the | | | Chapter SHOULD be applied to any currently used | | | Tracks. | +-----------+-------------------------------------------------------+ 215. ChapterDisplay Lhomme, et al. Expires January 9, 2017 [Page 148] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | ChapterDisplay | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x80 | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | Section 216 Section 217 Section 218 | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapterDisplay | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Contains all possible strings to use for the | | on | chapter display. | +-------------+-----------------------------------------------------+ 216. ChapString +------------+------------------------------------------------------+ | Element | ChapString | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x85 | | Element | utf-8 | | Type | | | Version | 1-4 | | Parent | Section 215 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 215/ChapString | | Mandatory | Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | Contains the string to use as the chapter atom. | | ion | | +------------+------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 149] Internet-Draft Matroska July 2016 217. ChapLanguage +-----------+-------------------------------------------------------+ | Element | ChapLanguage | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x437C | | ID | | | Element | string | | Type | | | Version | 1-4 | | Parent | Section 215 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 215/ChapLanguage | | Mandatory | Mandatory | | Repeatabi | Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The languages corresponding to the string, in the | | tion | bibliographic ISO-639-2 form. | +-----------+-------------------------------------------------------+ 218. ChapCountry Lhomme, et al. Expires January 9, 2017 [Page 150] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ChapCountry | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x437E | | ID | | | Element | string | | Type | | | Version | 1-4 | | Parent | Section 215 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 215/ChapCountry | | Mandatory | Not Mandatory | | Repeatabi | Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | The countries corresponding to the string, same 2 | | tion | octets as in Internet domains. | +-----------+-------------------------------------------------------+ 219. ChapProcess +-------------+-----------------------------------------------------+ | Element | ChapProcess | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x6944 | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 203 | | Element | | | Child | Section 220 Section 221 Section 222 | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/ChapProcess | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Contains all the commands associated to the Atom. | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 151] Internet-Draft Matroska July 2016 220. ChapProcessCodecID +-----------+-------------------------------------------------------+ | Element | ChapProcessCodecID | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x6955 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 219 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 219/ChapProcessCodecID | | Mandatory | Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Contains the type of the codec used for the | | tion | 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. | +-----------+-------------------------------------------------------+ 221. ChapProcessPrivate Lhomme, et al. Expires January 9, 2017 [Page 152] Internet-Draft Matroska July 2016 +-----------+-------------------------------------------------------+ | Element | ChapProcessPrivate | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x450D | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 219 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 219/ChapProcessPrivate | | Mandatory | Not Mandatory | | Repeatabi | Not Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Some optional data attached to the ChapProcessCodecID | | tion | information. For ChapProcessCodecID = 1, it is the | | | "DVD level" equivalent. | +-----------+-------------------------------------------------------+ 222. ChapProcessCommand +-----------+-------------------------------------------------------+ | Element | ChapProcessCommand | | Name | | +-----------+-------------------------------------------------------+ | Element | 0x6911 | | ID | | | Element | master | | Type | | | Version | 1-4 | | Parent | Section 219 | | Element | | | Child | Section 223 Section 224 | | Elements | | | Element | /Section 8/Section 197/Section 198/Section | | Context | 203/Section 219/ChapProcessCommand | | Mandatory | Not Mandatory | | Repeatabi | Repeatable | | lity | | | Recursive | Not Recursive | | Documenta | Contains all the commands associated to the Atom. | | tion | | +-----------+-------------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 153] Internet-Draft Matroska July 2016 223. ChapProcessTime +----------+--------------------------------------------------------+ | Element | ChapProcessTime | | Name | | +----------+--------------------------------------------------------+ | Element | 0x6922 | | ID | | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 222 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section 203/Section | | Context | 219/Section 222/ChapProcessTime | | Mandator | Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Defines when the process command SHOULD be handled (0: | | ation | during the whole chapter, 1: before starting playback, | | | 2: after playback of the chapter). | +----------+--------------------------------------------------------+ 224. ChapProcessData Lhomme, et al. Expires January 9, 2017 [Page 154] Internet-Draft Matroska July 2016 +----------+--------------------------------------------------------+ | Element | ChapProcessData | | Name | | +----------+--------------------------------------------------------+ | Element | 0x6933 | | ID | | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 222 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 197/Section 198/Section 203/Section | | Context | 219/Section 222/ChapProcessData | | Mandator | Mandatory | | y | | | Repeatab | Not Repeatable | | ility | | | Recursiv | Not Recursive | | e | | | Document | Contains the command information. The data SHOULD be | | ation | interpreted depending on the ChapProcessCodecID value. | | | For ChapProcessCodecID = 1, the data correspond to the | | | binary DVD cell pre/post commands. | +----------+--------------------------------------------------------+ 225. Tags +---------------+---------------------------------------------------+ | Element Name | Tags | +---------------+---------------------------------------------------+ | Element ID | 0x1254C367 | | Element Type | master | | Version | 1-4 | | Parent | Section 8 | | Element | | | Child | Section 226 | | Elements | | | Element | /Section 8/Tags | | Context | | | Mandatory | Not Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Element containing Elements specific to | | | Tracks/Chapters. A list of valid tags can be | | | found here. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 155] Internet-Draft Matroska July 2016 226. Tag +----------------+--------------------------------------------------+ | Element Name | Tag | +----------------+--------------------------------------------------+ | Element ID | 0x7373 | | Element Type | master | | Version | 1-4 | | Parent Element | Section 225 | | Child Elements | Section 227 Section 234 | | Element | /Section 8/Section 225/Tag | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Not Recursive | | Documentation | Element containing Elements specific to | | | Tracks/Chapters. | +----------------+--------------------------------------------------+ 227. Targets +---------------+---------------------------------------------------+ | Element Name | Targets | +---------------+---------------------------------------------------+ | Element ID | 0x63C0 | | Element Type | master | | Version | 1-4 | | Parent | Section 226 | | Element | | | Child | Section 228 Section 229 Section 230 Section 231 | | Elements | Section 232 Section 233 | | Element | /Section 8/Section 225/Section 226/Targets | | Context | | | Mandatory | Mandatory | | Repeatability | Not Repeatable | | Recursive | Not Recursive | | Documentation | Contain all UIDs where the specified meta data | | | apply. It is empty to describe everything in the | | | Segment. | +---------------+---------------------------------------------------+ 228. TargetTypeValue Lhomme, et al. Expires January 9, 2017 [Page 156] Internet-Draft Matroska July 2016 +------------+------------------------------------------------------+ | Element | TargetTypeValue | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x68CA | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TargetTypeValue | | Mandatory | Not Mandatory | | Repeatabil | Not Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | A number to indicate the logical level of the target | | ion | (see TargetType). | +------------+------------------------------------------------------+ 229. TargetType +-------------+-----------------------------------------------------+ | Element | TargetType | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x63CA | | Element | string | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TargetType | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | An informational string that can be used to display | | on | the logical level of the target like "ALBUM", | | | "TRACK", "MOVIE", "CHAPTER", etc (see TargetType). | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 157] Internet-Draft Matroska July 2016 230. TagTrackUID +-------------+-----------------------------------------------------+ | Element | TagTrackUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x63C5 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TagTrackUID | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | A unique ID to identify the Track(s) the tags | | on | belong to. If the value is 0 at this level, the | | | tags apply to all tracks in the Segment. | +-------------+-----------------------------------------------------+ 231. TagEditionUID Lhomme, et al. Expires January 9, 2017 [Page 158] Internet-Draft Matroska July 2016 +-------------+-----------------------------------------------------+ | Element | TagEditionUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x63C9 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TagEditionUID | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | A unique ID to identify the EditionEntry(s) the | | on | tags belong to. If the value is 0 at this level, | | | the tags apply to all editions in the Segment. | +-------------+-----------------------------------------------------+ 232. TagChapterUID +-------------+-----------------------------------------------------+ | Element | TagChapterUID | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x63C4 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TagChapterUID | | Mandatory | Not Mandatory | | Repeatabili | Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | A unique ID to identify the Chapter(s) the tags | | on | belong to. If the value is 0 at this level, the | | | tags apply to all chapters in the Segment. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 159] Internet-Draft Matroska July 2016 233. TagAttachmentUID +------------+------------------------------------------------------+ | Element | TagAttachmentUID | | Name | | +------------+------------------------------------------------------+ | Element ID | 0x63C6 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 227 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 227/TagAttachmentUID | | Mandatory | Not Mandatory | | Repeatabil | Repeatable | | ity | | | Recursive | Not Recursive | | Documentat | A unique ID to identify the Attachment(s) the tags | | ion | belong to. If the value is 0 at this level, the tags | | | apply to all the attachments in the Segment. | +------------+------------------------------------------------------+ 234. SimpleTag +---------------+---------------------------------------------------+ | Element Name | SimpleTag | +---------------+---------------------------------------------------+ | Element ID | 0x67C8 | | Element Type | master | | Version | 1-4 | | Parent | Section 226 | | Element | | | Child | Section 235 Section 236 Section 237 Section 238 | | Elements | Section 239 | | Element | /Section 8/Section 225/Section 226/SimpleTag | | Context | | | Mandatory | Mandatory | | Repeatability | Repeatable | | Recursive | Recursive | | Documentation | Contains general information about the target. | +---------------+---------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 160] Internet-Draft Matroska July 2016 235. TagName +--------------+----------------------------------------------------+ | Element Name | TagName | +--------------+----------------------------------------------------+ | Element ID | 0x45A3 | | Element Type | utf-8 | | Version | 1-4 | | Parent | Section 234 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 234/TagName | | Mandatory | Mandatory | | Repeatabilit | Not Repeatable | | y | | | Recursive | Not Recursive | | Documentatio | The name of the Tag that is going to be stored. | | n | | +--------------+----------------------------------------------------+ 236. TagLanguage +-------------+-----------------------------------------------------+ | Element | TagLanguage | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x447A | | Element | string | | Type | | | Version | 1-4 | | Parent | Section 234 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 234/TagLanguage | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Specifies the language of the tag specified, in the | | on | Matroska languages form. | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 161] Internet-Draft Matroska July 2016 237. TagDefault +-------------+-----------------------------------------------------+ | Element | TagDefault | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x4484 | | Element | uinteger | | Type | | | Version | 1-4 | | Parent | Section 234 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 234/TagDefault | | Mandatory | Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | Indication to know if this is the default/original | | on | language to use for the given tag. (1 bit) | +-------------+-----------------------------------------------------+ 238. TagString +-------------+-----------------------------------------------------+ | Element | TagString | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x4487 | | Element | utf-8 | | Type | | | Version | 1-4 | | Parent | Section 234 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 234/TagString | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The value of the Tag. | | on | | +-------------+-----------------------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 162] Internet-Draft Matroska July 2016 239. TagBinary +-------------+-----------------------------------------------------+ | Element | TagBinary | | Name | | +-------------+-----------------------------------------------------+ | Element ID | 0x4485 | | Element | binary | | Type | | | Version | 1-4 | | Parent | Section 234 | | Element | | | Child | None | | Elements | | | Element | /Section 8/Section 225/Section 226/Section | | Context | 234/TagBinary | | Mandatory | Not Mandatory | | Repeatabili | Not Repeatable | | ty | | | Recursive | Not Recursive | | Documentati | The values of the Tag if it is binary. Note that | | on | this cannot be used in the same SimpleTag as | | | TagString. | +-------------+-----------------------------------------------------+ If you intend to implement a Matroska player, make sure you can handle all the files in our test suite [20], or at least the features presented there, not necessarily the same codecs. 240. Beginning of File An EBML file always starts with 0x1A. The 0x1A makes the DOS command "type" ends display. That way you can include ASCII text before the EBML data and it can be displayed. The EBML parser is safe from false-alarm with these ASCII only codes. Next the EBML header is stored. This allows the the parser to know what type of EBML file it is parsing. 241. Block Timecodes The Block's timecode is signed interger that represents the Raw Timecode relative to the Cluster's [21] Timecode [22], multiplied by the TimecodeScale (see the TimecodeScale notes [23]). The Block's timecode is represented by a 16bit signed interger (sint16). This means that the Block's timecode has a range of -32768 to +32767 units. When using the default value of TimecodeScale, each Lhomme, et al. Expires January 9, 2017 [Page 163] Internet-Draft Matroska July 2016 integer represents 1ms. So, the maximum time span of Blocks in a Cluster using the default TimecodeScale of 1ms is 65536ms. If a Cluster's [24] Timecode [25] is set to zero, it is possible to have Blocks with a negative Raw Timecode. Blocks with a negative Raw Timecode are not valid. 242. Default decoded field duration The "DefaultDecodedFieldDuration" Element can signal to the displaying application how often fields of a video sequence will be available for displaying. It can be used for both interlaced and progressive content. If the video sequence is signaled as interlaced, then the period between two successive fields at the output of the decoding process equals DefaultDecodedFieldDuration. For video sequences signaled as progressive it is twice the value of DefaultDecodedFieldDuration. These values are valid at the end of the decoding process before post-processing like deinterlacing or inverse telecine is applied. Examples: o Blu-ray movie: 1000000000ns/(48/1.001) = 20854167ns o PAL broadcast/DVD: 1000000000ns/(50/1.000) = 20000000ns o N/ATSC broadcast: 1000000000ns/(60/1.001) = 16683333ns o hard-telecined DVD: 1000000000ns/(60/1.001) = 16683333ns (60 encoded interlaced fields per second) o soft-telecined DVD: 1000000000ns/(60/1.001) = 16683333ns (48 encoded interlaced fields per second, with "repeat_first_field = 1") 243. Default Values The default value of an Element is assumed when not present in the data stream. It is assumed only in the scope of its Parent Element (for example "Language" in the scope of the "Track" element). If the "Parent Element" is not present or assumed, then the Element cannot be assumed. Lhomme, et al. Expires January 9, 2017 [Page 164] Internet-Draft Matroska July 2016 244. DRM Digital Rights Management. See Encryption [26]. 245. EBML Class A larger EBML Class typically means the Element has a lower probability/importance. A larger Class-ID can be used as a synch word in case the file is damaged. Elements that are used frequently, but do not need to act as a synch word, SHOULD have a small Class-ID. For example, the Cluster has a 4 octet ID and can be used as a synch word if the file is damaged. However, the every common Element in the BlockGroup has a single octet ID to conserve space because of how frequently it is used. 246. Encryption Encryption in Matroska is designed in a very generic style that allows people to implement whatever form of encryption is best for them. It is easily possible to use the encryption framework in Matroska as a type of DRM. Because the encryption occurs within the Block, it is possible to manipulate encrypted streams without decrypting them. The streams could potentially be copied, deleted, cut, appended, or any number of other possible editing techniques without ever decrypting them. This means that the data is more useful, without having to expose it, or go through the intensive process of decrypting. Encryption can also be layered within Matroska. This means that two completely different types of encryption can be used, requiring two seperate keys to be able to decrypt a stream. Encryption information is stored in the "ContentEncodings" Master- element under the "ContentEncryption" Element. 247. Image cropping Thanks to the PixelCropXXX elements, it's possible to crop the image before being resized. That means the image size follows this path: PixelXXX (size of the coded image) -> PixelCropXXX (size of the image to keep) -> DisplayXXX (resized cropped image) Lhomme, et al. Expires January 9, 2017 [Page 165] Internet-Draft Matroska July 2016 248. Matroska version indicators The EBML Header each Matroska file starts with contains two version number fields that inform a reading application about what to expect. These are "DocTypeVersion" and "DocTypeReadVersion". "DocTypeVersion" MUST contain the highest Matroska version number of any Element present in the Matroska file. For example, a file using the SimpleBlock Element MUST have a "DocTypeVersion" of at least 2 while a file containing "CueRelativePosition" Elements MUST have a "DocTypeVersion" of at least 4. The "DocTypeReadVersion" MUST contain the minimum version number a reading application MUST at least suppost properly in order to play the file back (optionally with a reduced feature set). For example, if a file contains only Elements of version 2 or lower except for "CueRelativePosition" (which is a version 4 Matroska Element) then "DocTypeReadVersion" SHOULD still be set to 2 and not 4 because evaluating "CueRelativePosition" is not REQUIRED for standard playback -- it only makes seeking more precise if used. "DocTypeVersion" MUST always be equal to or greater than "DocTypeReadVersion". A reading application supporting Matroska version "V" MUST NOT refuse to read an application with "DocReadTypeVersion" equal to or lower than "V" even if "DocTypeVersion" is greater than "V". See also the note about Unknown Elements [27]. 249. Mime Types There is no IETF endorsed MIME type for Matroska files. But you can use the ones we have defined on our web server: o .mka : Matroska audio "audio/x-matroska" o .mkv : Matroska video "video/x-matroska" o .mk3d : Matroska 3D video "video/x-matroska-3d" 250. Octet An Octet refers to a byte made of 8 bits. Lhomme, et al. Expires January 9, 2017 [Page 166] Internet-Draft Matroska July 2016 251. Overlay Track Overlay tracks SHOULD be rendered in the same 'channel' as the track it's linked to. When content is found in such a track it is played on the rendering channel instead of the original track. 252. Position References The position in some Elements refers to the position, in octets, from the beginning of an Element. The reference is the beginning of the first Segment (= its position + the size of its ID and size fields). 0 = first possible position of a level 1 Element in the Segment. When data is spanned over mutiple Segments within a Section 254 (in the same file or in different files), the position represents the accumulated offset of each Segment. For example to reference a position in the third Segment, the position will be: the first segment total size + second segment total size + offset of the Element in the third segment. 253. Raw Timecode The exact time of an object represented in nanoseconds. To find out a Block's Raw Timecode, you need the Block's timecode, the Cluster's [28] Timecode [29], and the TimecodeScale. For calculation, please see the see the TimecodeScale notes. 254. Linked Segments Matroska provides several methods to link two or many Segments together to create a Linked Segment. A Linked Segment is a set of multiple Segments related together into a single presentation by using Hard Linking, Soft Linking, or Medium Linking. All Segments within a Linked Segment MUST utilize the same track numbers and timescale. All Segments within a Linked Segment MUST be stored within the same directory. All Segments within a Linked Segment MUST store a "SegmentUID". 254.1. Hard Linking Hard Linking (also called splitting) is the process of creating a Linked Segment by relating multiple Segments using the "PrevUID" and "NextUID" Elements. Within a Linked Segment the timestamps of each Segment MUST follow consecutively in linking order. With Hard Linking, the chapters of any Segment within the Linked Segment MUST only reference the current Segment. With Hard Linking, the "NextUID" and "PrevUID" MUST reference the respective "SegmentUID" values of the next and previous Segments. The first Segment of a Linked Segment MUST have a "NextUID" Element and MUST NOT have a "PrevUID" Lhomme, et al. Expires January 9, 2017 [Page 167] Internet-Draft Matroska July 2016 Element. The last Segment of a Linked Segment MUST have a "PrevUID" Element and MUST NOT have a "NextUID" Element. The middle Segments of a Linked Segment MUST have both a "NextUID" Element and a "PrevUID" Element. As an example four Segments MAY be Hard Linked as a Linked Segment through cross-referencing each other with "SegmentUID", "PrevUID", and "NextUID" as in this table. +--------+------------------+-------------------+-------------------+ | file | SegmentUID | PrevUID | NextUID | | name | | | | +--------+------------------+-------------------+-------------------+ | "start | "71000c23cd31099 | n/a | "a77b3598941cb803 | | .mkv" | 853fbc94dd984a5d | | eac0fcdafe44fac9" | | | d" | | | | "middl | "a77b3598941cb80 | "71000c23cd310998 | "6c92285fa6d3e827 | | e.mkv" | 3eac0fcdafe44fac | 53fbc94dd984a5dd" | b198d120ea3ac674" | | | 9" | | | | "end.m | "6c92285fa6d3e82 | "a77b3598941cb803 | n/a | | kv" | 7b198d120ea3ac67 | eac0fcdafe44fac9" | | | | 4" | | | +--------+------------------+-------------------+-------------------+ 254.2. Soft Linking Soft Linking is used by codec chapters. They can reference another Segment and jump to that Segment. The way the Segments are described are internal to the chapter codec and unknown to the Matroska level. But there are Elements within the "Info" Element (such as "ChapterTranslate") that can translate a value representing a Segment in the chapter codec and to the current "SegmentUID". All Segments that could be used in a Linked Segment in this way SHOULD be marked as members of the same family via the SegmentFamily Element, so that the player can quickly switch from one to the other. 254.3. Medium Linking WMedium Linking creates relationships between Segments using Ordered Chapters and the "ChapterSegmentUID" Element. A Segment Edition with Ordered Chapters MAY contain Chapters that reference timestamp ranges from other Segments. The Segment referenced by the Ordered Chapter via the "ChapterSegmentUID" Element SHOULD be played as part of a Linked Segment. The timestamps of Segment content referenced by Ordered Chapters MUST be adjusted according to the cumulative duration of the the previous Ordered Chapters. Lhomme, et al. Expires January 9, 2017 [Page 168] Internet-Draft Matroska July 2016 As an example a file named "intro.mkv" could have a "SegmentUID" of "0xb16a58609fc7e60653a60c984fc11ead". Another file called "program.mkv" could use a Chapter Edition that contains two Ordered Chapters. The first chapter references the Segment of "intro.mkv" with the use of a "ChapterSegmentUID", "ChapterSegmentEditionUID", "ChapterTimeStart" and optionally a "ChapterTimeEnd" element. The second chapter references content within the Segment of "program.mkv". A player SHOULD recognize the Linked Segment created by the use of "ChapterSegmentUID" in an enabled Edition and present the reference content of the two Segments together. 255. Timecode Types o Absolute Timecode = Block+Cluster o Relative Timecode = Block o Scaled Timecode = Block+Cluster o Raw Timecode = (Block+Cluster)_TimecodeScale_TrackTimecodeScale 256. TimecodeScale The TimecodeScale [30] is used to calculate the Raw Timecode of a Block. The timecode is obtained by adding the Block's timecode to the Cluster's [31] Timecode [32], and then multiplying that result by the TimecodeScale. The result will be the Block's Raw Timecode in nanoseconds. The formula for this would look like: (a + b) * c a = [Block's Timecode]({{site.baseurl}}/index.html#block-header) b = [Cluster's](#cluster) [Timecode](#timecode) c = [TimeCodeScale]({{site.baseurl}}/index.html#TimeCodeScale) An example of this is, assume a Cluster's [33] Timecode [34] has a value of 564264, the Block has a Timecode of 1233, and the timecodescale is the default of 1000000. (1233 + 564264) * 1000000 = 565497000000 So, the Block in this example has a specific time of 565497000000 in nanoseconds. In milliseconds this would be 565497ms. Lhomme, et al. Expires January 9, 2017 [Page 169] Internet-Draft Matroska July 2016 257. TimecodeScale Rounding Because the default value of TimecodeScale is 1000000, which makes each integer in the Cluster and Block timecodes equal 1ms, this is the most commonly used. When dealing with audio, this causes innaccuracy with where you are seeking to. When the audio is combined with video, this is not an issue. For most cases the the synch of audio to video does not need to be more than 1ms accurate. This becomes obvious when one considers that sound will take 2-3ms to travel a single meter, so distance from your speakers will have a greater effect on audio/visual synch than this. However, when dealing with audio only files, seeking accuracy can become critical. For instance, when storing a whole CD in a single track, you want to be able to seek to the exact sample that a song begins at. If you seek a few sample ahead or behind then a 'crack' or 'pop' may result as a few odd samples are rendered. Also, when performing precise editing, it may be very useful to have the audio accuracy down to a single sample. It is usually true that when storing timecodes for an audio stream, the TimecodeScale MUST have an accuracy of at least that of the audio samplerate, otherwise there are rounding errors that prevent you from knowing the precise location of a sample. Here's how a program has to round each timecode in order to be able to recreate the sample number accurately. Let's assume that the application has an audio track with a sample rate of 44100. As written above the TimecodeScale MUST have at least the accuracy of the sample rate itself: 1000000000 / 44100 = 22675.7369614512. This value MUST always be truncated. Otherwise the accuracy will not suffice. So in this example the application wil use 22675 for the TimecodeScale. The application could even use some lower value like 22674 which would allow it to be a little bit imprecise about the original timecodes. But more about that in a minute. Next the application wants to write sample number 52340 and calculates the timecode. This is easy. In order to calculate the Raw Timecode in ns all it has to do is calculate "RawTimecode = round(1000000000 * sample_number / sample_rate)". Rounding at this stage is very important! The application might skip it if it choses a slightly smaller value for the TimecodeScale factor instead of the truncated one like shown above. Otherwise it has to round or the results won't be reversible. For our example we get "RawTimecode = round(1000000000 * 52340 / 44100) = round(1186848072.56236) = 1186848073". Lhomme, et al. Expires January 9, 2017 [Page 170] Internet-Draft Matroska July 2016 The next step is to calculate the Absolute Timecode - that is the timecode that will be stored in the Matroska file. Here the application has to divide the Raw Timecode from the previous paragraph by the TimecodeScale factor and round the result: "AbsoluteTimecode = round(RawTimecode / TimecodeScale_facotr)" which will result in the following for our example: "AbsoluteTimecode = round(1186848073 / 22675) = round(52341.7011245866) = 52342". This number is the one the application has to write to the file. Now our file is complete, and we want to play it back with another application. Its task is to find out which sample the first application wrote into the file. So it starts reading the Matroska file and finds the TimecodeScale factor 22675 and the audio sample rate 44100. Later it finds a data block with the Absolute Timecode of 52342. But how does it get the sample number from these numbers? First it has to calculate the Raw Timecode of the block it has just read. Here's no rounding involved, just an integer multiplication: "RawTimecode = AbsoluteTimecode * TimecodeScale_factor". In our example: "RawTimecode = 52342 * 22675 = 1186854850". The conversion from the RawTimecode to the sample number again requires rounding: "sample_number = round(RawTimecode * sample_rate / 1000000000)". In our example: "sample_number = round(1186854850 * 44100 / 1000000000) = round(52340.298885) = 52340". This is exactly the sample number that the previous program started with. Some general notes for a program: 1. Always calculate the timestamps / sample numbers with floating point numbers of at least 64bit precision (called 'double' in most modern programming languages). If you're calculating with integers then make sure they're 64bit long, too. 2. Always round if you divide. Always! If you don't you'll end up with situations in which you have a timecode in the Matroska file that does not correspond to the sample number that it started with. Using a slightly lower timecode scale factor can help here in that it removes the need for proper rounding in the conversion from sample number to Raw Timecode. If you want some sample code for all these calculations you can have a look at this small C program. For a given sample rate it will iterate over each sample, calculate the AbsoluteTimestamp and then re-calculate the sample number. Lhomme, et al. Expires January 9, 2017 [Page 171] Internet-Draft Matroska July 2016 258. Track Flags 258.1. Default flag The "default track" flag is a hint for the playback application and SHOULD always be changeable by the user. If the user wants to see or hear a track of a certain kind (audio, video, subtitles) and she hasn't chosen a specific track then the player SHOULD use the first track of that kind whose "default track" flag is set to "1". If no such track is found then the first track of this kind SHOULD be chosen. Only one track of a kind MAY have its "default track" flag set in a segment. If a track entry does not contain the "default track" flag element then its default value "1" is to be used. 258.2. Forced flag The "forced" flag tells the playback application that it MUST display/play this track or another track of the same kind that also has its "forced" flag set. When there are multiple "forced" tracks, the player SHOULD determined based upon the language of the forced flag or use the default flag if no track matches the use languages. Another track of the same kind without the "forced" flag may be use simultaneously with the "forced" track (like DVD subtitles for example). 259. TrackTimecodeScale The TrackTimecodeScale [35] is used align tracks that would otherwise be played at different speeds. An example of this would be if you have a film that was originally recorded at 24fps video. When playing this back through a PAL broadcasting system, it is standard to speed up the film to 25fps to match the 25fps display speed of the PAL broadcasting standard. However, when broadcasting the video through NTSC, it is typical to leave the film at its original speed. If you wanted to make a single file where there was one video stream, and an audio stream used from the PAL broadcast, as well as an audio stream used from the NTSC broadcast, you would have the problem that the PAL audio stream would be 1/24th faster than the NTSC audio stream, quickly leading to problems. It is possible to stretch out the PAL audio track and reencode it at a slower speed, however when dealing with lossy audio codecs, this often results in a loss of audio quality and/or larger file sizes. This is the type of problem that TrackTimecodeScale was designed to fix. Using it, the video can be played back at a speed that will Lhomme, et al. Expires January 9, 2017 [Page 172] Internet-Draft Matroska July 2016 synch with either the NTSC or the PAL audio stream, depending on which is being used for playback. To continue the above example: Track 1: Video Track 2: NTSC Audio Track 3: PAL Audio Because the NTSC track is at the original speed, it will used as the default value of 1.0 for its TrackTimecodeScale. The video will also be aligned to the NTSC track with the default value of 1.0. The TrackTimecodeScale value to use for the PAL track would be calculated by determining how much faster the PAL track is than the NTSC track. In this case, because we know the video for the NTSC audio is being played back at 24fps and the video for the PAL audio is being played back at 25fps, the calculation would be: (25 / 24) = ~ 1.04166666666666666667 When writing a file that uses a non-default TrackTimecodeScale, the values of the Block's timecode are whatever they would be when normally storing the track with a default value for the TrackTimecodeScale. However, the data is interleaved a little differently. Data SHOULD be interleaved by its Raw Timecode [36] in the order handed back from the encoder. The Raw Timecode of a Block from a track using TrackTimecodeScale is calculated using: "(Block's Timecode + Cluster's Timecode) * TimecodeScale * TrackTimecodeScale" So, a Block from the PAL track above that had a Scaled Timecode [37] of 100 seconds would have a Raw Timecode of 104.66666667 seconds, and so would be stored in that part of the file. When playing back a track using the TrackTimecodeScale, if the track is being played by itself, there is no need to scale it. From the above example, when playing the Video with the NTSC Audio, neither are scaled. However, when playing back the Video with the PAL Audio, the timecodes from the PAL Audio track are scaled using the TrackTimecodeScale, resulting in the video playing back in synch with the audio. It would be possible for a player to also adjust the audio's samplerate at the same time as adjusting the timecodes if you wanted to play the two audio streams synchronously. It would also be possible to adjust the video to match the audio's speed. However, for playback, the selected track(s) timecodes SHOULD be adjusted if they need to be scaled. Lhomme, et al. Expires January 9, 2017 [Page 173] Internet-Draft Matroska July 2016 While the above example deals specifically with audio tracks, this element can be used to align video, audio, subtitles, or any other type of track contained in a Matroska file. 260. Unknown elements Matroska is based upon the principal that a reading application does not have to support 100% of the specifications in order to be able to play the file. A Matroska file therefore contains version indicators [38] that tell a reading application what to expect. It is possible and valid to have the version fields indicate that the file contains Matroska Elements from a higher specification version number while signalling that a reading application MUST only support a lower version number properly in order to play it back (possibly with a reduced feature set). This implies that a reading application supporting at least Matroska version V reading a file whose DocTypeReadVersion field is equal to or lower than V MUST skip Matroska/EBML Elements it encounters but which it does not know about if that unknown element fits into the size constraints set by the current parent element. 261. Multi-planar and 3D videos There are 2 different ways to compress 3D videos: have each 'eye' track in a separate track and have one track have both 'eyes' combined inside (which is more efficient, compression-wise). Matroska supports both ways. For the single track variant, there is the StereoMode [39] Element which defines how planes are assembled in the track (mono or left- right combined). Odd values of StereoMode means the left plane comes first for more convenient reading. The pixel count of the track (PixelWidth/PixelHeight) is the raw amount of pixels (for example 3840x1080 for full HD side by side) and the DisplayWidth/Height in pixels is the amount of pixels for one plane (1920x1080 for that full HD stream). Old stereo 3D were displayed using anaglyph (cyan and red colours separated). For compatibility with such movies, there is a value of the StereoMode that corresponds to AnaGlyph. There is also a "packed" mode (values 13 and 14) which consists of packing 2 frames together in a Block using lacing. The first frame is the left eye and the other frame is the right eye (or vice versa). The frames SHOULD be decoded in that order and are possibly dependent on each other (P and B frames). Lhomme, et al. Expires January 9, 2017 [Page 174] Internet-Draft Matroska July 2016 For separate tracks, Matroska needs to define exactly which track does what. TrackOperation [40] with TrackCombinePlanes [41] do that. For more details look at how TrackOperation works [42]. The 3D support is still in infancy and may evolve to support more features. /index.html#StereoMode) used to be part of Matroska v2 but it didn't meet the requirement for multiple tracks. There was also a bug in libmatroska prior to 0.9.0 that would save/read it as 0x53B9 instead of 0x53B8. Readers may support these legacy files by checking Matroska v2 or 0x53B9. The olders values were 0: mono, 1: right eye, 2: left eye, 3: both eyes 262. Track Operation TrackOperation [43] allows combining multiple tracks to make a virtual one. It uses 2 separate system to combine tracks. One to create a 3D "composition" (left/right/background planes) and one to simplify join 2 tracks together to make a single track. A track created with TrackOperation is a proper track with a UID and all its flags. However the codec ID is meaningless because each "sub" track needs to be decoded by its own decoder before the "operation" is applied. The Cues corresponding to such a virtual track SHOULD be the sum of the Cues elements for each of the tracks it's composed of (when the Cues are defined per track). In the case of TrackJoinBlocks, the Blocks (from BlockGroup and SimpleBlock) of all the tracks SHOULD be used as if they were defined for this new virtual Track. When 2 Blocks have overlapping start or end timecodes, it's up to the underlying system to either drop some of these frames or render them the way they overlap. In the end this situation SHOULD be avoided when creating such tracks as you can never be sure of the end result on different platforms. 263. Matroska Element Ordering Guidelines Except for the EBML Header and the CRC-32 Element, the EBML specification does not require any particular storage order for Elements. The Matroska specification however defines mandates and recommendations for the ordering certain Elements in order facilitate better playback, seeking, and editing efficiency. This section describes and offers rationale for ordering requirements and recommendations for Matroska. Lhomme, et al. Expires January 9, 2017 [Page 175] Internet-Draft Matroska July 2016 263.1. Top-Level Elements A valid Matroska file requires only one Top-Level Element, the "Info" Element; however, to be playable Matroska MUST also contain at least one "Tracks" and "Cluster" Element. The first "Info" Element and the first "Tracks" Element MUST either be stored before the first "Cluster" Element or both be referenced by a "SeekHead" Element which occurs before the first "Cluster" Element. After a Matroska file has been created it could still be edited. For example chapters, tags or attachments can be added. When new Top- Level Elements are added to a Matroska file the "SeekHead" Element(s) MUST be updated so that the "SeekHead" Element(s) itemize the identify and position of all Top-Level Elements. Editing, removing, or adding Elements to a Matroska file often requires that some existing Elements be voided or extended; therefore, it is RECOMMENDED to use Void Elements as padding in between Top-Level Elements. 263.2. CRC-32 As noted by the EBML specification, if a "CRC-32" Element is used then the "CRC-32" Element MUST be the first ordered Element within its Parent Element. The Matroska specification recommends that "CRC- 32" Elements SHOULD NOT be used as an immediate Child Element of the "Segment" Element; however all Top-Level Elements of an EBML Document SHOULD include a CRC-32 Element as a Child Element. 263.3. SeekHead If used, the first "SeekHead" Element SHOULD be the first non-"CRC- 32" Child Element of the "Segment" Element. If a second "SeekHead" Element is used then the first "SeekHead" MUST reference the identity and position of the second "SeekHead", the second "SeekHead" MUST only reference "Cluster" Elements and not any other Top-Level Element, and the second "SeekHead" MAY be stored in any order relative to the other Top-Level Elements. Whether one or two "SeekHead" Elements is used, the "SeekHead" Element(s) MUST reference the identify and position of all Top-Level Elements except for the first "SeekHead". It is RECOMMENDED that the first "SeekHead" Element be followed by some padding (a "Void" Element) to allow for the "SeekHead" Element to be expanded to cover new Top-Level Elements that could be added to the Matroska file, such as "Tags", "Chapters" and "Attachments" Elements. Lhomme, et al. Expires January 9, 2017 [Page 176] Internet-Draft Matroska July 2016 263.4. Cues (index) The "Cues" Element is RECOMMENDED to optimize seeking access in Matroska. It is programmatically simpler to add the "Cues" Element after all of the "Cluster" Elements are written because this does not require a prediction of how much space to reserve before writing the "Cluster" Elements. On the other hand, storing the "Cues" Element before the "Clusters" can provide some seeking advantages. 263.5. Info The first "Info" Element SHOULD occur before the first "Tracks" and first "Cluster" Element. 263.6. Chapters The "Chapters" Element SHOULD be placed before the "Cluster" Element(s). The "Chapters" Element can be used during playback even if the user doesn't need to seek. It immediately gives the user information of what section is being read and what other sections are available. In the case of Ordered Chapters it RECOMMENDED to evaluate the logical linking even before starting playing anything. The "Chapters" Element SHOULD be placed before the first "Tracks" Element and after the first "Info" Element. 263.7. Attachments The "Attachments" Element is not meant to use by default when playing the file, but could contain the cover art and/or fonts. Cover art is useful even before the file is played and fonts could be needed before playback starts for initialization of subtitles that could use them. The "Attachments" Element MAY be placed before the first "Cluster" Element; however if the "Attachments" Element is likely to be edited, then it SHOULD be placed after the last "Cluster" Element. 263.8. Tags The "Tags" Element is the one that is most subject to changes after the file was originally created. So for easier editing the "Tags" Element SHOULD be placed at the end of the "Segment" Element, even after the "Attachments" Element. On the other hand, it is inconvenient to have to seek in the "Segment" for tags especially for network streams. So it's better if the "Tags" Element(s) are found early in the stream. When editing the "Tags" Element(s), the original "Tags" Element at the beginning can be voided [44] and a new one written right at the end [45] of the "Segment" Element. The file size will only marginally change. Lhomme, et al. Expires January 9, 2017 [Page 177] Internet-Draft Matroska July 2016 263.9. Optimum layout from a muxer o SeekHead o Info o Tracks o Chapters o Attachments o Tags o Clusters o Cues 263.10. Optimum layout after editing tags o SeekHead o Info o Tracks o Chapters o Attachments o Void o Clusters o Cues o Tags 263.11. Optimum layout with Cues at the front o SeekHead o Info o Tracks o Chapters Lhomme, et al. Expires January 9, 2017 [Page 178] Internet-Draft Matroska July 2016 o Attachments o Tags o Cues o Clusters 263.12. Cluster Timecode As each "BlockGroup" and "SimpleBlock" of a "Cluster" Element needs the Cluster "Timecode", the "Timecode" Element MUST occur as the first Child Element within the "Cluster" Element. 264. CodecID As an additional resource to this page Haali has created a list of codec IDs in a PDF [46]. For each TrackEntry inside matroska [47], there has to be a CodecID [48] defined. This ID is represent the codec used to encode data in the Track. The codec works with the coded data in the stream, but also with some codec initialisation. There are 2 different kind of codec "initialisation" : o CodecPrivate in the TrackEntry o CodecState in the BlockGroup Each of these elements contain the same kind of data. And these data depend on the codec used. Important Note: Please, when reading through this list, always keep in mind that the intention behind it is "NOT" to list all existing audio and video codecs, but more to list those codecs that are "currently supported" in matroska (or will be supported soon), and therfore need a well defined codec ID so that all developers supporting matroska will use the same ID. A list of all the codecs we plan to support in the future can be found on the CoreCodec forum [49] (subject to be changed constantly). If you feel we missed support for a very important codec, please tell us on our development mailing list (matroska-devel at freelists.org). See Lhomme, et al. Expires January 9, 2017 [Page 179] Internet-Draft Matroska July 2016 | Codec ID | Name | Description | | Video | | V_MS/VFW/FOURCC | Microsoft (TM) Video Codec Manager (VCM) | V_MS/VFW/FOURCC - Microsoft (TM) Video Codec Manager (VCM) The private data contains the VCM structure BITMAPINFOHEADER including the extra private bytes, as defined by Microsoft [50]. The data are stored in little endian format (like on IA32 machines). Where is the Huffman table stored in HuffYUV, not AVISTREAMINFO ??? And the FourCC, not in AVISTREAMINFO.fccHandler ??? | | V_UNCOMPRESSED | Video, raw uncompressed video frames | The private data is void, all details about the used colour specs and bit depth are to be put/read from the KaxCodecColourSpace elements. | | V_MPEG4/ISO/??? | MPEG4 ISO Profile Video | The stream complies with, and uses the CodecID for, one of the MPEG-4 profiles listed below. | | V_MPEG4/ISO/SP | MPEG4 ISO simple profile (DivX4) | stream was created via improved codec API (UCI) or even transmuxed from AVI (no b-frames in Simple Profile), frame order is coding order | | V_MPEG4/ISO/ASP | MPEG4 ISO advanced simple profile (DivX5, XviD, FFMPEG) | stream was created via improved codec API (UCI) or transmuxed from MP4, not simply transmuxed from AVI! Note there are differences how b-frames are handled in these native streams, when being compared to a VfW created stream, as here there are "no" dummy frames inserted, the frame order is exactly the same as the coding order, same as in MP4 streams! | | V_MPEG4/ISO/AP | MPEG4 ISO advanced profile | stream was created ... (see above) | | | V_MPEG4/MS/V3 | Microsoft (TM) MPEG4 V3 | and derivates, means DivX3, Angelpotion, SMR, etc.; stream was created using VfW codec or transmuxed from AVI; note that V1/V2 are covered in VfW compatibility mode | | V_MPEG1 | MPEG 1 | The matroska video stream will contain a demuxed Elementary Stream (ES ), where block boundaries are still to be defined. Its RECOMMENDED to use MPEG2MKV.exe for creating those files, and to compare the results with selfmade implementations | | V_MPEG2 | MPEG 2 | The matroska video stream will contain a demuxed Elementary Stream (ES ), where block boundaries are still to be defined. Its RECOMMENDED to use MPEG2MKV.exe for creating those files, and to compare the results with selfmade implementations | | V_REAL/???? | Real Video(TM) | The stream is one of the Real Video(TM) video streams listed below. Source for the codec names are from Karl Lillevold on Doom9 [51]. The CodecPrivate element contains a "real_video_props_t" structure in Big Endian byte order as found in librmff [52]. | | V_REAL/RV10 | RealVideo 1.0 aka RealVideo 5 | Individual slices from the Real container are combined into a single frame. | | V_REAL/ RV20 | RealVideo G2 and RealVideo G2+SVT | Individual slices from the Real container are combined into a single frame. | | V_REAL/RV30 | RealVideo 8 | Individual slices from the Real container are combined Lhomme, et al. Expires January 9, 2017 [Page 180] Internet-Draft Matroska July 2016 into a single frame. | | V_REAL/RV40 | rv40 : RealVideo 9 | Individual slices from the Real container are combined into a single frame. | | | V_QUICKTIME | Video taken from QuickTime(TM) files | Several codecs as stored in QuickTime, e.g. Sorenson or Cinepak. The CodecPrivate contains all additional data that is stored in the 'stsd' (sample description) atom in the QuickTime file *after* the mandatory video descriptor structure (starting with the size and FourCC fields). For an explanation of the QuickTime file format read Apple's PDF on QuickTime [53]. | | V_THEORA | Theora | The private data contains the first three Theora packets in order. The lengths of the packets precedes them. The actual layout is: o Byte 1: number of distinct packets '"#p"' minus one inside the CodecPrivate block. This MUST be '2' for current (as of 2016-07-08) Theora headers. o Bytes 2..n: lengths of the first '"#p"' packets, coded in Xiph- style lacing [54]. The length of the last packet is the length of the CodecPrivate block minus the lengths coded in these bytes minus one. o Bytes n+1..: The Theora identification header, followed by the commend header followed by the codec setup header. Those are described in the Theora specs [55]. | | V_PRORES | Apple ProRes | The private data contains the fourcc as found in MP4 movies: o apch: ProRes 422 High Quality o apcn: ProRes 422 Standard Definition o apcs: ProRes 422 LT o apco: ProRes 422 Proxy o ap4h: ProRes 4444 this page for more technical details on ProRes [56] | | Audio | | A_MPEG/L3 | MPEG Audio 1, 2, 2.5 Layer III | The private data is void. The data contain everything needed for playback in the MPEG Audio header of each frame. Lhomme, et al. Expires January 9, 2017 [Page 181] Internet-Draft Matroska July 2016 Corresponding ACM wFormatTag : 0x0055 | | A_MPEG/L2 | MPEG Audio 1, 2 Layer II | The private data is void. The data contain everything needed for playback in the MPEG Audio header of each frame. Corresponding ACM wFormatTag : 0x0050 | | A_MPEG/L1 | MPEG Audio 1, 2 Layer I | The private data is void. The data contain everything needed for playback in the MPEG Audio header of each frame. Corresponding ACM wFormatTag : 0x0050 | | A_PCM/INT/BIG | PCM Integer Big Endian | The private data is void. The bitdepth has to be read and set from KaxAudioBitDepth element Corresponding ACM wFormatTag : ??? | | A_PCM/INT/LIT | PCM Integer Little Endian | The private data is void. The bitdepth has to be read and set from KaxAudioBitDepth element Corresponding ACM wFormatTag : 0x0001 | | A_PCM/FLOAT/IEEE | Floating Point, IEEE compatible | The private data is void. The bitdepth has to be read and set from KaxAudioBitDepth element (32 bit in most cases). The float are stored in little endian order (most common float format). Corresponding ACM wFormatTag : 0x0003 | | A_MPC | MPC (musepack) SV8 | The main developer for musepack has requested that we wait until the SV8 framing has been fully defined for musepack before defining how to store it in Matroska. | | A_AC3 A_AC3/BSID9 A_AC3/BSID10 Lhomme, et al. Expires January 9, 2017 [Page 182] Internet-Draft Matroska July 2016 | (Dolby[TM]) AC3 | BSID <= 8 !! The private data is void ??? Corresponding ACM wFormatTag : 0x2000 ; channel number have to be read from the corresponding audio element AC3/BSID9 and AC3/BSID10 (DolbyNet) : The ac3 frame header has, similar to the mpeg-audio header a version field. Normal ac3 is defiened as bitstream id 8 (5 Bits, numbers are 0-15). Everything below 8 is still compatible with all decoders that handle 8 correctly. Everything higher are additions that break decoder compatibility. For the samplerates 24kHz (00); 22,05kHz (01) and 16kHz (10) the BSID is 9 For the samplerates 12kHz (00); 11,025kHz (01) and 8kHz (10) the BSID is 10 | | A_ALAC | ALAC (Apple Lossless Audio Codec) | The private data contains ALAC's magic cookie (both the codec specific configuration as well as the optional channel layout information). Its format is described in ALAC's official source code [57]. | | A_DTS | Digital Theatre System | Supports DTS, DTS-ES, DTS-96/26, DTS-HD High Resolution Audio and DTS-HD Master Audio. The private data is void. Corresponding ACM wFormatTag : 0x2001 | | A_DTS/EXPRESS | Digital Theatre System Express | DTS Express (a.k.a. LBR) audio streams. The private data is void. Corresponding ACM wFormatTag : 0x2001 | | A_DTS/LOSSLESS | Digital Theatre System Lossless | DTS Lossless audio that does not have a core substream. The private data is void. Corresponding ACM wFormatTag : 0x2001 | | A_VORBIS | Vorbis | The private data contains the first three Vorbis packet in order. The lengths of the packets precedes them. The actual layout is: Byte 1: number of distinct packets '"#p"' minus one inside the CodecPrivate block. This MUST be '2' for current (as of 2016-07-08) Vorbis headers. Bytes 2..n: lengths of the first '"#p"' packets, coded in Xiph-style lacing [58]. The length of the last packet is the length of the CodecPrivate block minus the lengths coded in these bytes minus one. Bytes n+1..: The Vorbis identification header [59], followed by the Vorbis comment header [60] followed by the codec setup header [61]. | | A_FLAC | FLAC (Free Lossless Audio Codec) [62] | The private data contains all the header/metadata packets before the first data packet. These include the first header packet containing only the word "fLaC" as well as all metadata packets. | | A_REAL/???? | Realmedia Audio codecs | The stream contains one of the following Lhomme, et al. Expires January 9, 2017 [Page 183] Internet-Draft Matroska July 2016 audio codecs. In each case the CodecPrivate element contains either the "real_audio_v4_props_t" or the "real_audio_v5_props_t" structure (differentiated by their "version" field; Big Endian byte order) as found in librmff [63]. | | A_REAL/14_4 | Real Audio 1 | | A_REAL/28_8 | Real Audio 2 | | A_REAL/COOK | Real Audio Cook Codec (codename: Gecko) | | A_REAL/ SIPR | Sipro Voice Codec | | A_REAL/RALF | Real Audio Lossless Format | | A_REAL/ATRC | Sony Atrac3 Codec | | | A_MS/ACM | Microsoft(TM) Audio Codec Manager (ACM) | The private data contains the ACM structure WAVEFORMATEX including the extra private bytes, as defined by Microsoft [64]. The data are stored in little endian format (like on IA32 machines). | | A_AAC/?????/??? | AAC Profile Audio | The stream complies with, and uses the CodecID for, one of the AAC profiles listed below. AAC audio always uses wFormatTag 0xFF | | A_AAC/MPEG2/MAIN | MPEG2 Main Profile | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG2/LC | Low Complexity | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG2/LC/SBR | Low Complexity with Spectral Band Replication | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG2/SSR | Scalable Sampling Rate | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG4/MAIN | MPEG4 Main Profile | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG4/LC | Low Complexity | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG4/LC/SBR | Low Complexity with Spectral Band Replication | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG4/SSR | Scalable Sampling Rate | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS Lhomme, et al. Expires January 9, 2017 [Page 184] Internet-Draft Matroska July 2016 headers and normal matroska frame based muxing scheme is applied. | | A_AAC/MPEG4/LTP | Long Term Prediction | The private data is void. Channel number and sample rate have to be read from the corresponding audio element. Audio stream is stripped from ADTS headers and normal matroska frame based muxing scheme is applied. | | | A_QUICKTIME | Audio taken from QuickTime(TM) files | Several codecs as stored in QuickTime, e.g. QDesign Music v1 or v2. The CodecPrivate contains all additional data that is stored in the 'stsd' (sample description) atom in the QuickTime file *after* the mandatory sound descriptor structure (starting with the size and FourCC fields). For an explanation of the QuickTime file format read Apple's PDF on QuickTime [65]. | | A_QUICKTIME/???? | QuickTime audio codecs | This CodecID is deprecated in favor of A_QUICKTIME (without a trailing codec name). Otherwise the storage is identical; see A_QUICKTIME for details. | A_QUICKTIME/QDMC | QDesign Music | | A_QUICKTIME/QDM2 | QDesign Music v2 | | A_TTA1 | The True Audio [66] lossles audio compressor | TTA format description [67] Each frame is kept intact, including the CRC32. The header and seektable are dropped. The private data is void. SamplingFrequency, Channels and BitDepth are used in the TrackEntry. wFormatTag = 0x77A1 | | A_WAVPACK4 | WavPack [68] lossles audio compressor | The Wavpack packets consist of a stripped header followed by the frame data. For multi-track (> 2 tracks) a frame consists of many packets. For hybrid files (lossy part + correction part), the correction part is stored in an additional block (level 1). For more details, check the WavPack muxing description [69]. | | Subtitle | | S_TEXT/UTF8 | UTF-8 Plain Text | Basic text subtitles. For more information, please look at the Subtitle specifications [70]. | | S_TEXT/SSA | Subtitles Format | The [Script Info] and [V4 Styles] sections are stored in the codecprivate. Each event is stored in its own Block. For more information, please read the specs for SSA/ASS [71]. | | S_TEXT/ASS | Advanced Subtitles Format | The [Script Info] and [V4 Styles] sections are stored in the codecprivate. Each event is stored in its own Block. For more information, please read the specs for SSA/ASS [72]. | | S_TEXT/USF | Universal Subtitle Format | This is mostly defined, but not typed out yet. It will first be available on the USF specs page [73]. | | S_TEXT/WEBVTT | Web Video Text Tracks Format (WebVTT) | Advanced text subtitles. For more information about the storage please look at the WebVTT in Matroska specifications [74]. | | S_IMAGE/BMP | Bitmap | Basic image based subtitle format; Lhomme, et al. Expires January 9, 2017 [Page 185] Internet-Draft Matroska July 2016 The subtitles are stored as images, like in the DVD. The timestamp in the block header of matroska indicates the start display time, the duration is set with the Duration element. The full data for the subtitle bitmap is stored in the Block's data section. | | S_VOBSUB | VobSub subtitles | The same subtitle format used on DVDs. Supoprted is only format version 7 and newer. VobSubs consist of two files, the .idx containing information, and the .sub, containing the actual data. The .idx file is stripped of all empty lines, of all comments and of lines beginning with "alt:" or "langidx:". The line beginning with "id:" SHOULD be transformed into the appropriate Matroska track language element and is discarded. All remaining lines but the ones containing timestamps and file positions are put into the "CodecPrivate" element. For each line containing the timestamp and file position data is read from the appropriate position in the .sub file. This data consists of a MPEG program stream which in turn contains SPU packets. The MPEG program stream data is discarded, and each SPU packet is put into one Matroska frame. | | S_KATE | Karaoke And Text Encapsulation | A subtitle format developped for ogg. The mapping for Matroska is described on the Xiph wiki [75]. As for Theora and Vorbis, Kate headers are stored in the private data as xiph-laced packets. | | Buttons | | B_VOBBTN | VobBtn Buttons | Based on MPEG/VOB PCI packets [76]. The file contains a header consisting of the string "butonDVD" followed by the width and height in pixels (16 bits integer each) and 4 reserved bytes. The rest is full PCI packets [77]. | To be supported later : 'V_MSWMV'; Video, Microsoft Video 'V_INDEO5'; Video, Indeo 5; transmuxed from AVI or created using VfW codec 'V_MJPEG'; Video, MJpeg codec (lossy mode, general) 'V_MJPEG2000'; Video, MJpeg 2000 'V_MJPEG2000LL'; Video, MJpeg Lossless 'V_DV'; Video, DV Video, type 1 (audio and video mixed) 'V_TARKIN'; Video, Ogg Tarkin 'V_ON2VP4'; Video, ON2, VP4 'V_ON2VP5'; Video, ON2, VP5 'V_3IVX'; Video, 3ivX (is D4 decoder downwards compatible?) Lhomme, et al. Expires January 9, 2017 [Page 186] Internet-Draft Matroska July 2016 'V_HUFFYUV'; Video, HuffYuv, lossless; auch als VfW moeglich 'V_COREYUV'; Video, CoreYuv, lossless; auch als VfW moeglich 'V_RUDUDU'; Nicola's Rududu Wavelet codec ...... to be continued--- #Chapters 264.1. Example 1 : basic chaptering In this example a movie is split in different chapters. It could also just be an audio file (album) on which each track corresponds to a chapter. o 00000ms - 05000ms : Intro o 05000ms - 25000ms : Before the crime o 25000ms - 27500ms : The crime o 27500ms - 38000ms : The killer arrested o 38000ms - 43000ms : Credits This would translate in the following matroska form : | Chapters | EditionEntry | ChapterAtom | ChapterUID | 0x123456 | ChapterTimeStart | 0 ns | ChapterTimeEnd | 5,000,000 ns | ChapterDisplay | ChapterString | Intro | ChapterLanguage | eng | ChapterAtom | ChapterUID | 0x234567 | ChapterTimeStart | 5,000,000 ns | ChapterTimeEnd | 25,000,000 ns | ChapterDisplay | ChapterString | Before the crime | ChapterLanguage | eng | ChapterDisplay | ChapterString | Avant le crime | ChapterLanguage | fra | ChapterAtom | ChapterUID | 0x345678 | ChapterTimeStart | 25,000,000 ns | ChapterTimeEnd | 27,500,000 ns | ChapterDisplay | ChapterString | The crime | ChapterLanguage | eng | ChapterDisplay | ChapterString | Le crime | ChapterLanguage | fra | ChapterAtom | ChapterUID | 0x456789 | ChapterTimeStart | 27,500,000 ns | ChapterTimeEnd | 38,000,000 ns | ChapterDisplay | ChapterString | After the crime | ChapterLanguage | eng | ChapterDisplay | ChapterString | Apres le crime | ChapterLanguage | fra | ChapterAtom | ChapterUID | 0x456789 | ChapterTimeStart | 38,000,000 ns | ChapterTimeEnd | 43,000,000 ns | ChapterDisplay | ChapterString | Credits | ChapterLanguage | eng | ChapterDisplay | ChapterString | Generique | ChapterLanguage | fra | Lhomme, et al. Expires January 9, 2017 [Page 187] Internet-Draft Matroska July 2016 264.2. Example 2 : nested chapters In this example an (existing) album is split into different chapters, and one of them contain another splitting. 264.2.1. The Micronauts "Bleep To Bleep" o 00:00 - 12:28 : Baby Wants To Bleep/Rock * 00:00 - 04:38 : Baby wants to bleep (pt.1) * 04:38 - 07:12 : Baby wants to rock * 07:12 - 10:33 : Baby wants to bleep (pt.2) * 10:33 - 12:28 : Baby wants to bleep (pt.3) o 12:30 - 19:38 : Bleeper_O+2 o 19:40 - 22:20 : Baby wants to bleep (pt.4) o 22:22 - 25:18 : Bleep to bleep o 25:20 - 33:35 : Baby wants to bleep (k) o 33:37 - 44:28 : Bleeper | Chapters | EditionEntry | ChapterAtom | ChapterUID | 0x654321 | ChapterTimeStart | 0 ns | ChapterTimeEnd | 748,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep/rock | ChapterAtom | ChapterUID | 0x123456 | ChapterTimeStart | 0 ns | ChapterTimeEnd | 278,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep (pt.1) | ChapterAtom | ChapterUID | 0x234567 | ChapterTimeStart | 278,000,000 ns | ChapterTimeEnd | 432,000,000 ns | ChapterDisplay | ChapterString | Baby wants to rock | ChapterAtom | ChapterUID | 0x345678 | ChapterTimeStart | 432,000,000 ns | ChapterTimeEnd | 633,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep (pt.2) | ChapterAtom | ChapterUID | 0x456789 | ChapterTimeStart | 633,000,000 ns | ChapterTimeEnd | 748,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep (pt.3) | ChapterAtom | ChapterUID | 0x567890 | ChapterTimeStart | 750,000,000 ns | ChapterTimeEnd | 1,178,500,000 ns | ChapterDisplay | ChapterString | Bleeper_O+2 | ChapterAtom | ChapterUID | 0x678901 | ChapterTimeStart | 1,180,500,000 ns | ChapterTimeEnd | 1,340,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep (pt.4) | ChapterAtom | ChapterUID | 0x789012 | ChapterTimeStart | 1,342,000,000 ns | ChapterTimeEnd | 1,518,000,000 ns | ChapterDisplay | ChapterString | Bleep to bleep | ChapterAtom | Lhomme, et al. Expires January 9, 2017 [Page 188] Internet-Draft Matroska July 2016 ChapterUID | 0x890123 | ChapterTimeStart | 1,520,000,000 ns | ChapterTimeEnd | 2,015,000,000 ns | ChapterDisplay | ChapterString | Baby wants to bleep (k) | ChapterAtom | ChapterUID | 0x901234 | ChapterTimeStart | 2,017,000,000 ns | ChapterTimeEnd | 2,668,000,000 ns | ChapterDisplay | ChapterString | Bleeper | 264.3. Edition and chapter flags 264.3.1. Chapter flags There are two important flags that apply to chapter atoms: _enabled_ and _hidden_. The effect of those flags always applies to child atoms of an atom affected by that flag. For example: Let's assume a parent atom with flag _hidden_ set to _true_; that parent contains two child atom, the first with _hidden_ set to _true_ as well and the second child with the flag either set to _false_ or not present at all (in which case the default value applies, and that again is _false_). As the parent is hidden all of its children are initially hidden as well. However, when a control track toggles the parent's _hidden_ flag to _false_ then only the the parent and its second child will be visible. The first child's explicitely set flag retains its value until its value is toggled to _false_ by a control track. Corresponding behavior applies to the _enabled_ flag. 264.3.2. Edition flags The edition's _hidden_ flag behaves much the same as the chapter's _hidden_ flag: if an edition is hidden then none of its children SHALL be visible, no matter their own _hidden_ flags. If the edition is toggled to being visible then the chapter atom's _hidden_ flags decide whether or not the chapter is visible. 264.4. Menu features The menu features are handled like a _chapter codec_. That means each codec has a type, some private data and some data in the chapters. The type of the menu system is defined by the ChapProcessCodecID parameter. For now only 2 values are supported : 0 matroska script, 1 menu borrowed from the DVD. The private data depend on the type of menu system (stored in ChapProcessPrivate), idem for the data in the chapters (stored in ChapProcessData). Lhomme, et al. Expires January 9, 2017 [Page 189] Internet-Draft Matroska July 2016 264.4.1. Matroska Script (0) This is the case when ChapProcessCodecID [78] = 0. This is a script language build for Matroska purposes. The inspiration comes from ActionScript, javascript and other similar scripting languages. The commands are stored as text commands, in UTF-8. The syntax is C like, with commands spanned on many lines, each terminating with a ";". You can also include comments at the end of lines with "//" or comment many lines using "/* */". The scripts are stored in ChapProcessData. For the moment ChapProcessPrivate is not used. The one and only command existing for the moment is "GotoAndPlay( ChapterUID );". As the same suggests, it means that when this command is encountered, the playback SHOULD jump to the Chapter specified by the UID and play it. 264.4.2. DVD menu (1) This is the case when ChapProcessCodecID [79] = 1. Each level of a chapter corresponds to a logical level in the DVD system that is stored in the first octet of the ChapProcessPrivate. This DVD hierarchy is as follows: | ChapProcessPrivate | DVD Name | Hierarchy | Commands Possible | Comment | | 0x30 | SS | DVD domain | - | First Play, Video Manager, Video Title | | 0x2A | LU | Language Unit | - | Contains only PGCs | | 0x28 | TT | Title | - | Contains only PGCs | | 0x20 | PGC | Program Group Chain (PGC) | * | | 0x18 | PG | Program 1 | Program 2 | Program 3 | - | | 0x10 | PTT | Part Of Title 1 | Part Of Title 2 | - | Equivalent to the chapters on the sleeve. | | 0x08 | CN | Cell 1 | Cell 2 | Cell 3 | Cell 4 | Cell 5 | Cell 6 | - | You can also recover wether a Segment is a Video Manager (VMG), Video Title Set (VTS) or Video Title Set Menu (VTSM) from the ChapterTranslateID [80] element found in the Segment Info. This field uses 2 octets as follows: 1. Domain Type: 0 for VMG, the domain number for VTS and VTSM 2. Domain Value: 0 for VMG and VTSM, 1 for the VTS source. For instance, the menu part from VTS_01_0.VOB would be coded [1,0] and the content part from VTS_02_3.VOB would be [2,1]. The VMG is always [0,0] The following octets of ChapProcessPrivate are as follows: Lhomme, et al. Expires January 9, 2017 [Page 190] Internet-Draft Matroska July 2016 | Octet 1 | DVD Name | Following Octets | | 0x30 | SS | Domain name code (1: 0x00= First play, 0xC0= VMG, 0x40= VTSM, 0x80= VTS) + VTS(M) number (2) | | 0x2A | LU | Language code (2) + Language extension (1) | | 0x28 | TT | global Title number (2) + corresponding TTN of the VTS (1) | | 0x20 | PGC | PGC number (2) + Playback Type (1) + Disabled User Operations (4) | | 0x18 | PG | Program number (2) | | 0x10 | PTT | PTT-chapter number (1) | | 0x08 | CN | Cell number [VOB ID(2)][Cell ID(1)][Angle Num(1)] | If the level specified in ChapProcessPrivate is a PGC (0x20), there is an octet called the Playback Type, specifying the kind of PGC defined: o 0x00: entry only/basic PGC o 0x82: Title+Entry Menu (only found in the Video Manager domain) o 0x83: Root Menu (only found in the VTSM domain) o 0x84: Subpicture Menu (only found in the VTSM domain) o 0x85: Audio Menu (only found in the VTSM domain) o 0x86: Angle Menu (only found in the VTSM domain) o 0x87: Chapter Menu (only found in the VTSM domain) The next 4 following octets correspond to the User Operation flags [81] in the standard PGC. When a bit is set, the command SHOULD be disabled. ChapProcessData contains the pre/post/cell commands in binary format as there are stored on a DVD. There is just an octet preceeding these data to specify the number of commands in the element. As follows: [# of commands(1)][command 1 (8)][command 2 (8)][command 3 (8)]. More information on the DVD commands and format on DVD-replica [82], where we got most of the info about it. You can also get information on DVD from the DVDinfo project [83].--- 265. Subtitles Because Matroska is a general container format, we try to avoid specifying the formats to store in it. This type of work is really outside of the scope of a container-only format. However, because the use of subtitles in A/V containers has been so limited (with the exception of DVD) we are taking the time to specify how to store some Lhomme, et al. Expires January 9, 2017 [Page 191] Internet-Draft Matroska July 2016 of the more common subtitle formats in Matroska. This is being done to help facilitate their growth. Otherwise, incompatabilities could prevent the standardization and use of subtitle storage. This page is not meant to be a complete listing of all subtitle formats that will be used in Matroska, it is only meant to be a guide for the more common, current formats. It is possible that we will add future formats to this page as they are created, but it is not likely as any other new subtitle format designer would likely have their own specifications. Any specification listed here SHOULD be strictly adhered to or it SHOULD NOT use the corresponding Codec ID. Here is a list of pointers for storing subtitles in Matroska: o Any Matroska file containing only subtitles SHOULD use the extension ".mks". o As a general rule of thumb for all codecs, information that is global to an entire stream SHOULD be stored in the CodecPrivate element. o Start and stop timecodes that are used in a timecodes native storage format SHOULD be removed when being placed in Matroska as they could interfere if the file is edited afterwards. Instead, the Blocks timecode and Duration SHOULD be used to say when the timecode is displayed. o Because a "subtitle" stream is actually just an overlay stream, anything with a transparency layer could be use, including video. 266. Images Subtitles The first image format that is a goal to import into Matroska is the VobSub subtitle format. This subtitle type is generated by exporting the subtitles from a DVD. The requirement for muxing VobSub into Matroska is v7 subtitles (see first line of the .IDX file). If the version is smaller, you must remux them using the SubResync utility from VobSub 2.23 (or MPC) into v7 format. Generally any newly created subs will be in v7 format. The .IFO file will not be used at all. If there is more than one subtitle stream in the VobSub set, each stream will need to be seperated into seperate tracks for storage in Matroska. E.g. the VobSub file contains streams for both English and German subtitles. Then the resulting Matroska file SHOULD contain Lhomme, et al. Expires January 9, 2017 [Page 192] Internet-Draft Matroska July 2016 two tracks. That way the language information can be 'dropped' and mapped to Matroska's language tags. The .IDX file is reformatted (see below) and placed in the CodecPrivate. Each .BMP will be stored in its own Block. The Timestamp with be stored in the Blocks Timecode and the duration will be stored in the Default Duration. Here is an example .IDX file: # VobSub index file, v7 (do not modify this line!) # # To repair desyncronization, you can insert gaps this way: # (it usually happens after vob id changes) # # delay: [sign]hh:mm:ss:ms # # Where: # [sign]: +, - (optional) # hh: hours (0 <= hh) # mm/ss: minutes/seconds (0 <= mm/ss <= 59) # ms: milliseconds (0 <= ms <= 999) # # Note: You can't position a sub before the previous with a negative # value. # # You can also modify timestamps or delete a few subs you don't like. # Just make sure they stay in increasing order. # Settings # Original frame size size: 720x480 # Origin, relative to the upper-left corner, can be overloaded by # aligment org: 0, 0 # Image scaling (hor,ver), origin is at the upper-left corner or at # the alignment coord (x, y) scale: 100%, 100% # Alpha blending alpha: 100% # Smoothing for very blocky images (use OLD for no filtering) Lhomme, et al. Expires January 9, 2017 [Page 193] Internet-Draft Matroska July 2016 smooth: OFF # In millisecs fadein/out: 50, 50 # Force subtitle placement relative to (org.x, org.y) align: OFF at LEFT TOP # For correcting non-progressive desync. (in millisecs or hh:mm:ss:ms) # Note: Not effective in DirectVobSub, use "delay: ... " instead. time offset: 0 # ON: displays only forced subtitles, OFF: shows everything forced subs: OFF # The original palette of the DVD palette: 000000, 7e7e7e, fbff8b, cb86f1, 7f74b8, e23f06, 0a48ea, \ b3d65a, 6b92f1, 87f087, c02081, f8d0f4, e3c411, 382201, e8840b, fdfdfd # Custom colors (transp idxs and the four colors) custom colors: OFF, tridx: 0000, colors: 000000, 000000, 000000, \ 000000 # Language index in use langidx: 0 # English id: en, index: 0 # Decomment next line to activate alternative name in DirectVobSub / # Windows Media Player 6.x # alt: English # Vob/Cell ID: 1, 1 (PTS: 0) timestamp: 00:00:01:101, filepos: 000000000 timestamp: 00:00:08:708, filepos: 000001000 First, lines beginning with "#" are removed. These are comments to make text file editing easier, and as this is not a text file, they aren't needed. Next remove the "langidx" and "id" lines. These are used to differenciate the subtitle streams and define the language. As the streams will be stored seperately anyway, there is no need to differenciate them here. Also, the language setting will be stored in the Matroska tags, so there is no need to store it here. Finally, the "timestamp" will be used to set the Block's timecode. Once it is set there, there is no need for it to be stored here. Lhomme, et al. Expires January 9, 2017 [Page 194] Internet-Draft Matroska July 2016 Also, as it may interfere if the file is edited, it SHOULD NOT be stored here. Once all of these items are removed, the data to store in the CodecPrivate SHOULD look like this: size: 720x480 org: 0, 0 scale: 100%, 100% alpha: 100% smooth: OFF fadein/out: 50, 50 align: OFF at LEFT TOP time offset: 0 forced subs: OFF palette: 000000, 7e7e7e, fbff8b, cb86f1, 7f74b8, e23f06, 0a48ea, \ b3d65a, 6b92f1, 87f087, c02081, f8d0f4, e3c411, 382201, e8840b, fdfdfd custom colors: OFF, tridx: 0000, colors: 000000, 000000, 000000, \ 000000 There SHOULD also be two Blocks containing one image each with the timecodes "00:00:01:101" and "00:00:08:708". 267. SRT Subtitles SRT is perhaps the most basic of all subtitle formats. It consists of four parts, all in text.. 1. A number indicating which subtitle it is in the sequence. 2. The time that the subtitle appears on the screen, and then disappears. 3. The subtitle itself. 4. A blank line indicating the start of a new subtitle. When placing SRT in Matroska, part 3 is converted to UTF-8 (S_TEXT/ UTF8) and placed in the data portion of the Block. Part 2 is used to set the timecode of the Block, and BlockDuration element. Nothing else is used. Here is an example SRT file: | 1 00:02:17,440 --> 00:02:20,375 Senator, we're making our final approach into Coruscant. 2 00:02:20,476 --> 00:02:22,501 Very good, Lieutenant. Lhomme, et al. Expires January 9, 2017 [Page 195] Internet-Draft Matroska July 2016 | In this example, the text "Senator, we're making our final approach into Coruscant." would be converted into UTF-8 and placed in the Block. The timecode of the block would be set to "00:02:17,440". And the BlockDuration element would be set to "00:00:02,935". The same is repeated for the next subtitle. Because there are no general settings for SRT, the CodecPrivate is left blank. 268. SSA/ASS Subtitles SSA stands for Sub Station Alpha. It's the file format used by the popular subtitle editor, SubStation Alpha [84]. This format is widely used by fansubbers. It allows you to do some advanced display features, like positioning, karaoke, style managements... For detailed information on SSA/ASS, see the SSA specs [85]. It includes an SSA specs description and the avanced features added by ASS format (standing for Advanced SSA). Because SSA and ASS are so similar, they are treated the same here. Like SRT, this format is text based with a particular syntax. A file consists of 4 or 5 parts, declared ala INI file (but it's not an INI !) The first, "[Script Info]" contains some information about the subtitle file, such as it's title, who created it, type of script and a very important one : "PlayResY". Be carefull of this value, everything in your script (font size, positioning) is scaled by it. Sub Station Alpha uses your desktops Y resolution to write this value, so if a friend with a large monitor and a high screen resolution gives you an edited script, you can mess everything up by saving the script in SSA with your low-cost monitor. The second, "[V4 Styles]", is a list of style definitions. A style describe how will look a text on the screen. It defines font, font size, primary/.../outile colour, position, aligment etc ... For example this : | Lhomme, et al. Expires January 9, 2017 [Page 196] Internet-Draft Matroska July 2016 Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding Style: Wolf main,Wolf_Rain,56,15724527,15724527,15724527,4144959,0,0, 1,1,2,2,5,5,30,0,0 | The third, "[Events]", is the list of text you want to display at the right timing. You can specify some attribute here. Like the style to use for this event (MUST be defined in the list), the position of the text (Left, Right, Vertical Margin), an effect. Name is mostly used by translator to know who said this sentence. Timing is in h:mm:ss.cc (centisec). | Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: Marked=0,0:02:40.65,0:02:41.79,Wolf main,Cher,0000,0000,0000,,Et les enregistrements de ses ondes delta ? Dialogue: Marked=0,0:02:42.42,0:02:44.15,Wolf main,autre,0000,0000,0000,,Toujours rien. | "[Pictures]" or "[Fonts]" part can be found in some SSA file, they contains UUE-encoded pictures/font but those features are only used by Sub Station Alpha, i.e. no filter (Vobsub/Avery Lee Subtiler filter) use them. Now, how are they stored in Matroska ? o All text is converted to UTF-8* All the headers are stored in CodecPrivate ( Script Info and the Styles list)* Start & End field are used to set TimeStamp and the BlockDuration element. the data stored is :* Events are stored in the Block in this order: ReadOrder, Layer, Style, Name, MarginL, MarginR, MarginV, Effect, Text (Layer comes from ASS specs ... it's empty for SSA.) "ReadOrder field is needed for the decoder to be able to reorder the streamed samples as they were placed originally in the file." Here is an example of an SSA file. | [Script Info] ; This is a Sub Station Alpha v4 script. ; For Sub Station Alpha info and downloads, ; go to http://www.eswat.demon.co.uk/ ; or email kotus@eswat.demon.co.uk [87] Title: Wolf's rain 2 Original Script: Anime-spirit Ishin-francais Original Translation: Coolman Original Editing: Spikewolfwood Lhomme, et al. Expires January 9, 2017 [Page 197] Internet-Draft Matroska July 2016 Original Timing: Lord_alucard Original Script Checking: Spikewolfwood ScriptType: v4.00 Collisions: Normal PlayResY: 1024 PlayDepth: 0 Wav: 0, 128697,D:\Alex\Anime- Fansub -- TAFF -\Wolf's Rain\WR_-_02_Wav.wav Wav: 0, 120692,H:\team truc\WR_-_02.wav Wav: 0, 116504,E:\sub\wolf's_rain\WOLF'S RAIN 02.wav LastWav: 3 Timer: 100,0000 [V4 Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding Style: Default,Arial,20,65535,65535,65535,- 2147483640,-1,0,1,3,0,2,30,30,30,0,0 Style: Titre_episode,Akbar,140,15724527,65535,65535,986895,- 1,0,1,1,0,3,30,30,30,0,0 Style: Wolf main,Wolf_Rain,56,15724527,15724 527,15724527,4144959,0,0,1,1,2,2,5,5,30,0,0 [Events] Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: Marked=0,0:02:40.65,0:02:41.79,Wolf main,Cher,0000,0000,0000,,Et les enregistrements de ses ondes delta ? Dialogue: Marked=0,0:02:42.42,0:02:44.15,Wolf main,autre,0000,0000,0000,,Toujours rien. | Here is what would be placed into the CodecPrivate element. | [Script Info] ; This is a Sub Station Alpha v4 script. ; For Sub Station Alpha info and downloads, ; go to http://www.eswat.demon.co.uk/ ; or email kotus@eswat.demon.co.uk [89] Title: Wolf's rain 2 Original Script: Anime-spirit Ishin-francais Original Translation: Coolman Original Editing: Spikewolfwood Original Timing: Lord_alucard Original Script Checking: Spikewolfwood ScriptType: v4.00 Collisions: Normal PlayResY: 1024 PlayDepth: 0 Wav: 0, 128697,D:\Alex\Anime- Fansub -- TAFF -\Wolf's Rain\WR_-_02_Wav.wav Wav: 0, 120692,H:\team truc\WR_-_02.wav Wav: 0, 116504,E:\sub\wolf's_rain\WOLF'S RAIN 02.wav LastWav: 3 Timer: 100,0000 [V4 Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding Style: Default,Arial,20,65535,65535,65535,- 2147483640,-1,0,1,3,0,2,30,30,30,0,0 Style: Titre_episode,Akbar,140,15724527,65535,65535,986895,- 1,0,1,1,0,3,30,30,30,0,0 Style: Wolf main,Wolf_Rain,56,15724527,15724 527,15724527,4144959,0,0,1,1,2,2,5,5,30,0,0 | And here are the two blocks that would be generated. Block's timecode: 00:02:40.650 BlockDuration: 00:00:01.140 Lhomme, et al. Expires January 9, 2017 [Page 198] Internet-Draft Matroska July 2016 | 1,,Wolf main,Cher,0000,0000,0000,,Et les enregistrements de ses ondes delta ? | Block's timecode: 00:02:42.420 BlockDuration: 00:00:01.730 | 2,,Wolf main,autre,0000,0000,0000,,Toujours rien. | 269. USF Subtitles Under construction 270. WebVTT The "Web Video Text Tracks Format" (short: WebVTT) is developed by the World Wide Web Consortium (W3C) [90]. Its specifications are freely available [91]. The guiding principles for the storage of WebVTT in Matroska are: o Consistency: store data in a similar way to other subtitle codecs o Simplicity: making decoding and remuxing as easy as possible for existing infrastructures o Completeness: keeping as much data as possible from the original WebVTT file 270.1. Storage of WebVTT in Matroska 270.1.1. CodecID: codec identification The CodecID to use is S_TEXT/WEBVTT. 270.1.2. CodecPrivate: storage of gloal WebVTT blocks This element contains all global blocks before the first subtitle entry. This starts at the "WEBVTT" file identification marker but excludes the optional byte order mark. 270.1.3. Storage of non-global WebVTT blocks Non-global WebVTT blocks (e.g. "NOTE") before a WebVTT Cue Text are stored in Matroska's BlockAddition element together with the Matroska Block containing the WebVTT Cue Text these blocks precede (see below for the actual format). Lhomme, et al. Expires January 9, 2017 [Page 199] Internet-Draft Matroska July 2016 270.1.4. Storage of Cues in Matroska blocks Each WebVTT Cue Text is stored directly in the Matroska Block. A muxer MUST change all WebVTT Cue Timestamps present within the Cue Text to be relative to the Matroska Block's timestamp. The Cue's start timestamp is used as the Matroska Block's timestamp. The difference between the Cue's end timestamp and its start timestamp is used as the Matroska Block's duration. 270.1.5. BlockAdditions: storing non-global WebVTT blocks, Cue Settings Lists and Cue identifiers Each Matroska Block may be accompanied by one BlockAdditions element. Its format is as follows: 1. The first line contains the WebVTT Cue Text's optional Cue Settings List followed by one line feed character (U+0x000a). The Cue Settings List may be empty in which case the line consists of the line feed character only. 2. The second line contains the WebVTT Cue Text's optional Cue Identifier followed by one line feed character (U+0x000a). The line may be empty indicating that there was no Cue Identifier in the source file in which case the line consists of the line feed character only. 3. The third and all following lines contain all WebVTT Comment Blocks that precede the current WebVTT Cue Block. These may be absent. If there is no Matroska BlockAddition element stored together with the Matroska Block then all three components (Cue Settings List, Cue Identifier, Cue Comments) MUST be assumed to be absent. 270.2. Examples of transformation Here's an example how a WebVTT is transformed. 270.2.1. Example WebVTT file Let's take the following example file: Lhomme, et al. Expires January 9, 2017 [Page 200] Internet-Draft Matroska July 2016 270.2.2. CodecPrivate The resulting CodecPrivate element will look like this: 270.2.3. Storage of Cue 1 Example Cue 1: timestamp 00:00:00.000, duration 00:00:10.000, Block's content: BlockAddition's content starts with one empty line as there's no Cue Settings List: 270.2.4. Storage of Cue 2 Example Cue 2: timestamp 00:00:25.000, duration 00:00:10.000, Block's content: BlockAddition's content starts with two empty lines as there's neither a Cue Settings List nor a Cue Identifier: 270.2.5. Storage of Cue 3 Example Cue 3: timestamp 00:01:03.000, duration 00:00:03.500, Block's content: BlockAddition's content ends with an empty line as there's no Cue Identifier and there were no WebVTT Comment blocks: 270.2.6. Storage of Cue 4 Example Cue 4: timestamp 00:03:10.000, duration 00:00:10.000, Block's content: Example entry 4: Entries can even include timestamps. For example:<00:00:05.000>This becomes visible five seconds after the first part. This Block does not need a BlockAddition as the Cue did not contain an Identifier, nor a Settings List, and it wasn't preceded by Comment blocks. 270.3. Storage of WebVTT in Matroska vs. WebM Note: the storage of WebVTT in Matroska is not the same as the design document for storage of WebVTT in WebM. There are several reasons for this including but not limited to: the WebM document is old (from February 2012) and was based on an earlier draft of WebVTT and ignores several parts that were added to WebVTT later; WebM does Lhomme, et al. Expires January 9, 2017 [Page 201] Internet-Draft Matroska July 2016 still not support subtitles at all [92]; the proposal suggests splitting the information across multiple tracks making demuxer's and remuxer's life very difficult.--- 271. Tagging When a Tag is nested within another Tag, the nested Tag becomes an attribute of the base tag. For instance, if you wanted to store the dates that a singer used certain addresses for, that singer being the lead singer for a track that included multiple bands simultaneously, then your tag tree would look something like this: Targets - TrackUID BAND - LEADPERFORMER -- ADDRESS --- DATE --- DATEEND -- ADDRESS --- DATE In this way, it becomes possible to store any Tag as attributes of another tag. Multiple items SHOULD never be stored as a list in a single TagString. If there is more than one tag of a certain type to be stored, then more than one SimpleTag SHOULD be used. For authoring Tags outside of EBML, the following XML syntax is proposed [93] used in mkvmerge [94]. Binary data SHOULD be stored using BASE64 encoding if it is being stored at authoring time. 271.1. Why official tags matter There is a debate between people who think all tags SHOULD be free and those who think all tags SHOULD be strict. If you look at this page you will realise we are in between. Advanced-users application might let you put any tag in your file. But for the rest of the applications, they usually give you a basic list of tags you can use. Both have their needs. But it's usually a bad idea to use custom/exotic tags because you will probably be the only person to use this information even though everyone else could benefit from it. So hopefully when someone wants to put information in one's file, they will find an official one that fit them and hopefully use it ! If it's not in the list, this person can contact us any time for addition of such a missing tag. But it doesn't mean it will be accepted... Matroska files are not meant the become a whole database of people who made costumes for a film. A website would be better for that... It's hard to define what SHOULD be in and what doesn't make sense in a file. So we'll treat each request carefully. We also need an official list simply for developpers to be able to display relevant information in their own design (if they choose to support a list of meta-information they SHOULD know which tag has the wanted meaning so that other apps could understand the same meaning). Lhomme, et al. Expires January 9, 2017 [Page 202] Internet-Draft Matroska July 2016 271.2. Tag translations To be able to save tags from other systems to Matroska we need to translate them to our system. There is a translation table on our site [95]. 271.3. Tag Formatting o The TagName SHOULD always be written in all capital letters and contain no space. o The fields with dates SHOULD have the following format: YYYY-MM-DD HH:MM:SS.MSS YYYY = Year, -MM = Month, -DD = Days, HH = Hours, :MM = Minutes, :SS = Seconds, :MSS = Milliseconds. To store less accuracy, you remove items starting from the right. To store only the year, you would use, "2004". To store a specific day such as May 1st, 2003, you would use "2003-05-01". o Fields that require a Float SHOULD use the "." mark instead of the "," mark. To display it differently for another local, applications SHOULD support auto replacement on display. Also, a thousandths separator SHOULD NOT be used. o For currency amounts, there SHOULD only be a numeric value in the Tag. Only numbers, no letters or symbols other than ".". For instance, you would store "15.59" instead of "$15.59USD". 271.4. Target types The TargetType element allows tagging of different parts that are inside or outside a given file. For example in an audio file with one song you could have information about the album it comes from and even the CD set even if it's not found in the file. For application to know what kind of information (like TITLE) relates to a certain level (CD title or track title), we also need a set of official TargetType names. For now audio and video will have different values & names. That also means the same tag name can have different meanings depending on where it is (otherwise we would end up with 15 TITLE_ tags). An upper level value tag applies to the lower level. That means if a CD has the same artist for all tracks, you just need to set the ARTIST tag at level 50 (ALBUM) and not to each TRACK (but you can). That also means that if some parts of the CD have no known ARTIST the value MUST be set to nothing (a void string ""). Lhomme, et al. Expires January 9, 2017 [Page 203] Internet-Draft Matroska July 2016 When a level doesn't exist it MUST NOT be specified in the files, so that the TOTAL_PARTS and PART_NUMBER elements match the same levels. Here is an example of how these "organizational" tags work: If you set 10 TOTAL_PARTS to the ALBUM level (40) it means the album contains 10 lower parts. The lower part in question is the first lower level that is specified in the file. So if it's TRACK (30) then that means it contains 10 tracks. If it's MOVEMENT (20) that means it's 10 movements, etc. 271.5. Official tags The following is a complete list of the supported Matroska Tags. While it is possible to use Tag names that are not listed below, this is not reccommended as compatability will be compromised. If you find that there is a Tag missing that you would like to use, then please contact the Matroska team for its inclusion in the specifications before the format reaches 1.0. 271.6. Notes o In the Target list, a logicial OR is applied on all tracks, a logicial OR is applied on all chapters. Then a logical AND is applied between the Tracks list and the Chapters list to know if an element belongs to this Target. With the rise of Media Centers and even programs to manage large amounts of audio files, it's becoming necessary to visualize your files easily, not just browse by names. It is also a lot nicer to browse for the user. Matroska supports attachments and they can be used for cover arts. This document defines a set of guidelines for coders and file creators to add cover arts correctly in Matroska files. These guidelines will ensure the user experience is good and consistent wherever you put your files. The pictures SHOULD only use the JPEG and PNG picture formats. There can be 2 different cover for a movie/album. A portrait one (like a DVD case) and a landscape one (like a banner ad for example, looking better on a wide screen). There can be 2 versions of the same cover, the normal one and the small one. The dimension of the normal one SHOULD be 600 on the smallest side (eg 960x600 for landscape and 600x800 for portrait, 600x600 for square). The dimension of the small one SHOULD be 120 (192x120 or 120x160). Lhomme, et al. Expires January 9, 2017 [Page 204] Internet-Draft Matroska July 2016 The way to differentiate between all these versions is by the filename. The default filename is cover.(png/jpg) for backward compatibility reasons. That is the "big" version of the file (600) in square or portrait mode. It SHOULD also be the first file in the attachments. The smaller resolution SHOULD be prefixed with "small_", ie small_cover.(jpg/png). The landscape variant SHOULD be suffixed with "_land", ie cover_land.jpg. The filenames are case sensitive and SHOULD all be lower case. o cover.jpg (portrait/square 600) o small_cover.png (portrait/square 120) o cover_land.png (landscape 600) o small_cover_land.jpg (landscape 120) There is a sample file [96] available to test player compatibility or to demonstrate the use of cover art in Matroska files.--- 272. Matroska Streaming There exist multiple ways to stream a content. The term streaming itself is very vague. It means reading a file stored on a server. But the server could be very distant or very close. The transport system and the protocol used for streaming makes the whole difference. In the case of Matroska, there are mostly 2 different kinds of stream: file access and live streaming. 273. File Access File access can simply be reading a file located on your computer, but also accessing it from an HTTP (web) server or CIFS (windows share) server. All these protocols are usually safe from reading errors and seeking in the stream is possible. On other hand when the file is stored far away or on a slow server, seeking can be an expensive operation and SHOULD be avoided. That's why we set a few guidelines [97] that, when followed, help reduce the number of seeking for regular playback and also have the playback start quickly without a lot of data needed to read first (like the Cues (index), Attachments or Meta Seek of all the Clusters). Matroska having a small overhead, it is well suited for storing music/videos on file servers without having a big impact on the bandwidth used. It doesn't require to load the index before playing Lhomme, et al. Expires January 9, 2017 [Page 205] Internet-Draft Matroska July 2016 (the index can be loaded only when seeking is requested the first time), so playback can start very quickly too. 274. Live Streaming Live streaming is the equivalent of TV broadcasting on the internet. There are 2 families of servers for that. The RTP/RTSP ones and the HTTP servers. Matroska is not meant to be used over RTP. RTP already has timing and channel mechanisms that would wasted if doubled in Matroska. On the other hand live streaming of Matroska over HTTP (or any other plain protocol based on TCP) is very possible. A live Matroska stream is different than a file, because it may have no known end (only when the client disconnects). For that the Segment MUST use the "unknown" size (all 1s in the size). The other option would be to concatenate Segments with known sizes one after the other. This solution allows a change of codec/resolution between each segment which can be useful in some cases (switch between 4:3 and 16:9 in some TV programs for example). The Segment(s) being continuous, certain elements like Meta Seek, Cues, Chapters, Attachments MUST NOT be used in this context. On the player side, it is possible to detect that a stream is not seekable. If the stream does not have a Meta Seek list or a Cues list at the beginning of the stream, it SHOULD be considered as non seekable. Even though it's still theoretically possible to seek blindly forward in the stream, if the server supports it. In the context of a live radio or even web TV it is possible to "Tag" the content that is currently playing. The Tags level 1 element can be placed between Clusters each time necessary. In that case, the new Tags found MUST reset the previously encountered tags and use the new values instead (be they empty). 275. Menu Specifications 276. Introduction This document is a _draft of the Menu system_ that will be the default one in Matroska. As it will just be composed of a Control Track, it will be seen as a "codec" and could be replaced later by something else if needed. A menu is like what you see on DVDs, when you have some screens to select the audio format, subtitles or scene selection. Lhomme, et al. Expires January 9, 2017 [Page 206] Internet-Draft Matroska July 2016 277. Requirements What we'll try to have is a system that can do almost everything done on a DVD, or more, or better, or drop the unused features if necessary. As the name suggests, a Control Track is a track that can control the playback of the file and/or all the playback features. To make it as simple as possible for players, the Control Track will just give orders to the player and get the actions associated with the highlights/hotspots. 277.1. Highlights/Hotspots A hightlight is basically a rectangle/key associated with an action UID. When that rectangle/key is activated, the player send the UID of the action to the Control Track handler (codec). The fact that it can also be a key means that even for audio only files, a keyboard shortcut or button panel could be used for menues. But in that case, the hotspot will have to be associated with a name to display. So this hightlight is sent from the Control Track to the Player. Then the player has to handle that highlight until it's disactivated (see Playback features [98]) The hightlight contains a UID of the action, a displayable name (UTF- 8), an associated key (list of keys to be defined, probably up/down/left/right/select), a screen position/range and an image to display. The image will be displayed either when the user place the mouse over the rectangle (or any other shape), or when an option of the screen is selected (not activated). There could be a second image used when the option is activated. And there could be a third image that can serve as background. This way you could have a still image (like in some DVDs) for the menu and behind that image blank video (small bitrate). When a highlight is activated by the user, the player has to send the UID of the action to the Control Track. Then the Control Track codec will handle the action and possibly give new orders to the player. The format used for storing images SHOULD be extensible. For the moment we'll use PNG and BMP, both with alpha channel. 277.2. Playback features All the following features will be sent from the Control Track to the Player : Lhomme, et al. Expires January 9, 2017 [Page 207] Internet-Draft Matroska July 2016 o Jump to chapter (UID, prev, next, number) o Disable all tracks of a kind (audio, video, subtitle) o Enable track UID (the kind doesn't matter) o Define/Disable a highlight o Enable/Disable jumping o Enable/Disable track selection of a kind o Select Edition ID (see chapters) o Pause playback o Stop playback o Enable/Disable a Chapter UID o Hide/Unhide a Chapter UID All the actions will be writen in a normal Matroska track, with a timecode. A "Menu Frame" SHOULD be able to contain more that one action/highlight for a given timecode. (to be determined, EBML format structure) 277.3. Player requirements Some players might not support the control track. That mean they will play the active/looped parts as part of the data. So I suggest putting the active/looped parts of a movie at the end of a movie. When a Menu-aware player encouter the default Control Track of a Matroska file, the first order SHOULD be to jump at the start of the active/looped part of the movie. 278. Working Graph 279. Ideas 280. Data Structure As a Matroska side project, the obvious choice for storing binary data is EBML.--- Lhomme, et al. Expires January 9, 2017 [Page 208] Internet-Draft Matroska July 2016 281. Overhead One of the way to compare containers is to analyze the overhead produced for the same raw data. The overhead is the amount of data added to these raw data, due to the internal structure of the format. This document is only giving the overhead introduced by matroska. It is intended for the matroska team to better tune the format for efficiency. And also specify where matroska is best suited. 281.1. Example 1 - low bitrate audio Low bitrate audio (like speex or vorbis) is usually using very small packets of data, all independent ones (no reference to previous or future frames). The bitrate can be as low as 8kbps (to 64kbps). For 8kbps you have 1kBps. If you cut that into 20ms parts, that makes approximately 100 bytes (to 1000 bytes) per part (packet). Low bitrate codec are usually tuned for real-time conferencing on limited bandwidth lines, so the VBR aspect is usually limited. That's why we will consider that bitrate to be constant, ie the size of packets. Lhomme, et al. Expires January 9, 2017 [Page 209] Internet-Draft Matroska July 2016 +-----+----+------+------+------+--------+--------+--------+--------+ | bit | pk | No l | 2 in | 3 in | 4 in | 5 in | 6 in | 7 in | | rat | t | acin | lace | lace | lace | lace | lace | lace | | e | si | g | | | | | | | | | ze | | | | | | | | +-----+----+------+------+------+--------+--------+--------+--------+ | 8kb | 10 | 1+1+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | ps | 0 | 4+0+ | 4+2+ | 4+3+ | 4+400 | 5+500 | 6+600 | 7+700 | | | | 100 | 200 | 300 | (2.8%) | (2.4%) | (2.2%) | (2%) | | | | (6%) | (4.5 | (3.3 | | | | | | | | | %) | %) | | | | | | 16k | 20 | 1+2+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | bps | 0 | 4+0+ | 4+2+ | 4+3+ | 4+800 | 5+1000 | 6+1200 | 7+1400 | | | | 200 | 400 | 600 | (1.4%) | (1.2%) | (1.1%) | (1%) | | | | (3.5 | (2.3 | (1.7 | | | | | | | | %) | %) | %) | | | | | | 24k | 30 | 1+2+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | bps | 0 | 4+0+ | 4+3+ | 4+5+ | 7+1200 | 9+1500 | 11+180 | 13+210 | | | | 300 | 600 | 900 | (1.2%) | (1.1%) | 0 (1%) | 0 (0.9 | | | | (2%) | (1.8 | (1.3 | | | | 5%) | | | | | %) | %) | | | | | | 32k | 40 | 1+2+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | bps | 0 | 4+0+ | 4+3+ | 4+5+ | 7+1600 | 9+2000 | 11+240 | 13+280 | | | | 400 | 800 | 1200 | (0.88% | (0.8%) | 0 (0.6 | 0 (0.7 | | | | (1.8 | (1.3 | (1%) | ) | | 7%) | 1%) | | | | %) | %) | | | | | | | 48k | 60 | 1+2+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | bps | 0 | 4+0+ | 4+4+ | 4+7+ | 10+240 | 13+300 | 16+360 | 19+420 | | | | 600 | 1200 | 1800 | 0 (0.7 | 0 (0.7 | 0 (0.6 | 0 (0.6 | | | | (1%) | (0.9 | (0.7 | 1%) | 5%) | 4%) | 2%) | | | | | 2%) | 8%) | | | | | | 64k | 80 | 1+2+ | 1+2+ | 1+2+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | 1+2+4+ | | bps | 0 | 4+0+ | 4+5+ | 4+9+ | 13+320 | 17+400 | 21+480 | 26+560 | | | | 800 | 1600 | 2400 | 0 (0.6 | 0 (0.6 | 0 (0.5 | 0 (0.5 | | | | (0.8 | (0.7 | (0.6 | 3%) | 0%) | 8%) | 9%) | | | | 8%) | 5%) | 7%) | | | | | +-----+----+------+------+------+--------+--------+--------+--------+ *explanations :* This is the overhead introduced by the Block level. There is more overhead in a matroska file, ie the Cluster head (that contains many Blocks) and the file header (containing various meta information). the first number is the number is the size of the total Block+Data, ie element ID (1), size (1 to 8), Block head (4), lacing (0 to infinite), data the second number is the pourcentage of overhead for each packet Lhomme, et al. Expires January 9, 2017 [Page 210] Internet-Draft Matroska July 2016 In matroska, synchronisation and error recovery is done with a Cluster. A cluster contains 1 to many Blocks. So let's see the effect of having 1 Block per Cluster, 2 Blocks per Cluster and 3 Blocks per Cluster. These are the worst cases where synchronisation is necessary often, ie every 20, 40 and 60ms (with 1 block only). A value of 1s is a pretty agressive case and is the minimum supported here (just to save me from a few calculus). +---------------------+ | 1 Block per Cluster | +---------------------+ | bitrate | | --- | | 8kbps | | 16kbps | | 24kbps | | 32kbps | | 48kbps | | 64kbps | +---------------------+ +----------------------+ | 2 Blocks per Cluster | +----------------------+ | bitrate | | --- | | 8kbps | | 16kbps | | 24kbps | | 32kbps | | 48kbps | | 64kbps | +----------------------+ +----------------------+ | 3 Blocks per Cluster | +----------------------+ | bitrate | | --- | | 8kbps | | 16kbps | | 24kbps | | 32kbps | | 48kbps | | 64kbps | +----------------------+ Lhomme, et al. Expires January 9, 2017 [Page 211] Internet-Draft Matroska July 2016 *explanations :* the third number is the max time between 2 error recoveries (re-sync) in milliseconds. This is based on the example of all frames have a 20ms granularity. 281.1.1. Conclusions o For the same error-recovery (1.2s, 2.4s) we clearly see that it's better to put as much data in one Block and use lacing. In this case there will be 1 Block per Cluster. One of the drawback is that only the first packet of data has a timecode (one timecode every second). o If we agree that 2% overhead is OK for low bitrates (the same as for MP3), the minimum bitrate acceptable is between 8kbps and 16kbps (probably closer to 16 kbps). Actually this value depend on the block size and not really the bitrate. o For bitrates higher than 48kbps (or a fixed packet rate of 600 bytes) the overhead is very good even with one frame per packet. 281.2. Example 2 - medium bitrate audio 281.3. Example 3 - high bitrate audio 281.4. Example 4 - low bitrate video Low bitrate video is, like low bitrate audio, the worst case for overhead. The range we will use here is 64 kbps to 256kbps. I think these are reasonable values for what can be considered as low video bitrate. One of the major difference in video is that the number of frame per second is fixed (10 to 30 for low bitrates). Another difference is that the frames usually depend on others to save some compression bits. One of the effect is that all frames don't have the same size. You have key frames (I) that don't depend on other frames, (P) frames that depend on an older frame and (B) frames that rely on an older and a future frame. It is mandatory that all I frames have an actual timecode coming from the container, because the P and B frames will rely on that timecode for reference. Lhomme, et al. Expires January 9, 2017 [Page 212] Internet-Draft Matroska July 2016 281.4.1. First example - all I frames (CBR) With all I frames, the average data is easy to compute. For 64kbps=8kBps we have a frame=1/20s. That means each frame is 400 bytes big. So the results are similar to 32kbps audio. Lacing SHOULD NOT be used for better seeking in the file. But it is still possible for use in this particular case. +-----------------------------------+ | 1 I frame/Block per Cluster (5ms) | +-----------------------------------+ | bitrate | | --- | | 64kbps | | 128kbps | | 256kbps | +-----------------------------------+ +------------------------------------+ | 2 I frame/Block per Cluster (10ms) | +------------------------------------+ | bitrate | | --- | | 64kbps | | 128kbps | | 256kbps | +------------------------------------+ +------------------------------------+ | 4 I frame/Block per Cluster (20ms) | +------------------------------------+ | bitrate | | --- | | 64kbps | | 128kbps | | 256kbps | +------------------------------------+ +------------------------------------+ | 8 I frame/Block per Cluster (40ms) | +------------------------------------+ | bitrate | | --- | | 64kbps | | 128kbps | | 256kbps | +------------------------------------+ Lhomme, et al. Expires January 9, 2017 [Page 213] Internet-Draft Matroska July 2016 We clearly see that there is another more interresting table (lacing use is dropped) : +----+---+--------+---------+---------+---------+---------+---------+ | bi | p | 1 Bloc | 2 Block | 4 Block | 8 Block | 16 Bloc | 20 Bloc | | tr | k | k/C | s/C | s/C | s/C | ks/C | ks/C | | at | t | (50ms) | (100ms) | (200ms) | (400ms) | (800ms) | (1s) | | e | s | | | | | | | | | i | | | | | | | | | z | | | | | | | | | e | | | | | | | +----+---+--------+---------+---------+---------+---------+---------+ | 64 | 4 | 4+2+1* | 4+2+2*( | 4+2+4*( | 4+2+8*( | 4+2+16* | 4+2+20* | | kb | 0 | (1+2+4 | 1+2+4+4 | 1+2+4+4 | 1+2+4+4 | (1+2+4+ | (1+2+4+ | | ps | 0 | +400) | 00) | 00) | 00) | 400) | 400) | | | | (3.3%) | (2.5%) | (2.1%) | (1.9%) | (1.8%) | (1.8%) | | 12 | 8 | 4+2+1* | 4+2+2*( | 4+2+4*( | 4+2+8*( | 4+2+16* | 4+2+20* | | 8k | 0 | (1+2+4 | 1+2+4+8 | 1+2+4+8 | 1+2+4+8 | (1+2+4+ | (1+2+4+ | | bp | 0 | +800) | 00) | 00) | 00) | 800) | 800) | | s | | (1.63% | (1.3%) | (1.06%) | (0.97%) | (0.92%) | (0.91%) | | | | ) | | | | | | | 25 | 1 | 4+2+1* | 4+2+2*( | 4+2+4*( | 4+2+8*( | 4+2+16* | 4+2+20* | | 6k | 2 | (1+2+4 | 1+2+4+1 | 1+2+4+1 | 1+2+4+1 | (1+2+4+ | (1+2+4+ | | bp | 0 | +1200) | 200) | 200) | 200) | 1200) | 1200) | | s | 0 | (1.08% | (0.83%) | (1.06%) | (0.65%) | (0.61%) | (0.61%) | | | | ) | | | | | | +----+---+--------+---------+---------+---------+---------+---------+ *Conslusions :* o In most cases, the best result is when 8 Blocks are packed in a Cluster. Bigger values don't improve the overhead much. It also seems to be a good value to stop using lacing in the low audio bitrate example. *So both lacing and clustering will be limited to 8 elements in libmatroska* on writing. o In an agressive case like a 64kbps CBR video codec at 20 frames/ sec can still achieve an overhead of less than 2% which is quite good. o Upper 128kbps an overhead of less than 1% can always be achieved. o Having 2 frames in a lace can improve substantially the overhead. But as I frames SHOULD always have a proper timecode, it is not possible to use this solution. Lhomme, et al. Expires January 9, 2017 [Page 214] Internet-Draft Matroska July 2016 281.4.2. Second example - 1 I frame for 1 B frame In this case, each frame has to be separated in a Block (no lacing possible). The reference timecode in matroska (of the previous frame) is written in a separate element ([BlockAddition][TimecodeReference]). So more overhead is introduced. We will establish that the P frame is 3x smaller than the I frame (I hope this is a realistic case). That means that, at 20 frames per second, for 64 kbps the I frame is 600 bytes and the B frame is 200 bytes (2 frames are 2*400 bytes big). +----+----+---------+-----------+-----------+-----------+-----------+ | bi | pk | 2 Block | 4 | 8 | 16 | 20 | | tr | t | s/C | Blocks/C | Blocks/C | Blocks/C | Blocks/C | | at | si | (100ms) | (200ms) | (400ms) | (800ms) | (1s) | | e | ze | | | | | | +----+----+---------+-----------+-----------+-----------+-----------+ | 64 | 60 | 4+2+(1+ | 4+2+2*((1 | 4+2+4*((1 | 4+2+8*((1 | 4+2+10*(( | | kb | 0/ | 2+4+600 | +2+4+600) | +2+4+600) | +2+4+600) | 1+2+4+600 | | ps | 20 | )+(1+2+ | +(1+2+4+2 | +(1+2+4+2 | +(1+2+4+2 | )+(1+2+4+ | | | 0 | 4+200+1 | 00+1+1+2) | 00+1+1+2) | 00+1+1+2) | 200+1+1+2 | | | | +1+2) | ) (2.6%) | ) (2.4%) | ) (2.3%) | )) (2.3%) | | | | (3%) | | | | | | 12 | 12 | 4+2+(1+ | 4+2+2*((1 | 4+2+4*((1 | 4+2+8*((1 | 4+2+10*(( | | 8k | 00 | 2+4+120 | +2+4+1200 | +2+4+1200 | +2+4+1200 | 1+2+4+120 | | bp | /4 | 0)+(1+2 | )+(1+2+4+ | )+(1+2+4+ | )+(1+2+4+ | 0)+(1+2+4 | | s | 00 | +4+400+ | 400+1+1+2 | 400+1+1+2 | 400+1+1+2 | +400+1+1+ | | | | 1+1+2) | )) (1.3%) | )) (1.2%) | )) (1.1%) | 2)) | | | | (1.5%) | | | | (1.1%) | | 25 | 18 | 4+2+(1+ | 4+2+2*((1 | 4+2+4*((1 | 4+2+8*((1 | 4+2+10*(( | | 6k | 00 | 2+4+180 | +2+4+1800 | +2+4+1800 | +2+4+1800 | 1+2+4+180 | | bp | /6 | 0)+(1+2 | )+(1+2+4+ | )+(1+2+4+ | )+(1+2+4+ | 0)+(1+2+4 | | s | 00 | +4+600+ | 600+1+1+2 | 600+1+1+2 | 600+1+1+2 | +600+1+1+ | | | | 1+1+2) | )) | )) | )) | 2)) | | | | (1.01%) | (0.88%) | (0.81%) | (0.78%) | (0.78%) | +----+----+---------+-----------+-----------+-----------+-----------+ *Conclusions :* o As for the previous case, 8 Blocks per Cluster seem to be the optimum value. o The use of B frame degrades the overhead by approximately 0.5%. It is due to the additional backward reference. Lhomme, et al. Expires January 9, 2017 [Page 215] Internet-Draft Matroska July 2016 o A bitrate of over 128 kbps still have a good overhead. But the 2.4% for 64kbps is still acceptable. 281.5. Example 5 - medium bitrate video 281.6. Example 6 - high bitrate video 281.7. Example 7 - low bitrate video + low bitrate audio 281.8. Example 8 - medium bitrate video + medium bitrate audio 281.9. Example 9 - high bitrate video + high bitrate audio 282. References 282.1. URIs [1] http://mukoli.free.fr/mcf/mcf.html [2] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown [3] https://datatracker.ietf.org/wg/cellar/charter/ [4] https://matroska.org/files/matroska.pdf [5] {{site.baseurl}}/diagram.html [6] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown [7] https://github.com/Matroska-Org/foundation- source/blob/master/spectool/specdata.xml [8] https://tools.ietf.org/html/rfc2119 [9] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown [10] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown#ebml-element-types [11] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown#ebml-schema [12] https://github.com/Matroska-Org/ebml-specification/blob/master/ specification.markdown#structure Lhomme, et al. Expires January 9, 2017 [Page 216] Internet-Draft Matroska July 2016 [13] http://www.loc.gov/standards/iso639-2/php/English_list.php [14] http://www.iana.org/cctld/cctld-whois.htm [15] {{site.baseurl}}/index.html#block [16] http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-decl [17] https://www.w3.org/TR/xmlschema-0/#ref6 [18] https://www.w3.org/TR/xmlschema-0/#ref6 [19] http://www.webmproject.org/docs/container/ [20] http://www.matroska.org/downloads/test_w1.html [21] {{site.baseurl}}/index.html#Cluster [22] {{site.baseurl}}/index.html#Timecode [23] {{site.baseurl}}/notes.html#TimecodeScale [24] {{site.baseurl}}/index.html#Cluster [25] {{site.baseurl}}/index.html#Timecode [26] {{site.baseurl}}/notes.html#Encryption [27] {{site.baseurl}}/notes.html#unknown-elements [28] {{site.baseurl}}/index.html#Cluster [29] {{site.baseurl}}/index.html#Timecode [30] {{site.baseurl}}/index.html#TimecodeScale [31] {{site.baseurl}}/index.html#Cluster [32] {{site.baseurl}}/index.html#Timecode [33] {{site.baseurl}}/index.html#Cluster [34] {{site.baseurl}}/index.html#Timecode [35] {{site.baseurl}}/index.html#TrackTimeCodeScale [36] {{site.baseurl}}/notes.html#raw-timecode Lhomme, et al. Expires January 9, 2017 [Page 217] Internet-Draft Matroska July 2016 [37] {{site.baseurl}}/notes.html#timecode-types [38] {{site.baseurl}}/notes.html#matroska-version-indicators- doctypeversion-and-doctypereadversion [39] {{site.baseurl}}/index.html#StereoMode [40] {{site.baseurl}}/index.html#TrackOperation [41] {{site.baseurl}}/index.html#TrackCombinePlanes [42] {{site.baseurl}}/notes.html#track-operation [43] {{site.baseurl}}/index.html#TrackOperation [44] {{site.baseurl}}/index.html#Void [45] {{site.baseurl}}/order_guidelines.html#tags-end [46] http://haali.su/mkv/codecs.pdf [47] {{site.baseurl}}/index.html [48] {{site.baseurl}}/index.html#CodecID [49] http://www.corecodec.com/ modules.php?op=modload&name=PNphpBB2&file=viewtopic&t=227 [50] http://msdn.microsoft.com/library/default.asp?url=/library/en- us/gdi/bitmaps_1rw2.asp [51] http://forum.doom9.org/showthread.php?s=&threadid=55773&perpage= 20&pagenumber=2#post331855 [52] https://github.com/mbunkus/mkvtoolnix/blob/master/lib/librmff/ librmff.h [53] http://developer.apple.com/documentation/quicktime/QTFF/qtff.pdf [54] {{site.baseurl}}/index.html#lacing [55] http://www.theora.org/doc/Theora_I_spec.pdf [56] http://wiki.multimedia.cx/ index.php?title=Apple_ProRes#Frame_layout [57] http://alac.macosforge.org/trac/browser/trunk/ ALACMagicCookieDescription.txt Lhomme, et al. Expires January 9, 2017 [Page 218] Internet-Draft Matroska July 2016 [58] {{site.baseurl}}/index.html#lacing [59] http://www.xiph.org/ogg/vorbis/doc/vorbis-spec-ref.html [60] http://www.xiph.org/ogg/vorbis/doc/v-comment.html [61] http://www.xiph.org/ogg/vorbis/doc/vorbis-spec-ref.html [62] http://flac.sourceforge.net/ [63] https://github.com/mbunkus/mkvtoolnix/blob/master/lib/librmff/ librmff.h [64] http://msdn.microsoft.com/library/default.asp?url=/library/en- us/multimed/mmstr_625u.asp [65] http://developer.apple.com/documentation/quicktime/QTFF/qtff.pdf [66] http://tausoft.org/ [67] http://tausoft.org/wiki/True_Audio_Codec_Format [68] http://www.wavpack.com/ [69] wavpack.html [70] {{site.baseurl}}/subtitles.html [71] ../subtitles/ssa.html [72] {{site.baseurl}}/subtitles.html [73] {{site.baseurl}}/subtitles.html [74] {{site.baseurl}}/subtitles.html [75] http://wiki.xiph.org/index.php/OggKate#Matroska_mapping [76] http://dvd.sourceforge.net/dvdinfo/pci_pkt.html [77] http://dvd.sourceforge.net/dvdinfo/pci_pkt.html [78] {{site.baseurl}}/index.html#ChapProcessCodecID [79] {{site.baseurl}}/index.html#ChapProcessCodecID [80] {{site.baseurl}}/index.html#ChapterTranslateID Lhomme, et al. Expires January 9, 2017 [Page 219] Internet-Draft Matroska July 2016 [81] http://dvd.sourceforge.net/dvdinfo/uops.html [82] http://www.dvd-replica.com/DVD/ [83] http://dvd.sourceforge.net/dvdinfo/ [84] http://wiki.multimedia.cx/index.php?title=SubStation_Alpha [85] http://moodub.free.fr/video/ass-specs.doc [87] mailto:kotus@eswat.demon.co.uk [89] mailto:kotus@eswat.demon.co.uk [90] https://www.w3.org/ [91] https://w3c.github.io/webvtt/ [92] http://www.webmproject.org/docs/container/ [93] http://www.matroska.org/files/tags/matroskatags.dtd [94] http://www.bunkus.org/videotools/mkvtoolnix/doc/ mkvmerge.html#mkvmerge.tags [95] othertagsystems/comparetable.html [96] https://sourceforge.net/projects/matroska/files/test_files/ cover_art.mkv/download [97] {{site.baseurl}}/index.html [98] {{site.baseurl}}/chapters/menu.html#playback-features Authors' Addresses Steve Lhomme Moritz Bunkus Dave Rice Lhomme, et al. Expires January 9, 2017 [Page 220]