Initial commit
[gupnp:gupnp-dlna.git] / data / mpeg4.xml
1 <?xml version="1.0"?>
2
3 <dlna-profiles>
4   <include ref="common.xml" />
5
6   <restrictions>
7     <restriction id="MPEG4V" type="video">
8       <field name="name" type="string">
9         <value>video/mpeg</value>
10       </field>
11       <field name="mpegversion" type="int">
12         <value>4</value>
13       </field>
14       <field name="systemstream" type="boolean">
15         <value>false</value>
16       </field>
17       <field name="format" type="fourcc">
18         <value>I420</value>
19       </field>
20     </restriction>
21
22     <restriction id="H263_P0_L10" type="video">
23       <field name="name" type="string">
24         <value>video/x-h263</value>
25       </field>
26       <field name="profile" type="string">
27         <value>0</value>
28       </field>
29       <field name="level" type="string">
30         <value>10</value>
31       </field>
32       <field name="pixel-aspect-ratio" type="fraction">
33         <value>12/11</value>
34         <value>16/11</value>
35       </field>
36       <field name="format" type="fourcc">
37         <value>I420</value>
38       </field>
39       <field name="bitrate" type="int">
40         <range min="1" max="64000" />
41       </field>
42       <parent name="15fps" />
43     </restriction>
44
45     <restriction id="SP" type="video">
46       <parent name="MPEG4V" />
47
48       <field name="profile" type="string">
49         <value>simple</value>
50       </field>
51       <field name="pixel-aspect-ratio" type="fraction">
52         <value>1/1</value>
53         <value>12/11</value>
54         <value>10/11</value>
55         <value>16/11</value>
56         <value>40/33</value>
57       </field>
58       <parent name="30fps" />
59     </restriction>
60
61     <restriction id="SP_64" type="video">
62       <parent name="SP" />
63
64       <field name="level" type="string">
65         <value>0</value>
66         <value>1</value>
67       </field>
68       <field name="maximum-bitrate" type="int">
69         <range min="1" max="64000" />
70       </field>
71     </restriction>
72
73     <restriction id="SP_128" type="video">
74       <parent name="SP" />
75
76       <field name="level" type="string">
77         <value>0b</value>
78         <value>2</value>
79       </field>
80       <field name="maximum-bitrate" type="int">
81         <range min="1" max="128000" />
82       </field>
83     </restriction>
84
85     <restriction id="SP_384" type="video">
86       <parent name="SP" />
87
88       <field name="level" type="string">
89         <value>3</value>
90       </field>
91       <field name="maximum-bitrate" type="int">
92         <range min="1" max="384000" />
93       </field>
94     </restriction>
95
96     <restriction id="SP_L2" type="video">
97       <parent name="MPEG4V" />
98
99       <field name="profile" type="string">
100         <value>simple</value>
101       </field>
102       <field name="level" type="string">
103         <value>0</value>
104         <value>0b</value>
105         <value>1</value>
106         <value>2</value>
107       </field>
108       <field name="maximum-bitrate" type="int">
109         <range min="1" max="128000" />
110       </field>
111     </restriction>
112
113     <restriction id="SP_L3_VGA" type="video">
114       <parent name="MPEG4V" />
115
116       <field name="profile" type="string">
117         <value>simple</value>
118       </field>
119       <field name="level" type="string">
120         <value>0</value>
121         <value>0b</value>
122         <value>1</value>
123         <value>2</value>
124         <value>3</value>
125       </field>
126       <field name="maximum-bitrate" type="int">
127         <range min="1" max="3000000" />
128       </field>
129     </restriction>
130   </restrictions>
131
132   <dlna-profile name="" mime="" id="SP_L3">
133     <restriction type="video">
134       <parent name="SP_64" />
135       <parent name="CIF" />
136     </restriction>
137
138     <restriction type="video">
139       <parent name="SP_64" />
140       <parent name="525SIF" />
141     </restriction>
142
143     <restriction type="video">
144       <parent name="SP_64" />
145       <parent name="QVGA_4:3" />
146     </restriction>
147
148     <restriction type="video">
149       <parent name="SP_64" />
150       <parent name="QVGA_16:9" />
151     </restriction>
152
153     <restriction type="video">
154       <parent name="SP_64" />
155       <parent name="1/7_VGA_4:3" />
156     </restriction>
157
158     <restriction type="video">
159       <parent name="SP_64" />
160       <parent name="1/9_VGA_4:3" />
161     </restriction>
162
163     <restriction type="video">
164       <parent name="SP_64" />
165       <parent name="QCIF" />
166     </restriction>
167
168     <restriction type="video">
169       <parent name="SP_64" />
170       <parent name="525QSIF" />
171     </restriction>
172
173     <restriction type="video">
174       <parent name="SP_64" />
175       <parent name="SQVGA_4:3" />
176     </restriction>
177
178     <restriction type="video">
179       <parent name="SP_64" />
180       <parent name="1/16_VGA_4:3" />
181     </restriction>
182
183     <restriction type="video">
184       <parent name="SP_64" />
185       <parent name="SQVGA_16:9" />
186     </restriction>
187
188     <restriction type="video">
189       <parent name="SP_64" />
190       <parent name="SQCIF" />
191     </restriction>
192
193     <restriction type="video">
194       <parent name="SP_128" />
195       <parent name="CIF" />
196     </restriction>
197
198     <restriction type="video">
199       <parent name="SP_128" />
200       <parent name="525SIF" />
201     </restriction>
202
203     <restriction type="video">
204       <parent name="SP_128" />
205       <parent name="QVGA_4:3" />
206     </restriction>
207
208     <restriction type="video">
209       <parent name="SP_128" />
210       <parent name="QVGA_16:9" />
211     </restriction>
212
213     <restriction type="video">
214       <parent name="SP_128" />
215       <parent name="1/7_VGA_4:3" />
216     </restriction>
217
218     <restriction type="video">
219       <parent name="SP_128" />
220       <parent name="1/9_VGA_4:3" />
221     </restriction>
222
223     <restriction type="video">
224       <parent name="SP_128" />
225       <parent name="QCIF" />
226     </restriction>
227
228     <restriction type="video">
229       <parent name="SP_128" />
230       <parent name="525QSIF" />
231     </restriction>
232
233     <restriction type="video">
234       <parent name="SP_128" />
235       <parent name="SQVGA_4:3" />
236     </restriction>
237
238     <restriction type="video">
239       <parent name="SP_128" />
240       <parent name="1/16_VGA_4:3" />
241     </restriction>
242
243     <restriction type="video">
244       <parent name="SP_128" />
245       <parent name="SQVGA_16:9" />
246     </restriction>
247
248     <restriction type="video">
249       <parent name="SP_128" />
250       <parent name="SQCIF" />
251     </restriction>
252
253     <restriction type="video">
254       <parent name="SP_384" />
255       <parent name="CIF" />
256     </restriction>
257
258     <restriction type="video">
259       <parent name="SP_384" />
260       <parent name="525SIF" />
261     </restriction>
262
263     <restriction type="video">
264       <parent name="SP_384" />
265       <parent name="QVGA_4:3" />
266     </restriction>
267
268     <restriction type="video">
269       <parent name="SP_384" />
270       <parent name="QVGA_16:9" />
271     </restriction>
272
273     <restriction type="video">
274       <parent name="SP_384" />
275       <parent name="1/7_VGA_4:3" />
276     </restriction>
277
278     <restriction type="video">
279       <parent name="SP_384" />
280       <parent name="1/9_VGA_4:3" />
281     </restriction>
282
283     <restriction type="video">
284       <parent name="SP_384" />
285       <parent name="QCIF" />
286     </restriction>
287
288     <restriction type="video">
289       <parent name="SP_384" />
290       <parent name="525QSIF" />
291     </restriction>
292
293     <restriction type="video">
294       <parent name="SP_384" />
295       <parent name="SQVGA_4:3" />
296     </restriction>
297
298     <restriction type="video">
299       <parent name="SP_384" />
300       <parent name="1/16_VGA_4:3" />
301     </restriction>
302
303     <restriction type="video">
304       <parent name="SP_384" />
305       <parent name="SQVGA_16:9" />
306     </restriction>
307
308     <restriction type="video">
309       <parent name="SP_384" />
310       <parent name="SQCIF" />
311     </restriction>
312   </dlna-profile>
313
314   <dlna-profile name="MPEG4_P2_MP4_SP_AAC" mime="video/mp4" base-profile="SP_L3" id="SP_L3_MP4">
315     <parent name="MP4" />
316     <restriction type="audio">
317       <parent name="AAC" />
318
319       <!--
320         FIXME: this is a conservative bitrate (system bitrate (600 kbps) -
321         maximum possible video bitrate (384 kbps)), to avoid blowing up the
322         number of possible profiles again. Eventually we need a better way to
323         do this.
324       -->
325       <field name="bitrate" type="int">
326         <range min="1" max="216000" />
327       </field>
328     </restriction>
329   </dlna-profile>
330
331   <dlna-profile name="MPEG4_P2_MP4_SP_AAC" mime="video/mp4" base-profile="SP_L3_MP4" >
332     <parent name="QT" />
333   </dlna-profile>
334
335   <dlna-profile name="MPEG4_P2_MP4_SP_AAC_LTP" mime="video/mp4"
336     base-profile="SP_L3" id="SP_L3_MP4_AAC_LTP">
337     <parent name="MP4" />
338     <restriction type="audio">
339       <parent name="AAC" />
340
341       <field name="profile" type="string">
342         <value>ltp</value>
343       </field>
344       <!-- FIXME: see note for MPEG4_P2_MP4_SP_AAC bitrate -->
345       <field name="bitrate" type="int">
346         <range min="1" max="216000" />
347       </field>
348     </restriction>
349   </dlna-profile>
350
351   <dlna-profile name="MPEG4_P2_MP4_SP_AAC_LTP" mime="video/mp4"
352     base-profile="SP_L3_MP4_AAC_LTP" >
353     <parent name="QT" />
354   </dlna-profile>
355
356   <dlna-profile name="MPEG4_P2_MP4_SP_VGA_AAC" mime="video/mp4" id="SP_L3_VGA">
357     <parent name="MP4" />
358
359     <restriction type="video">
360       <parent name="SP_L3_VGA" />
361       <parent name="VGA" />
362     </restriction>
363
364     <restriction type="video">
365       <parent name="SP_L3_VGA" />
366       <parent name="VGA_16:9" />
367     </restriction>
368
369     <restriction type="audio">
370       <parent name="AAC" />
371
372       <field name="bitrate" type="int">
373         <range min="1" max="256000" />
374       </field>
375     </restriction>
376   </dlna-profile>
377
378   <dlna-profile name="MPEG4_P2_MP4_SP_VGA_AAC" mime="video/mp4"
379     base-profile="SP_L3_VGA">
380     <parent name="QT" />
381   </dlna-profile>
382
383   <dlna-profile name="MPEG4_P2_MP4_SP_L2_AAC" mime="video/mp4" id="SP_L2_AAC">
384     <parent name="MP4" />
385
386     <restriction type="audio">
387       <parent name="AAC" />
388       <field name="maximum-bitrate" type="int">
389         <range min="1" max="128000" />
390       </field>
391     </restriction>
392
393     <restriction type="video">
394       <parent name="SP_L2" />
395       <parent name="CIF" />
396       <parent name="15fps" />
397       <field name="pixel-aspect-ratio" type="fraction">
398         <value>12/11</value>
399         <value>16/11</value>
400       </field>
401     </restriction>
402
403     <restriction type="video">
404       <parent name="SP_L2" />
405       <parent name="QVGA_4:3" />
406       <parent name="15fps" />
407       <field name="pixel-aspect-ratio" type="fraction">
408         <value>1/1</value>
409       </field>
410     </restriction>
411
412     <restriction type="video">
413       <parent name="SP_L2" />
414       <parent name="QVGA_16:9" />
415       <parent name="15fps" />
416       <field name="pixel-aspect-ratio" type="fraction">
417         <value>1/1</value>
418       </field>
419     </restriction>
420
421     <restriction type="video">
422       <parent name="SP_L2" />
423       <parent name="QCIF" />
424       <parent name="30fps" />
425       <field name="pixel-aspect-ratio" type="fraction">
426         <value>12/11</value>
427         <value>16/11</value>
428       </field>
429     </restriction>
430
431     <restriction type="video">
432       <parent name="SP_L2" />
433       <parent name="SQCIF" />
434       <parent name="30fps" />
435       <field name="pixel-aspect-ratio" type="fraction">
436         <value>12/11</value>
437         <value>16/11</value>
438       </field>
439     </restriction>
440   </dlna-profile>
441
442   <dlna-profile name="MPEG4_P2_MP4_SP_L2_AAC" mime="video/mp4"
443     base-profile="SP_L2_AAC">
444     <parent name="QT" />
445   </dlna-profile>
446
447   <dlna-profile name="" mime="" id="H263_P0_L10">
448     <restriction type="video">
449       <parent name="H263_P0_L10" />
450       <parent name="QCIF" />
451     </restriction>
452
453     <restriction type="video">
454       <parent name="H263_P0_L10" />
455       <parent name="SQCIF" />
456     </restriction>
457   </dlna-profile>
458
459   <dlna-profile name="MPEG4_H263_MP4_P0_L10_AAC" mime="video/3gpp"
460     base-profile="H263_P0_L10" id="MPEG4_H263_MP4_P0_L10_AAC">
461     <parent name="MP4" />
462
463     <restriction type="audio">
464       <parent name="AAC" />
465       <!-- FIXME: see note for MPEG4_P2_MP4_SP_AAC bitrate, system bitrate
466            here is <= 150 kbps -->
467       <field name="bitrate" type="int">
468         <range min="1" max="86000" />
469       </field>
470     </restriction>
471   </dlna-profile>
472
473   <dlna-profile name="MPEG4_H263_MP4_P0_L10_AAC" mime="video/3gpp"
474     base-profile="MPEG4_H263_MP4_P0_L10_AAC">
475     <parent name="QT" />
476   </dlna-profile>
477
478   <dlna-profile name="MPEG4_H263_MP4_P0_L10_AAC_LTP" mime="video/3gpp"
479     base-profile="H263_P0_L10" id="MPEG4_H263_MP4_P0_L10_AAC_LTP">
480     <parent name="MP4" />
481
482     <restriction type="audio">
483       <parent name="AAC" />
484       <field name="profile" type="string">
485         <value>ltp</value>
486       </field>
487       <!-- FIXME: see note for MPEG4_P2_MP4_SP_AAC bitrate, system bitrate
488            here is <= 150 kbps -->
489       <field name="bitrate" type="int">
490         <range min="1" max="86000" />
491       </field>
492     </restriction>
493   </dlna-profile>
494
495   <dlna-profile name="MPEG4_H263_MP4_P0_L10_AAC_LTP" mime="video/3gpp"
496     base-profile="MPEG4_H263_MP4_P0_L10_AAC_LTP">
497     <parent name="QT" />
498   </dlna-profile>
499
500 </dlna-profiles>