blob: 2ffb7a3b3c9840d5c44b4ef84ac39088388b512d [file] [log] [blame]
John Stultz1b1a81a2021-07-27 05:38:32 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2017, The Android Open Source Project.
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10** http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19<!DOCTYPE MediaSettings SYSTEM "/system/etc/media_profiles_V1_0.dtd">
20<MediaSettings>
21 <!-- Each camcorder profile defines a set of predefined configuration parameters -->
22 <CamcorderProfiles cameraId="0">
23 <!-- Iffy! Lets pretend vga (640x480) is 480p! -->
24 <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
25 <Video codec="h264"
26 bitRate="6000000"
27 width="640"
28 height="480"
29 frameRate="30" />
30 <Audio codec="amrnb"
31 bitRate="12200"
32 sampleRate="8000"
33 channels="1" />
34 </EncoderProfile>
35
36 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
37 <Video codec="h264"
38 bitRate="128000"
39 width="320"
40 height="240"
41 frameRate="30" />
42 <Audio codec="amrnb"
43 bitRate="12200"
44 sampleRate="8000"
45 channels="1" />
46 </EncoderProfile>
47
48 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
49 <Video codec="h264"
50 bitRate="192000"
51 width="176"
52 height="144"
53 frameRate="30" />
54 <!-- audio setting is ignored -->
55 <Audio codec="amrnb"
56 bitRate="12200"
57 sampleRate="8000"
58 channels="1" />
59 </EncoderProfile>
60
61 <ImageEncoding quality="95" />
62 <ImageEncoding quality="80" />
63 <ImageEncoding quality="70" />
64 <ImageDecoding memCap="20000000" />
65
66 </CamcorderProfiles>
67
68 <EncoderOutputFileFormat name="3gp" />
69 <EncoderOutputFileFormat name="mp4" />
70
71 <!--
72 If a codec is not enabled, it is invisible to the applications
73 In other words, the applications won't be able to use the codec
74 or query the capabilities of the codec at all if it is disabled
75 -->
76 <VideoEncoderCap name="h264" enabled="true"
77 minBitRate="64000" maxBitRate="12000000"
78 minFrameWidth="176" maxFrameWidth="1280"
79 minFrameHeight="144" maxFrameHeight="720"
80 minFrameRate="15" maxFrameRate="30" />
81
82 <VideoEncoderCap name="h263" enabled="true"
83 minBitRate="64000" maxBitRate="12000000"
84 minFrameWidth="176" maxFrameWidth="1280"
85 minFrameHeight="144" maxFrameHeight="720"
86 minFrameRate="15" maxFrameRate="30" />
87
88 <VideoEncoderCap name="m4v" enabled="true"
89 minBitRate="64000" maxBitRate="12000000"
90 minFrameWidth="176" maxFrameWidth="1280"
91 minFrameHeight="144" maxFrameHeight="720"
92 minFrameRate="15" maxFrameRate="30" />
93
94 <AudioEncoderCap name="aac" enabled="true"
95 minBitRate="8000" maxBitRate="96000"
96 minSampleRate="8000" maxSampleRate="48000"
97 minChannels="1" maxChannels="1" />
98
99 <AudioEncoderCap name="amrwb" enabled="true"
100 minBitRate="6600" maxBitRate="23050"
101 minSampleRate="16000" maxSampleRate="16000"
102 minChannels="1" maxChannels="1" />
103
104 <AudioEncoderCap name="amrnb" enabled="true"
105 minBitRate="5525" maxBitRate="12200"
106 minSampleRate="8000" maxSampleRate="8000"
107 minChannels="1" maxChannels="1" />
108
109 <!--
110 FIXME:
111 We do not check decoder capabilities at present
112 At present, we only check whether windows media is visible
113 for TEST applications. For other applications, we do
114 not perform any checks at all.
115 -->
116 <VideoDecoderCap name="wmv" enabled="false"/>
117 <AudioDecoderCap name="wma" enabled="false"/>
118</MediaSettings>