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