Add 'MPEG_TS_SD_EU_ISO' profile
[gupnp:gupnp-dlna.git] / data / mpeg-ts.xml
1 <?xml version="1.0"?>
2
3 <dlna-profiles>
4   <include ref="common.xml" />
5
6   <restrictions>
7     <restriction id="MPEG_TS" type="container">
8       <field name="name" type="string">
9         <value>video/mpegts</value>
10       </field>
11       <field name="systemstream" type="boolean">
12         <value>true</value>
13       </field>
14       <field name="packetsize" type="int">
15         <value>188</value>
16       </field>
17     </restriction>
18
19     <restriction id="MPEG_TS_AUDIO" type="audio">
20       <field name="rate" type="int">
21         <value>48000</value>
22       </field>
23       <field name="channels" type="int">
24         <range min="1" max="6" />
25       </field>
26       <field name="bitrate" type="int">
27         <range min="1" max="448000" />
28       </field>
29     </restriction>
30
31     <restriction id="MPEG_TS_VIDEO" type="video">
32       <field name="name" type="string">
33         <value>video/mpeg</value>
34       </field>
35       <field name="systemstream" type="boolean">
36         <value>false</value>
37       </field>
38       <field name="mpegversion" type="int">
39         <value>2</value>
40       </field>
41       <field name="profile" type="string">
42         <value>simple</value>
43         <value>main</value>
44       </field>
45       <field name="level" type="string">
46         <value>low</value>
47         <value>main</value>
48         <value>high-1440</value>
49         <value>high</value>
50       </field>
51       <field name="bitrate" type="int">
52         <!-- Max. system bitrate is 19.3927 Mb/s. Subtracting max. audio
53              bitrate, and ignoring close caption data and other overhead -->
54         <range min="1" max="18881700" />
55       </field>
56     </restriction>
57
58     <!-- SD resolutions -->
59     <!-- NA region -->
60     <restriction id="720x480" type="video">
61       <parent name="525_D1" />
62       <field name="framerate" type="fraction">
63         <value>30000/1001</value>
64       </field>
65       <field name="pixel-aspect-ratio" type="fraction">
66         <value>32/27</value>
67         <value>8/9</value>
68       </field>
69     </restriction>
70
71     <restriction id="704x480" type="video">
72       <parent name="525_4SIF" />
73       <field name="framerate" type="fraction">
74         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
75         <value>24/1</value>
76         <value>30000/1001</value>
77         <value>30/1</value>
78         <value>60000/1001</value> <!-- Note: only valid for interlaced=false -->
79         <value>60/1</value> <!-- Note: only valid for interlaced=false -->
80       </field>
81       <field name="pixel-aspect-ratio" type="fraction">
82         <value>40/33</value>
83         <value>10/11</value>
84       </field>
85     </restriction>
86
87     <restriction id="640x480" type="video">
88       <parent name="VGA" />
89       <field name="framerate" type="fraction">
90         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
91         <value>24/1</value>
92         <value>30000/1001</value>
93         <value>30/1</value>
94         <value>60000/1001</value> <!-- Note: only valid for interlaced=false -->
95         <value>60/1</value> <!-- Note: only valid for interlaced=false -->
96       </field>
97       <field name="pixel-aspect-ratio" type="fraction">
98         <value>1/1</value>
99         <value>4/3</value>
100       </field>
101     </restriction>
102
103     <restriction id="544x480" type="video">
104       <parent name="525_3/4D1" />
105       <field name="framerate" type="fraction">
106         <value>30000/1001</value>
107       </field>
108       <field name="pixel-aspect-ratio" type="fraction">
109         <value>80/51</value>
110         <value>20/17</value>
111       </field>
112     </restriction>
113
114     <restriction id="480x480" type="video">
115       <parent name="525_2/3D1" />
116       <field name="framerate" type="fraction">
117         <value>30000/1001</value>
118       </field>
119       <field name="pixel-aspect-ratio" type="fraction">
120         <value>16/9</value>
121         <value>4/3</value>
122       </field>
123     </restriction>
124
125     <restriction id="352x480" type="video">
126       <parent name="525_1/2D1" />
127       <field name="framerate" type="fraction">
128         <value>30000/1001</value>
129       </field>
130       <field name="pixel-aspect-ratio" type="fraction">
131         <value>80/33</value>
132         <value>20/11</value>
133       </field>
134     </restriction>
135
136     <!-- EU region -->
137     <restriction id="EU_FPS" type="video">
138       <field name="framerate" type="fraction">
139         <value>25/1</value>
140       </field>
141     </restriction>
142
143     <restriction id="720x576" type="video">
144       <parent name="625_D1" />
145       <parent name="EU_FPS" />
146       <field name="pixel-aspect-ratio" type="fraction">
147         <value>64/45</value>
148         <value>16/15</value>
149       </field>
150     </restriction>
151
152     <restriction id="544x576" type="video">
153       <parent name="625_3/4D1" />
154       <parent name="EU_FPS" />
155       <field name="pixel-aspect-ratio" type="fraction">
156         <value>32/17</value>
157         <value>24/17</value>
158       </field>
159     </restriction>
160
161     <restriction id="480x576" type="video">
162       <parent name="625_3/4D1" />
163       <parent name="EU_FPS" />
164       <field name="pixel-aspect-ratio" type="fraction">
165         <value>32/15</value>
166         <value>8/5</value>
167       </field>
168     </restriction>
169
170     <restriction id="352x576" type="video">
171       <parent name="625_3/4D1" />
172       <parent name="EU_FPS" />
173       <field name="pixel-aspect-ratio" type="fraction">
174         <value>32/11</value>
175         <value>24/11</value>
176       </field>
177     </restriction>
178
179     <restriction id="352x288" type="video">
180       <parent name="625_3/4D1" />
181       <parent name="EU_FPS" />
182       <field name="pixel-aspect-ratio" type="fraction">
183         <value>16/11</value>
184         <value>12/11</value>
185       </field>
186     </restriction>
187
188     <!-- HD resolutions -->
189     <restriction id="MPEG_TS_1920x1080" type="video">
190       <parent name="1920x1080" />
191       <field name="framerate" type="fraction">
192         <value>30000/1001</value>
193         <value>30/1</value>
194         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
195         <value>24/1</value> <!-- Note: only valid for interlaced=false -->
196       </field>
197       <field name="pixel-aspect-ratio" type="fraction">
198         <value>1/1</value>
199         <value>9/16</value>
200       </field>
201     </restriction>
202
203     <restriction id="MPEG_TS_1280x720" type="video">
204       <parent name="1280x720" />
205
206       <field name="framerate" type="fraction">
207         <value>30000/1001</value>
208         <value>30/1</value>
209         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
210         <value>24/1</value> <!-- Note: only valid for interlaced=false -->
211       </field>
212       <field name="pixel-aspect-ratio" type="fraction">
213         <value>1/1</value>
214         <value>9/16</value>
215       </field>
216     </restriction>
217
218     <restriction id="1440x1080" type="video">
219       <field name="height" type="int">
220         <value>1080</value>
221       </field>
222       <field name="width" type="int">
223         <value>1440</value>
224       </field>
225       <field name="framerate" type="fraction">
226         <value>30000/1001</value>
227         <value>30/1</value>
228         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
229         <value>24/1</value> <!-- Note: only valid for interlaced=false -->
230       </field>
231       <field name="pixel-aspect-ratio" type="fraction">
232         <value>4/3</value>
233       </field>
234     </restriction>
235
236     <restriction id="1280x1080" type="video">
237       <field name="height" type="int">
238         <value>1080</value>
239       </field>
240       <field name="width" type="int">
241         <value>1280</value>
242       </field>
243       <field name="framerate" type="fraction">
244         <value>30000/1001</value>
245         <value>30/1</value>
246         <value>24000/1001</value> <!-- Note: only valid for interlaced=false -->
247         <value>24/1</value> <!-- Note: only valid for interlaced=false -->
248       </field>
249       <field name="pixel-aspect-ratio" type="fraction">
250         <value>3/2</value>
251       </field>
252     </restriction>
253   </restrictions>
254
255   <dlna-profile name="MPEG_TS_SD_NA_ISO" mime="video/mpeg">
256     <!-- Note: We have no way to restrict the system bitrate yet -->
257     <parent name="MPEG_TS" />
258
259     <restriction type="audio">
260       <parent name="MPEG_TS_AUDIO" />
261
262       <field name="name" type="string">
263         <value>audio/x-ac3</value>
264       </field>
265     </restriction>
266
267     <restriction type="audio">
268       <parent name="MPEG_TS_AUDIO" />
269
270       <field name="name" type="string">
271         <value>audio/x-private1-ac3</value>
272       </field>
273     </restriction>
274
275     <restriction type="audio">
276       <parent name="MPEG_TS_AUDIO" />
277
278       <field name="name" type="string">
279         <value>audio/ac3</value>
280       </field>
281     </restriction>
282
283     <restriction type="video">
284       <parent name="MPEG_TS_VIDEO" />
285       <parent name="720x480" />
286     </restriction>
287
288     <restriction type="video">
289       <parent name="MPEG_TS_VIDEO" />
290       <parent name="704x480" />
291     </restriction>
292
293     <restriction type="video">
294       <parent name="MPEG_TS_VIDEO" />
295       <parent name="640x480" />
296     </restriction>
297
298     <restriction type="video">
299       <parent name="MPEG_TS_VIDEO" />
300       <parent name="480x480" />
301     </restriction>
302
303     <restriction type="video">
304       <parent name="MPEG_TS_VIDEO" />
305       <parent name="544x480" />
306     </restriction>
307
308     <restriction type="video">
309       <parent name="MPEG_TS_VIDEO" />
310       <parent name="352x480" />
311     </restriction>
312   </dlna-profile>
313
314   <dlna-profile name="MPEG_TS_SD_EU_ISO" mime="video/mpeg">
315     <!-- Note: We have no way to restrict the system bitrate yet -->
316     <parent name="MPEG_TS" />
317
318     <restriction type="audio">
319       <parent name="MPEG_TS_AUDIO" />
320
321       <field name="name" type="string">
322         <value>audio/x-ac3</value>
323       </field>
324     </restriction>
325
326     <restriction type="audio">
327       <parent name="MPEG_TS_AUDIO" />
328
329       <field name="name" type="string">
330         <value>audio/x-private1-ac3</value>
331       </field>
332     </restriction>
333
334     <restriction type="audio">
335       <parent name="MPEG_TS_AUDIO" />
336
337       <field name="name" type="string">
338         <value>audio/ac3</value>
339       </field>
340     </restriction>
341
342     <restriction type="video">
343       <parent name="MPEG_TS_VIDEO" />
344       <parent name="720x576" />
345     </restriction>
346
347     <restriction type="video">
348       <parent name="MPEG_TS_VIDEO" />
349       <parent name="544x576" />
350     </restriction>
351
352     <restriction type="video">
353       <parent name="MPEG_TS_VIDEO" />
354       <parent name="480x576" />
355     </restriction>
356
357     <restriction type="video">
358       <parent name="MPEG_TS_VIDEO" />
359       <parent name="352x576" />
360     </restriction>
361
362     <restriction type="video">
363       <parent name="MPEG_TS_VIDEO" />
364       <parent name="352x288" />
365     </restriction>
366   </dlna-profile>
367
368   <dlna-profile name="MPEG_TS_HD_NA_ISO" mime="video/mpeg">
369     <parent name="MPEG_TS" />
370
371     <restriction type="audio">
372       <parent name="MPEG_TS_AUDIO" />
373
374       <field name="name" type="string">
375         <value>audio/x-ac3</value>
376       </field>
377     </restriction>
378
379     <restriction type="audio">
380       <parent name="MPEG_TS_AUDIO" />
381
382       <field name="name" type="string">
383         <value>audio/x-private1-ac3</value>
384       </field>
385     </restriction>
386
387     <restriction type="audio">
388       <parent name="MPEG_TS_AUDIO" />
389
390       <field name="name" type="string">
391         <value>audio/ac3</value>
392       </field>
393     </restriction>
394
395     <restriction type="video">
396       <parent name="MPEG_TS_VIDEO" />
397       <parent name="MPEG_TS_1920x1080" />
398     </restriction>
399
400     <restriction type="video">
401       <parent name="MPEG_TS_VIDEO" />
402       <parent name="MPEG_TS_1280x720" />
403     </restriction>
404
405     <restriction type="video">
406       <parent name="MPEG_TS_VIDEO" />
407       <parent name="1440x1080" />
408     </restriction>
409
410     <restriction type="video">
411       <parent name="MPEG_TS_VIDEO" />
412       <parent name="1280x1080" />
413     </restriction>
414   </dlna-profile>
415 </dlna-profiles>