2 * Copyright (C) 2003-2006 Gabest
3 * http://www.gabest.org
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GNU Make; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
20 * Note: This interface was defined for the matroska container format
21 * originally, but can be implemented for other formats as well.
29 // 30323449-0000-0010-8000-00AA00389B71 'I420' == MEDIASUBTYPE_I420
30 DEFINE_GUID(MEDIASUBTYPE_I420
,
31 0x30323449, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
33 #define WAVE_FORMAT_DOLBY_AC3 0x2000
34 // {00002000-0000-0010-8000-00aa00389b71}
35 DEFINE_GUID(MEDIASUBTYPE_WAVE_DOLBY_AC3
,
36 WAVE_FORMAT_DOLBY_AC3
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
38 #define WAVE_FORMAT_DVD_DTS 0x2001
39 // {00002001-0000-0010-8000-00aa00389b71}
40 DEFINE_GUID(MEDIASUBTYPE_WAVE_DTS
,
41 WAVE_FORMAT_DVD_DTS
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
43 // Be compatible with 3ivx
44 #define WAVE_FORMAT_AAC 0x00FF
45 // {000000FF-0000-0010-8000-00AA00389B71}
46 DEFINE_GUID(MEDIASUBTYPE_AAC
,
47 WAVE_FORMAT_AAC
, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
49 // ... and also compatible with nero
50 // btw, older nero parsers use a lower-case fourcc, newer upper-case (why can't it just offer both?)
51 // {4134504D-0000-0010-8000-00AA00389B71}
52 DEFINE_GUID(MEDIASUBTYPE_MP4A
,
53 0x4134504D, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
55 // {6134706D-0000-0010-8000-00AA00389B71}
56 DEFINE_GUID(MEDIASUBTYPE_mp4a
,
57 0x6134706D, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
59 #define WAVE_FORMAT_MP3 0x0055
60 // 00000055-0000-0010-8000-00AA00389B71
61 DEFINE_GUID(MEDIASUBTYPE_MP3
,
62 WAVE_FORMAT_MP3
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
64 #define WAVE_FORMAT_FLAC 0xF1AC
65 // 0000F1AC-0000-0010-8000-00AA00389B71
66 DEFINE_GUID(MEDIASUBTYPE_FLAC
,
67 WAVE_FORMAT_FLAC
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
69 // {1541C5C0-CDDF-477d-BC0A-86F8AE7F8354}
70 DEFINE_GUID(MEDIASUBTYPE_FLAC_FRAMED
,
71 0x1541c5c0, 0xcddf, 0x477d, 0xbc, 0xa, 0x86, 0xf8, 0xae, 0x7f, 0x83, 0x54);
73 #define WAVE_FORMAT_TTA1 0x77A1
74 // {000077A1-0000-0010-8000-00AA00389B71}
75 DEFINE_GUID(MEDIASUBTYPE_TTA1
,
76 WAVE_FORMAT_TTA1
, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
78 #define WAVE_FORMAT_WAVPACK4 0x5756
79 // {00005756-0000-0010-8000-00AA00389B71}
80 DEFINE_GUID(MEDIASUBTYPE_WAVPACK4
,
81 WAVE_FORMAT_WAVPACK4
, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
83 // {DA5B82EE-6BD2-426f-BF1E-30112DA78AE1}
84 DEFINE_GUID(MEDIASUBTYPE_SVCD_SUBPICTURE
,
85 0xda5b82ee, 0x6bd2, 0x426f, 0xbf, 0x1e, 0x30, 0x11, 0x2d, 0xa7, 0x8a, 0xe1);
87 // {7B57308F-5154-4c36-B903-52FE76E184FC}
88 DEFINE_GUID(MEDIASUBTYPE_CVD_SUBPICTURE
,
89 0x7b57308f, 0x5154, 0x4c36, 0xb9, 0x3, 0x52, 0xfe, 0x76, 0xe1, 0x84, 0xfc);
91 // {0E3A2342-F6E2-4c91-BDAE-87C71EAD0D63}
92 DEFINE_GUID(MEDIASUBTYPE_MPEG2_PVA
,
93 0xe3a2342, 0xf6e2, 0x4c91, 0xbd, 0xae, 0x87, 0xc7, 0x1e, 0xad, 0xd, 0x63);
95 // {6B6D0800-9ADA-11d0-A520-00A0D10129C0}
96 DEFINE_GUID(CLSID_NetShowSource
,
97 0x6b6d0800, 0x9ada, 0x11d0, 0xa5, 0x20, 0x0, 0xa0, 0xd1, 0x1, 0x29, 0xc0);
101 // {5E9C9EE0-2E4A-4f22-9906-7BBBB75AA2B6}
102 DEFINE_GUID(MEDIASUBTYPE_DirectShowMedia
,
103 0x5e9c9ee0, 0x2e4a, 0x4f22, 0x99, 0x6, 0x7b, 0xbb, 0xb7, 0x5a, 0xa2, 0xb6);
107 // {A29DA00F-A22B-40ea-98DE-2F7FECADA5DE}
108 DEFINE_GUID(MEDIASUBTYPE_Dirac
,
109 0xa29da00f, 0xa22b, 0x40ea, 0x98, 0xde, 0x2f, 0x7f, 0xec, 0xad, 0xa5, 0xde);
111 // {64726376-0000-0010-8000-00AA00389B71}
112 DEFINE_GUID(MEDIASUBTYPE_DiracVideo
,
113 0x64726376, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
115 // {D2667A7E-4055-4244-A65F-DDDDF2B74BD7}
116 DEFINE_GUID(FORMAT_DiracVideoInfo
,
117 0xd2667a7e, 0x4055, 0x4244, 0xa6, 0x5f, 0xdd, 0xdd, 0xf2, 0xb7, 0x4b, 0xd7);
119 struct DIRACINFOHEADER
121 VIDEOINFOHEADER2 hdr
;
122 DWORD cbSequenceHeader
;
123 DWORD dwSequenceHeader
[1];
128 // {08E22ADA-B715-45ed-9D20-7B87750301D4}
129 DEFINE_GUID(MEDIASUBTYPE_MP4
,
130 0x8e22ada, 0xb715, 0x45ed, 0x9d, 0x20, 0x7b, 0x87, 0x75, 0x3, 0x1, 0xd4);
134 // {F2FAC0F1-3852-4670-AAC0-9051D400AC54}
135 DEFINE_GUID(MEDIASUBTYPE_FLV
,
136 0xf2fac0f1, 0x3852, 0x4670, 0xaa, 0xc0, 0x90, 0x51, 0xd4, 0x0, 0xac, 0x54);
138 // 34564c46-0000-0010-8000-00AA00389B71
139 DEFINE_GUID(MEDIASUBTYPE_FLV4
,
140 0x34564c46, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
142 // 30365056-0000-0010-8000-00AA00389B71
143 DEFINE_GUID(MEDIASUBTYPE_VP60
,
144 0x30365056, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
146 // 31365056-0000-0010-8000-00AA00389B71
147 DEFINE_GUID(MEDIASUBTYPE_VP61
,
148 0x31365056, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
150 // 32365056-0000-0010-8000-00AA00389B71
151 DEFINE_GUID(MEDIASUBTYPE_VP62
,
152 0x32365056, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
158 // {57428EC6-C2B2-44a2-AA9C-28F0B6A5C48E}
159 DEFINE_GUID(MEDIASUBTYPE_RealMedia
,
160 0x57428ec6, 0xc2b2, 0x44a2, 0xaa, 0x9c, 0x28, 0xf0, 0xb6, 0xa5, 0xc4, 0x8e);
162 // 30315652-0000-0010-8000-00AA00389B71
163 DEFINE_GUID(MEDIASUBTYPE_RV10
,
164 0x30315652, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
166 // 30325652-0000-0010-8000-00AA00389B71
167 DEFINE_GUID(MEDIASUBTYPE_RV20
,
168 0x30325652, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
170 // 30335652-0000-0010-8000-00AA00389B71
171 DEFINE_GUID(MEDIASUBTYPE_RV30
,
172 0x30335652, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
174 // 30345652-0000-0010-8000-00AA00389B71
175 DEFINE_GUID(MEDIASUBTYPE_RV40
,
176 0x30345652, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
178 // 31345652-0000-0010-8000-00AA00389B71
179 DEFINE_GUID(MEDIASUBTYPE_RV41
,
180 0x31345652, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
182 // 345f3431-0000-0010-8000-00AA00389B71
183 DEFINE_GUID(MEDIASUBTYPE_14_4
,
184 0x345f3431, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
186 // 385f3832-0000-0010-8000-00AA00389B71
187 DEFINE_GUID(MEDIASUBTYPE_28_8
,
188 0x385f3832, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
190 // 43525441-0000-0010-8000-00AA00389B71
191 DEFINE_GUID(MEDIASUBTYPE_ATRC
,
192 0x43525441, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
194 // 4b4f4f43-0000-0010-8000-00AA00389B71
195 DEFINE_GUID(MEDIASUBTYPE_COOK
,
196 0x4b4f4f43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
198 // 54454e44-0000-0010-8000-00AA00389B71
199 DEFINE_GUID(MEDIASUBTYPE_DNET
,
200 0x54454e44, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
202 // 52504953-0000-0010-8000-00AA00389B71
203 DEFINE_GUID(MEDIASUBTYPE_SIPR
,
204 0x52504953, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
206 // 43414152-0000-0010-8000-00AA00389B71
207 DEFINE_GUID(MEDIASUBTYPE_RAAC
,
208 0x43414152, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
210 // 50434152-0000-0010-8000-00AA00389B71
211 DEFINE_GUID(MEDIASUBTYPE_RACP
,
212 0x50434152, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
216 WAVE_FORMAT_14_4
= 0x2002,
217 WAVE_FORMAT_28_8
= 0x2003,
218 WAVE_FORMAT_ATRC
= 0x0270, //WAVE_FORMAT_SONY_SCX,
219 WAVE_FORMAT_COOK
= 0x2004,
220 WAVE_FORMAT_DNET
= 0x2005,
221 WAVE_FORMAT_RAAC
= 0x2006,
222 WAVE_FORMAT_RACP
= 0x2007,
223 WAVE_FORMAT_SIPR
= 0x0130, //WAVE_FORMAT_SIPROLAB_ACEPLNET,
230 #define WAVE_FORMAT_PS2_PCM 0xF521
231 // 0000F521-0000-0010-8000-00AA00389B71
232 DEFINE_GUID(MEDIASUBTYPE_PS2_PCM
,
233 WAVE_FORMAT_PS2_PCM
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
235 #define WAVE_FORMAT_PS2_ADPCM 0xF522
236 // 0000F522-0000-0010-8000-00AA00389B71
237 DEFINE_GUID(MEDIASUBTYPE_PS2_ADPCM
,
238 WAVE_FORMAT_PS2_ADPCM
, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
240 struct WAVEFORMATEXPS2
: public WAVEFORMATEX
244 struct WAVEFORMATEXPS2()
246 memset(this, 0, sizeof(*this));
247 cbSize
= sizeof(WAVEFORMATEXPS2
) - sizeof(WAVEFORMATEX
);
251 // {4F3D3D21-6D7C-4f73-AA05-E397B5EAE0AA}
252 DEFINE_GUID(MEDIASUBTYPE_PS2_SUB
,
253 0x4f3d3d21, 0x6d7c, 0x4f73, 0xaa, 0x5, 0xe3, 0x97, 0xb5, 0xea, 0xe0, 0xaa);
255 // Haali's video renderer
257 // {760A8F35-97E7-479d-AAF5-DA9EFF95D751}
258 DEFINE_GUID(CLSID_DXR
,
259 0x760a8f35, 0x97e7, 0x479d, 0xaa, 0xf5, 0xda, 0x9e, 0xff, 0x95, 0xd7, 0x51);
265 // f07e245f-5a1f-4d1e-8bff-dc31d84a55ab
266 DEFINE_GUID(CLSID_OggSplitter
,
267 0xf07e245f, 0x5a1f, 0x4d1e, 0x8b, 0xff, 0xdc, 0x31, 0xd8, 0x4a, 0x55, 0xab);
269 // {078C3DAA-9E58-4d42-9E1C-7C8EE79539C5}
270 DEFINE_GUID(CLSID_OggSplitPropPage
,
271 0x78c3daa, 0x9e58, 0x4d42, 0x9e, 0x1c, 0x7c, 0x8e, 0xe7, 0x95, 0x39, 0xc5);
273 // 8cae96b7-85b1-4605-b23c-17ff5262b296
274 DEFINE_GUID(CLSID_OggMux
,
275 0x8cae96b7, 0x85b1, 0x4605, 0xb2, 0x3c, 0x17, 0xff, 0x52, 0x62, 0xb2, 0x96);
277 // {AB97AFC3-D08E-4e2d-98E0-AEE6D4634BA4}
278 DEFINE_GUID(CLSID_OggMuxPropPage
,
279 0xab97afc3, 0xd08e, 0x4e2d, 0x98, 0xe0, 0xae, 0xe6, 0xd4, 0x63, 0x4b, 0xa4);
281 // {889EF574-0656-4B52-9091-072E52BB1B80}
282 DEFINE_GUID(CLSID_VorbisEnc
,
283 0x889ef574, 0x0656, 0x4b52, 0x90, 0x91, 0x07, 0x2e, 0x52, 0xbb, 0x1b, 0x80);
285 // {c5379125-fd36-4277-a7cd-fab469ef3a2f}
286 DEFINE_GUID(CLSID_VorbisEncPropPage
,
287 0xc5379125, 0xfd36, 0x4277, 0xa7, 0xcd, 0xfa, 0xb4, 0x69, 0xef, 0x3a, 0x2f);
289 // 02391f44-2767-4e6a-a484-9b47b506f3a4
290 DEFINE_GUID(CLSID_VorbisDec
,
291 0x02391f44, 0x2767, 0x4e6a, 0xa4, 0x84, 0x9b, 0x47, 0xb5, 0x06, 0xf3, 0xa4);
293 // 77983549-ffda-4a88-b48f-b924e8d1f01c
294 DEFINE_GUID(CLSID_OggDSAboutPage
,
295 0x77983549, 0xffda, 0x4a88, 0xb4, 0x8f, 0xb9, 0x24, 0xe8, 0xd1, 0xf0, 0x1c);
297 // {D2855FA9-61A7-4db0-B979-71F297C17A04}
298 DEFINE_GUID(MEDIASUBTYPE_Ogg
,
299 0xd2855fa9, 0x61a7, 0x4db0, 0xb9, 0x79, 0x71, 0xf2, 0x97, 0xc1, 0x7a, 0x4);
301 // cddca2d5-6d75-4f98-840e-737bedd5c63b
302 DEFINE_GUID(MEDIASUBTYPE_Vorbis
,
303 0xcddca2d5, 0x6d75, 0x4f98, 0x84, 0x0e, 0x73, 0x7b, 0xed, 0xd5, 0xc6, 0x3b);
305 // 6bddfa7e-9f22-46a9-ab5e-884eff294d9f
306 DEFINE_GUID(FORMAT_VorbisFormat
,
307 0x6bddfa7e, 0x9f22, 0x46a9, 0xab, 0x5e, 0x88, 0x4e, 0xff, 0x29, 0x4d, 0x9f);
309 typedef struct tagVORBISFORMAT
312 DWORD nSamplesPerSec
;
313 DWORD nMinBitsPerSec
;
314 DWORD nAvgBitsPerSec
;
315 DWORD nMaxBitsPerSec
;
317 } VORBISFORMAT
, *PVORBISFORMAT
, FAR
*LPVORBISFORMAT
;
319 // {8D2FD10B-5841-4a6b-8905-588FEC1ADED9}
320 DEFINE_GUID(MEDIASUBTYPE_Vorbis2
,
321 0x8d2fd10b, 0x5841, 0x4a6b, 0x89, 0x5, 0x58, 0x8f, 0xec, 0x1a, 0xde, 0xd9);
323 // {B36E107F-A938-4387-93C7-55E966757473}
324 DEFINE_GUID(FORMAT_VorbisFormat2
,
325 0xb36e107f, 0xa938, 0x4387, 0x93, 0xc7, 0x55, 0xe9, 0x66, 0x75, 0x74, 0x73);
327 typedef struct tagVORBISFORMAT2
332 DWORD HeaderSize
[3]; // 0: Identification, 1: Comment, 2: Setup
333 } VORBISFORMAT2
, *PVORBISFORMAT2
, FAR
*LPVORBISFORMAT2
;
339 // {1AC0BEBD-4D2B-45ad-BCEB-F2C41C5E3788}
340 DEFINE_GUID(MEDIASUBTYPE_Matroska
,
341 0x1ac0bebd, 0x4d2b, 0x45ad, 0xbc, 0xeb, 0xf2, 0xc4, 0x1c, 0x5e, 0x37, 0x88);
343 // {E487EB08-6B26-4be9-9DD3-993434D313FD}
344 DEFINE_GUID(MEDIATYPE_Subtitle
,
345 0xe487eb08, 0x6b26, 0x4be9, 0x9d, 0xd3, 0x99, 0x34, 0x34, 0xd3, 0x13, 0xfd);
347 // {87C0B230-03A8-4fdf-8010-B27A5848200D}
348 DEFINE_GUID(MEDIASUBTYPE_UTF8
,
349 0x87c0b230, 0x3a8, 0x4fdf, 0x80, 0x10, 0xb2, 0x7a, 0x58, 0x48, 0x20, 0xd);
351 // {3020560F-255A-4ddc-806E-6C5CC6DCD70A}
352 DEFINE_GUID(MEDIASUBTYPE_SSA
,
353 0x3020560f, 0x255a, 0x4ddc, 0x80, 0x6e, 0x6c, 0x5c, 0xc6, 0xdc, 0xd7, 0xa);
355 // {326444F7-686F-47ff-A4B2-C8C96307B4C2}
356 DEFINE_GUID(MEDIASUBTYPE_ASS
,
357 0x326444f7, 0x686f, 0x47ff, 0xa4, 0xb2, 0xc8, 0xc9, 0x63, 0x7, 0xb4, 0xc2);
359 // {370689E7-B226-4f67-978D-F10BC1A9C6AE}
360 DEFINE_GUID(MEDIASUBTYPE_ASS2
,
361 0x370689e7, 0xb226, 0x4f67, 0x97, 0x8d, 0xf1, 0xb, 0xc1, 0xa9, 0xc6, 0xae);
363 // {76C421C4-DB89-42ec-936E-A9FBC1794714}
364 DEFINE_GUID(MEDIASUBTYPE_SSF
,
365 0x76c421c4, 0xdb89, 0x42ec, 0x93, 0x6e, 0xa9, 0xfb, 0xc1, 0x79, 0x47, 0x14);
367 // {B753B29A-0A96-45be-985F-68351D9CAB90}
368 DEFINE_GUID(MEDIASUBTYPE_USF
,
369 0xb753b29a, 0xa96, 0x45be, 0x98, 0x5f, 0x68, 0x35, 0x1d, 0x9c, 0xab, 0x90);
371 // {F7239E31-9599-4e43-8DD5-FBAF75CF37F1}
372 DEFINE_GUID(MEDIASUBTYPE_VOBSUB
,
373 0xf7239e31, 0x9599, 0x4e43, 0x8d, 0xd5, 0xfb, 0xaf, 0x75, 0xcf, 0x37, 0xf1);
375 // {A33D2F7D-96BC-4337-B23B-A8B9FBC295E9}
376 DEFINE_GUID(FORMAT_SubtitleInfo
,
377 0xa33d2f7d, 0x96bc, 0x4337, 0xb2, 0x3b, 0xa8, 0xb9, 0xfb, 0xc2, 0x95, 0xe9);
379 #pragma pack(push, 1)
382 CHAR IsoLang
[4]; // three letter lang code + terminating zero
383 WCHAR TrackName
[256]; // 256 chars ought to be enough for everyone :)
387 // SUBTITLEINFO structure content starting at dwOffset (also the content of CodecPrivate)
388 // --------------------------------------------------------------------------------------
390 // Here the text should start with the Byte Order Mark, even though
391 // UTF-8 is prefered, it also helps identifying the encoding type.
395 // <?xml version="1.0" encoding="UTF-8"?>
396 // <!-- DOCTYPE USFSubtitles SYSTEM "USFV100.dtd" -->
397 // <?xml-stylesheet type="text/xsl" href="USFV100.xsl"?>
399 // <USFSubtitles version="1.0">
400 // ... every element excluding <subtitles></subtitles> ...
403 // MEDIASUBTYPE_SSA/ASS:
405 // The file header and all sub-sections except [Events]
412 // Data description of the media samples (everything is UTF-8 encoded here)
413 // ------------------------------------------------------------------------
417 // The text _inside_ the <subtitle>..</subtitle> element.
419 // Since timing is set on the sample, there is no need to put
420 // <subtitle start=".." stop=".." duration=".."> into the data.
422 // MEDIASUBTYPE_SSA/ASS:
424 // Comma separated values similar to the "Dialogue: ..." line with these fields:
425 // ReadOrder, Layer, Style, Name, MarginL, MarginR, MarginV, Effect, Text
427 // With the exception of ReadOrder every field can be found in ASS files. The
428 // ReadOrder field is needed for the decoder to be able to reorder the streamed
429 // samples as they were placed originally in the file.
431 // If the source is only SSA, the Layer field can be left empty.
435 // Standard dvd subpic data, without the stream id at the beginning.
438 // Matroska CodecID mappings
439 // ------------------------
441 // S_TEXT/ASCII <-> MEDIATYPE_Text MEDIASUBTYPE_NULL FORMAT_None
442 // S_TEXT/UTF8 <-> MEDIATYPE_Subtitle MEDIASUBTYPE_UTF8 FORMAT_SubtitleInfo
443 // S_TEXT/SSA <-> MEDIATYPE_Subtitle MEDIASUBTYPE_SSA FORMAT_SubtitleInfo
444 // S_TEXT/ASS <-> MEDIATYPE_Subtitle MEDIASUBTYPE_ASS FORMAT_SubtitleInfo
445 // S_TEXT/USF <-> MEDIATYPE_Subtitle MEDIASUBTYPE_USF FORMAT_SubtitleInfo
446 // S_VOBSUB <-> MEDIATYPE_Subtitle MEDIASUBTYPE_VOBSUB FORMAT_SubtitleInfo
447 // S_VOBSUB/ZLIB<-> MEDIATYPE_Subtitle MEDIASUBTYPE_VOBSUB FORMAT_SubtitleInfo