Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
migaverse
GitHub Repository: migaverse/skymod
Path: blob/master/system/etc/media_profiles.xml
4282 views
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Copyright (C) 2010 The Android Open Source Project
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
-->
16
<!DOCTYPE MediaSettings [
17
<!ELEMENT MediaSettings (CamcorderProfiles,
18
EncoderOutputFileFormat+,
19
VideoEncoderCap+,
20
AudioEncoderCap+,
21
VideoDecoderCap,
22
AudioDecoderCap)>
23
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
24
<!ELEMENT EncoderProfile (Video, Audio)>
25
<!ATTLIST EncoderProfile quality (low|high|qcif|qvga|720p|1080p|timelapselow|timelapsehigh|timelapseqcif|timelapseqvga|timelapse720p|timelapse1080p) #REQUIRED>
26
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
27
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
28
<!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED>
29
<!ELEMENT Video EMPTY>
30
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
31
<!ATTLIST Video bitRate CDATA #REQUIRED>
32
<!ATTLIST Video width CDATA #REQUIRED>
33
<!ATTLIST Video height CDATA #REQUIRED>
34
<!ATTLIST Video frameRate CDATA #REQUIRED>
35
<!ELEMENT Audio EMPTY>
36
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
37
<!ATTLIST Audio bitRate CDATA #REQUIRED>
38
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
39
<!ATTLIST Audio channels (1|2) #REQUIRED>
40
<!ELEMENT ImageEncoding EMPTY>
41
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
42
<!ELEMENT ImageDecoding EMPTY>
43
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
44
<!ELEMENT Camera EMPTY>
45
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
46
<!ELEMENT EncoderOutputFileFormat EMPTY>
47
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
48
<!ELEMENT VideoEncoderCap EMPTY>
49
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
50
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
51
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
52
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
53
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
54
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
55
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
56
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
57
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
58
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
59
<!ELEMENT AudioEncoderCap EMPTY>
60
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
61
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
62
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
63
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
64
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
65
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
66
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
67
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
68
<!ELEMENT VideoDecoderCap EMPTY>
69
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
70
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
71
<!ELEMENT AudioDecoderCap EMPTY>
72
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
73
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
74
<!ELEMENT VideoEditorCap EMPTY>
75
<!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED>
76
<!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED>
77
<!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED>
78
<!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED>
79
<!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED>
80
<!ELEMENT ExportVideoProfile EMPTY>
81
<!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED>
82
<!ATTLIST ExportVideoProfile profile CDATA #REQUIRED>
83
<!ATTLIST ExportVideoProfile level CDATA #REQUIRED>
84
]>
85
<!--
86
This file is used to declare the multimedia profiles and capabilities
87
on an android-powered device.
88
-->
89
<MediaSettings>
90
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
91
<!-- Back Camera -->
92
<CamcorderProfiles cameraId="0" startOffsetMs="700">
93
94
<EncoderProfile quality="low" fileFormat="mp4" duration="30">
95
<Video codec="h264"
96
bitRate="384000"
97
width="176"
98
height="144"
99
frameRate="30" />
100
101
<Audio codec="aac"
102
bitRate="128000"
103
sampleRate="48000"
104
channels="2" />
105
</EncoderProfile>
106
107
<EncoderProfile quality="high" fileFormat="mp4" duration="30">
108
<Video codec="h264"
109
bitRate="17000000"
110
width="1920"
111
height="1080"
112
frameRate="30" />
113
114
<Audio codec="aac"
115
bitRate="256000"
116
sampleRate="48000"
117
channels="2" />
118
</EncoderProfile>
119
120
<EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
121
<Video codec="h264"
122
bitRate="384000"
123
width="176"
124
height="144"
125
frameRate="30" />
126
127
<Audio codec="aac"
128
bitRate="128000"
129
sampleRate="48000"
130
channels="2" />
131
</EncoderProfile>
132
133
<EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
134
<Video codec="h264"
135
bitRate="767000"
136
width="320"
137
height="240"
138
frameRate="30" />
139
140
<Audio codec="aac"
141
bitRate="128000"
142
sampleRate="48000"
143
channels="2" />
144
</EncoderProfile>
145
146
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
147
<Video codec="h264"
148
bitRate="3449000"
149
width="720"
150
height="480"
151
frameRate="30" />
152
153
<Audio codec="aac"
154
bitRate="256000"
155
sampleRate="48000"
156
channels="2" />
157
</EncoderProfile>
158
159
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
160
<Video codec="h264"
161
bitRate="12000000"
162
width="1280"
163
height="720"
164
frameRate="30" />
165
166
<Audio codec="aac"
167
bitRate="256000"
168
sampleRate="48000"
169
channels="2" />
170
</EncoderProfile>
171
172
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
173
<Video codec="h264"
174
bitRate="17000000"
175
width="1920"
176
height="1080"
177
frameRate="30" />
178
179
<Audio codec="aac"
180
bitRate="256000"
181
sampleRate="48000"
182
channels="2" />
183
</EncoderProfile>
184
185
<EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
186
<Video codec="h264"
187
bitRate="384000"
188
width="176"
189
height="144"
190
frameRate="30" />
191
192
<!--
193
The Audio part of the profile will not be used since time lapse mode
194
does not capture audio
195
-->
196
<Audio codec="aac"
197
bitRate="128000"
198
sampleRate="48000"
199
channels="2" />
200
</EncoderProfile>
201
202
<EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
203
<Video codec="h264"
204
bitRate="17000000"
205
width="1920"
206
height="1080"
207
frameRate="30" />
208
209
<!--
210
The Audio part of the profile will not be used since time lapse mode
211
does not capture audio
212
-->
213
<Audio codec="aac"
214
bitRate="256000"
215
sampleRate="48000"
216
channels="2" />
217
</EncoderProfile>
218
219
<EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
220
<Video codec="h264"
221
bitRate="384000"
222
width="176"
223
height="144"
224
frameRate="30" />
225
226
<!--
227
The Audio part of the profile will not be used since time lapse mode
228
does not capture audio
229
-->
230
<Audio codec="aac"
231
bitRate="128000"
232
sampleRate="48000"
233
channels="2" />
234
</EncoderProfile>
235
236
<EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
237
<Video codec="h264"
238
bitRate="767000"
239
width="320"
240
height="240"
241
frameRate="30" />
242
243
<!--
244
The Audio part of the profile will not be used since time lapse mode
245
does not capture audio
246
-->
247
<Audio codec="aac"
248
bitRate="128000"
249
sampleRate="48000"
250
channels="2" />
251
</EncoderProfile>
252
253
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
254
<Video codec="h264"
255
bitRate="3449000"
256
width="720"
257
height="480"
258
frameRate="30" />
259
260
<!--
261
The Audio part of the profile will not be used since time lapse mode
262
does not capture audio
263
-->
264
<Audio codec="aac"
265
bitRate="256000"
266
sampleRate="48000"
267
channels="2" />
268
</EncoderProfile>
269
270
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
271
<Video codec="h264"
272
bitRate="12000000"
273
width="1280"
274
height="720"
275
frameRate="30" />
276
277
<!--
278
The Audio part of the profile will not be used since time lapse mode
279
does not capture audio
280
-->
281
<Audio codec="aac"
282
bitRate="256000"
283
sampleRate="48000"
284
channels="2" />
285
</EncoderProfile>
286
287
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
288
<Video codec="h264"
289
bitRate="17000000"
290
width="1920"
291
height="1080"
292
frameRate="30" />
293
294
<!--
295
The Audio part of the profile will not be used since time lapse mode
296
does not capture audio
297
-->
298
<Audio codec="aac"
299
bitRate="256000"
300
sampleRate="48000"
301
channels="2" />
302
</EncoderProfile>
303
304
<ImageEncoding quality="95" />
305
<ImageEncoding quality="80" />
306
<ImageEncoding quality="70" />
307
<ImageDecoding memCap="20000000" />
308
309
</CamcorderProfiles>
310
311
<!-- Front Camera -->
312
<CamcorderProfiles cameraId="1" startOffsetMs="700">
313
314
<EncoderProfile quality="low" fileFormat="mp4" duration="30">
315
<Video codec="h264"
316
bitRate="384000"
317
width="176"
318
height="144"
319
frameRate="30" />
320
321
<Audio codec="aac"
322
bitRate="128000"
323
sampleRate="48000"
324
channels="2" />
325
</EncoderProfile>
326
327
<EncoderProfile quality="high" fileFormat="mp4" duration="30">
328
<Video codec="h264"
329
bitRate="17000000"
330
width="1920"
331
height="1080"
332
frameRate="30" />
333
334
<Audio codec="aac"
335
bitRate="256000"
336
sampleRate="48000"
337
channels="2" />
338
</EncoderProfile>
339
340
<EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
341
<Video codec="h264"
342
bitRate="384000"
343
width="176"
344
height="144"
345
frameRate="30" />
346
347
<Audio codec="aac"
348
bitRate="128000"
349
sampleRate="48000"
350
channels="2" />
351
</EncoderProfile>
352
353
<EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
354
<Video codec="h264"
355
bitRate="767000"
356
width="320"
357
height="240"
358
frameRate="30" />
359
360
<Audio codec="aac"
361
bitRate="128000"
362
sampleRate="48000"
363
channels="2" />
364
</EncoderProfile>
365
366
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
367
<Video codec="h264"
368
bitRate="3449000"
369
width="720"
370
height="480"
371
frameRate="30" />
372
373
<Audio codec="aac"
374
bitRate="256000"
375
sampleRate="48000"
376
channels="2" />
377
</EncoderProfile>
378
379
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
380
<Video codec="h264"
381
bitRate="12000000"
382
width="1280"
383
height="720"
384
frameRate="30" />
385
386
<Audio codec="aac"
387
bitRate="256000"
388
sampleRate="48000"
389
channels="2" />
390
</EncoderProfile>
391
392
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
393
<Video codec="h264"
394
bitRate="17000000"
395
width="1920"
396
height="1080"
397
frameRate="30" />
398
399
<Audio codec="aac"
400
bitRate="256000"
401
sampleRate="48000"
402
channels="2" />
403
</EncoderProfile>
404
405
<EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
406
<Video codec="h264"
407
bitRate="384000"
408
width="176"
409
height="144"
410
frameRate="30" />
411
412
<!--
413
The Audio part of the profile will not be used since time lapse mode
414
does not capture audio
415
-->
416
<Audio codec="aac"
417
bitRate="128000"
418
sampleRate="48000"
419
channels="2" />
420
</EncoderProfile>
421
422
<EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
423
<Video codec="h264"
424
bitRate="17000000"
425
width="1920"
426
height="1080"
427
frameRate="30" />
428
429
<!--
430
The Audio part of the profile will not be used since time lapse mode
431
does not capture audio
432
-->
433
<Audio codec="aac"
434
bitRate="256000"
435
sampleRate="48000"
436
channels="2" />
437
</EncoderProfile>
438
439
<EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
440
<Video codec="h264"
441
bitRate="384000"
442
width="176"
443
height="144"
444
frameRate="30" />
445
446
<!--
447
The Audio part of the profile will not be used since time lapse mode
448
does not capture audio
449
-->
450
<Audio codec="aac"
451
bitRate="128000"
452
sampleRate="48000"
453
channels="2" />
454
</EncoderProfile>
455
456
<EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
457
<Video codec="h264"
458
bitRate="767000"
459
width="320"
460
height="240"
461
frameRate="30" />
462
463
<!--
464
The Audio part of the profile will not be used since time lapse mode
465
does not capture audio
466
-->
467
<Audio codec="aac"
468
bitRate="128000"
469
sampleRate="48000"
470
channels="2" />
471
</EncoderProfile>
472
473
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
474
<Video codec="h264"
475
bitRate="3449000"
476
width="720"
477
height="480"
478
frameRate="30" />
479
480
<!--
481
The Audio part of the profile will not be used since time lapse mode
482
does not capture audio
483
-->
484
<Audio codec="aac"
485
bitRate="256000"
486
sampleRate="48000"
487
channels="2" />
488
</EncoderProfile>
489
490
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
491
<Video codec="h264"
492
bitRate="12000000"
493
width="1280"
494
height="720"
495
frameRate="30" />
496
497
<!--
498
The Audio part of the profile will not be used since time lapse mode
499
does not capture audio
500
-->
501
<Audio codec="aac"
502
bitRate="256000"
503
sampleRate="48000"
504
channels="2" />
505
</EncoderProfile>
506
507
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
508
<Video codec="h264"
509
bitRate="17000000"
510
width="1920"
511
height="1080"
512
frameRate="30" />
513
514
<!--
515
The Audio part of the profile will not be used since time lapse mode
516
does not capture audio
517
-->
518
<Audio codec="aac"
519
bitRate="256000"
520
sampleRate="48000"
521
channels="2" />
522
</EncoderProfile>
523
524
<ImageEncoding quality="95" />
525
<ImageEncoding quality="80" />
526
<ImageEncoding quality="70" />
527
<ImageDecoding memCap="20000000" />
528
529
</CamcorderProfiles>
530
531
<EncoderOutputFileFormat name="3gp" />
532
<EncoderOutputFileFormat name="mp4" />
533
534
<!--
535
If a codec is not enabled, it is invisible to the applications
536
In other words, the applications won't be able to use the codec
537
or query the capabilities of the codec at all if it is disabled
538
-->
539
540
<!--
541
FIXME : we only check Mpeg4 encorder cap and other codec doesn't check
542
codec cap
543
-->
544
<VideoEncoderCap name="h264" enabled="true"
545
minBitRate="64000" maxBitRate="50000000"
546
minFrameWidth="176" maxFrameWidth="3840"
547
minFrameHeight="144" maxFrameHeight="2160"
548
minFrameRate="1" maxFrameRate="30" />
549
550
<VideoEncoderCap name="h263" enabled="true"
551
minBitRate="64000" maxBitRate="1000000"
552
minFrameWidth="176" maxFrameWidth="800"
553
minFrameHeight="144" maxFrameHeight="480"
554
minFrameRate="1" maxFrameRate="30" />
555
556
<VideoEncoderCap name="m4v" enabled="true"
557
minBitRate="64000" maxBitRate="20000000"
558
minFrameWidth="176" maxFrameWidth="1920"
559
minFrameHeight="144" maxFrameHeight="1080"
560
minFrameRate="1" maxFrameRate="30" />
561
562
<AudioEncoderCap name="aac" enabled="true"
563
minBitRate="8192" maxBitRate="256000"
564
minSampleRate="8000" maxSampleRate="48000"
565
minChannels="1" maxChannels="2" />
566
567
<AudioEncoderCap name="heaac" enabled="true"
568
minBitRate="8000" maxBitRate="64000"
569
minSampleRate="16000" maxSampleRate="48000"
570
minChannels="1" maxChannels="1" />
571
572
<AudioEncoderCap name="aaceld" enabled="true"
573
minBitRate="16000" maxBitRate="192000"
574
minSampleRate="16000" maxSampleRate="48000"
575
minChannels="1" maxChannels="1" />
576
577
<AudioEncoderCap name="amrwb" enabled="true"
578
minBitRate="6600" maxBitRate="23850"
579
minSampleRate="16000" maxSampleRate="16000"
580
minChannels="1" maxChannels="1" />
581
582
<AudioEncoderCap name="amrnb" enabled="true"
583
minBitRate="5525" maxBitRate="12200"
584
minSampleRate="8000" maxSampleRate="8000"
585
minChannels="1" maxChannels="1" />
586
587
<!--
588
FIXME:
589
We do not check decoder capabilities at present
590
At present, we only check whether windows media is visible
591
for TEST applications. For other applications, we do
592
not perform any checks at all.
593
-->
594
<VideoDecoderCap name="wmv" enabled="false"/>
595
<AudioDecoderCap name="wma" enabled="false"/>
596
597
<!--
598
The VideoEditor Capability configuration:
599
- maxInputFrameWidth: maximum video width of imported video clip.
600
- maxInputFrameHeight: maximum video height of imported video clip.
601
- maxOutputFrameWidth: maximum video width of exported video clip.
602
- maxOutputFrameHeight: maximum video height of exported video clip.
603
- maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
604
used to limit the amount of memory for prefetched YUV frames.
605
For this platform, it allows maximum 30MB(3MB per 1080p frame x 10
606
frames) memory.
607
-->
608
<VideoEditorCap maxInputFrameWidth="1920"
609
maxInputFrameHeight="1088" maxOutputFrameWidth="1920"
610
maxOutputFrameHeight="1080" maxPrefetchYUVFrames="10"/>
611
<!--
612
The VideoEditor Export codec profile and level values
613
correspond to the values in OMX_Video.h.
614
E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline
615
and level 4096 means OMX_VIDEO_AVCLevel41.
616
Please note that the values are in decimal.
617
These values are for video encoder.
618
-->
619
<!--
620
Codec = h.264, Baseline profile, level 4.2
621
-->
622
<ExportVideoProfile name="h264" profile= "1" level="8192"/>
623
<!--
624
Codec = h.263, Baseline profile, level 45
625
-->
626
<ExportVideoProfile name="h263" profile= "1" level="16"/>
627
<!--
628
Codec = mpeg4, Simple profile, level 5
629
-->
630
<ExportVideoProfile name="m4v" profile= "1" level="128"/>
631
</MediaSettings>
632
633