1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
16 <!DOCTYPE MediaSettings [
17 <!ELEMENT MediaSettings (CamcorderProfiles,
18 EncoderOutputFileFormat+,
23 <!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
24 <!ELEMENT EncoderProfile (Video, Audio)>
25 <!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
26 <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
27 <!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
28 <!ELEMENT Video EMPTY>
29 <!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
30 <!ATTLIST Video bitRate CDATA #REQUIRED>
31 <!ATTLIST Video width CDATA #REQUIRED>
32 <!ATTLIST Video height CDATA #REQUIRED>
33 <!ATTLIST Video frameRate CDATA #REQUIRED>
34 <!ELEMENT Audio EMPTY>
35 <!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
36 <!ATTLIST Audio bitRate CDATA #REQUIRED>
37 <!ATTLIST Audio sampleRate CDATA #REQUIRED>
38 <!ATTLIST Audio channels (1|2) #REQUIRED>
39 <!ELEMENT ImageEncoding EMPTY>
40 <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
41 <!ELEMENT ImageDecoding EMPTY>
42 <!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
43 <!ELEMENT Camera EMPTY>
44 <!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
45 <!ELEMENT EncoderOutputFileFormat EMPTY>
46 <!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
47 <!ELEMENT VideoEncoderCap EMPTY>
48 <!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
49 <!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
50 <!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
51 <!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
52 <!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
53 <!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
54 <!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
55 <!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
56 <!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
57 <!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
58 <!ELEMENT AudioEncoderCap EMPTY>
59 <!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
60 <!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
61 <!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
62 <!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
63 <!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
64 <!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
65 <!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
66 <!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
67 <!ELEMENT VideoDecoderCap EMPTY>
68 <!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
69 <!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
70 <!ELEMENT AudioDecoderCap EMPTY>
71 <!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
72 <!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
75 This file is used to declare the multimedia profiles and capabilities
76 on an android-powered device.
79 <!-- Each camcorder profile defines a set of predefined configuration parameters -->
80 <CamcorderProfiles cameraId="0">
82 <EncoderProfile quality="low" fileFormat="mp4" duration="30">
96 <EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
109 <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
122 <EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
135 <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
148 <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
161 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
175 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
188 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
201 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
214 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
227 <ImageEncoding quality="90" />
228 <ImageEncoding quality="80" />
229 <ImageEncoding quality="70" />
230 <ImageDecoding memCap="20000000" />
232 <Camera previewFrameRate="30" />
236 <CamcorderProfiles cameraId="1">
238 <EncoderProfile quality="high" fileFormat="mp4" duration="60">
251 <EncoderProfile quality="low" fileFormat="mp4" duration="30">
264 <EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
277 <EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
291 <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
304 <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
317 <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
330 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="60">
343 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
357 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
370 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
383 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
396 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
410 <ImageEncoding quality="90" />
411 <ImageEncoding quality="80" />
412 <ImageEncoding quality="70" />
413 <ImageDecoding memCap="20000000" />
415 <Camera previewFrameRate="30" />
419 <EncoderOutputFileFormat name="3gp" />
420 <EncoderOutputFileFormat name="mp4" />
423 If a codec is not enabled, it is invisible to the applications
424 In other words, the applications won't be able to use the codec
425 or query the capabilities of the codec at all if it is disabled
427 <VideoEncoderCap name="h264" enabled="true"
428 minBitRate="64000" maxBitRate="13000000"
429 minFrameWidth="176" maxFrameWidth="1920"
430 minFrameHeight="144" maxFrameHeight="1080"
431 minFrameRate="1" maxFrameRate="30" />
433 <VideoEncoderCap name="h263" enabled="true"
434 minBitRate="64000" maxBitRate="1000000"
435 minFrameWidth="176" maxFrameWidth="800"
436 minFrameHeight="144" maxFrameHeight="480"
437 minFrameRate="1" maxFrameRate="24" />
439 <VideoEncoderCap name="m4v" enabled="true"
440 minBitRate="64000" maxBitRate="2000000"
441 minFrameWidth="176" maxFrameWidth="800"
442 minFrameHeight="144" maxFrameHeight="480"
443 minFrameRate="1" maxFrameRate="24" />
445 <AudioEncoderCap name="amrnb" enabled="true"
446 minBitRate="5525" maxBitRate="12200"
447 minSampleRate="8000" maxSampleRate="8000"
448 minChannels="1" maxChannels="1" />
450 <AudioEncoderCap name="amrwb" enabled="true"
451 minBitRate="6600" maxBitRate="23850"
452 minSampleRate="16000" maxSampleRate="16000"
453 minChannels="1" maxChannels="1" />
455 <AudioEncoderCap name="aac" enabled="true"
456 minBitRate="5525" maxBitRate="250000"
457 minSampleRate="8000" maxSampleRate="44100"
458 minChannels="1" maxChannels="1" />
462 We do not check decoder capabilities at present
463 At present, we only check whether windows media is visible
464 for TEST applications. For other applications, we do
465 not perform any checks at all.
467 <VideoDecoderCap name="wmv" enabled="true"/>
468 <AudioDecoderCap name="wma" enabled="true"/>
471 The VideoEditor Capability configuration:
472 - maxInputFrameWidth: maximum video width of imported video clip.
473 - maxInputFrameHeight: maximum video height of imported video clip.
474 - maxOutputFrameWidth: maximum video width of exported video clip.
475 - maxOutputFrameHeight: maximum video height of exported video clip.
476 - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
477 used to limit the amount of memory for prefetched YUV frames.
478 For this platform, it allows maximum 13MB(1.3MB per 720p frame x 10
481 <VideoEditorCap maxInputFrameWidth="1280"
482 maxInputFrameHeight="720" maxOutputFrameWidth="1280"
483 maxOutputFrameHeight="720" maxPrefetchYUVFrames="10"/>