1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright 2016 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 SYSTEM "/system/etc/media_profiles_V1_0.dtd"> 17 <!-- 18 This file is used to declare the multimedia profiles and capabilities 19 on an android-powered device. 20 --> 21 <MediaSettings> 22 <!-- Each camcorder profile defines a set of predefined configuration parameters --> 23 <CamcorderProfiles cameraId="0"> 24 25 <EncoderProfile quality="low" fileFormat="3gp" duration="60"> 26 <Video codec="h264" 27 bitRate="128000" 28 width="176" 29 height="144" 30 frameRate="30" /> 31 32 <Audio codec="amrnb" 33 bitRate="12200" 34 sampleRate="8000" 35 channels="1" /> 36 </EncoderProfile> 37 38 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 39 <Video codec="h264" 40 bitRate="42000000" 41 width="3840" 42 height="2160" 43 frameRate="30" /> 44 <Audio codec="aac" 45 bitRate="96000" 46 sampleRate="48000" 47 channels="1" /> 48 </EncoderProfile> 49 50 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 51 <Video codec="h264" 52 bitRate="128000" 53 width="176" 54 height="144" 55 frameRate="30" /> 56 <Audio codec="amrnb" 57 bitRate="12200" 58 sampleRate="8000" 59 channels="1" /> 60 </EncoderProfile> 61 62 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 63 <Video codec="h264" 64 bitRate="512000" 65 width="320" 66 height="240" 67 frameRate="30" /> 68 <Audio codec="aac" 69 bitRate="156000" 70 sampleRate="48000" 71 channels="2" /> 72 </EncoderProfile> 73 74 <EncoderProfile quality="cif" fileFormat="mp4" duration="30"> 75 <Video codec="h264" 76 bitRate="1200000" 77 width="352" 78 height="288" 79 frameRate="30" /> 80 <Audio codec="aac" 81 bitRate="96000" 82 sampleRate="48000" 83 channels="1" /> 84 </EncoderProfile> 85 86 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 87 <Video codec="h264" 88 bitRate="6000000" 89 width="720" 90 height="480" 91 frameRate="30" /> 92 <Audio codec="aac" 93 bitRate="96000" 94 sampleRate="48000" 95 channels="1" /> 96 </EncoderProfile> 97 98 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 99 <Video codec="h264" 100 bitRate="18000000" 101 width="1280" 102 height="720" 103 frameRate="60" /> 104 <Audio codec="aac" 105 bitRate="96000" 106 sampleRate="48000" 107 channels="1" /> 108 </EncoderProfile> 109 110 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 111 <Video codec="h264" 112 bitRate="33000000" 113 width="1920" 114 height="1080" 115 frameRate="60" /> 116 <Audio codec="aac" 117 bitRate="96000" 118 sampleRate="48000" 119 channels="1" /> 120 </EncoderProfile> 121 122 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 123 <Video codec="h264" 124 bitRate="42000000" 125 width="3840" 126 height="2160" 127 frameRate="30" /> 128 <Audio codec="aac" 129 bitRate="96000" 130 sampleRate="48000" 131 channels="1" /> 132 </EncoderProfile> 133 134 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 135 <Video codec="h264" 136 bitRate="192000" 137 width="176" 138 height="144" 139 frameRate="30" /> 140 <!-- audio setting is ignored --> 141 <Audio codec="amrnb" 142 bitRate="12200" 143 sampleRate="8000" 144 channels="1" /> 145 </EncoderProfile> 146 147 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 148 <Video codec="h264" 149 bitRate="1200000" 150 width="352" 151 height="288" 152 frameRate="30" /> 153 <!-- audio setting is ignored --> 154 <Audio codec="aac" 155 bitRate="96000" 156 sampleRate="48000" 157 channels="1" /> 158 </EncoderProfile> 159 160 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 161 <Video codec="h264" 162 bitRate="6000000" 163 width="720" 164 height="480" 165 frameRate="30" /> 166 <!-- audio setting is ignored --> 167 <Audio codec="aac" 168 bitRate="96000" 169 sampleRate="48000" 170 channels="1" /> 171 </EncoderProfile> 172 173 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 174 <Video codec="h264" 175 bitRate="12000000" 176 width="1280" 177 height="720" 178 frameRate="30" /> 179 <!-- audio setting is ignored --> 180 <Audio codec="aac" 181 bitRate="96000" 182 sampleRate="48000" 183 channels="1" /> 184 </EncoderProfile> 185 186 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 187 <Video codec="h264" 188 bitRate="17000000" 189 width="1920" 190 height="1080" 191 frameRate="30" /> 192 <!-- audio setting is ignored --> 193 <Audio codec="aac" 194 bitRate="96000" 195 sampleRate="48000" 196 channels="1" /> 197 </EncoderProfile> 198 199 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30"> 200 <Video codec="h264" 201 bitRate="42000000" 202 width="3840" 203 height="2160" 204 frameRate="30" /> 205 <!-- audio setting is ignored --> 206 <Audio codec="aac" 207 bitRate="96000" 208 sampleRate="48000" 209 channels="1" /> 210 </EncoderProfile> 211 212 <!-- CAMCORDER_QUALITY_HIGH_SPEED_LOW/720P : 720p@240fps; 42.0 Mbps --> 213 <EncoderProfile quality="highspeedlow" fileFormat="mp4" duration="30"> 214 <Video codec="h264" 215 bitRate="42000000" 216 width="1280" 217 height="720" 218 frameRate="240" /> 219 <!-- audio setting is ignored --> 220 <Audio codec="aac" 221 bitRate="96000" 222 sampleRate="48000" 223 channels="1" /> 224 </EncoderProfile> 225 226 <!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/1080P : 1080p@120fps; 42.0 Mbps --> 227 <EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="30"> 228 <Video codec="h264" 229 bitRate="42000000" 230 width="1920" 231 height="1080" 232 frameRate="120" /> 233 <!-- audio setting is ignored --> 234 <Audio codec="aac" 235 bitRate="96000" 236 sampleRate="48000" 237 channels="1" /> 238 </EncoderProfile> 239 240 <EncoderProfile quality="highspeed720p" fileFormat="mp4" duration="30"> 241 <Video codec="h264" 242 bitRate="42000000" 243 width="1280" 244 height="720" 245 frameRate="240" /> 246 <!-- audio setting is ignored --> 247 <Audio codec="aac" 248 bitRate="96000" 249 sampleRate="48000" 250 channels="1" /> 251 </EncoderProfile> 252 253 <EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="30"> 254 <Video codec="h264" 255 bitRate="42000000" 256 width="1920" 257 height="1080" 258 frameRate="120" /> 259 <!-- audio setting is ignored --> 260 <Audio codec="aac" 261 bitRate="96000" 262 sampleRate="48000" 263 channels="1" /> 264 </EncoderProfile> 265 266 <ImageEncoding quality="95" /> 267 <ImageEncoding quality="80" /> 268 <ImageEncoding quality="70" /> 269 <ImageDecoding memCap="20000000" /> 270 271 </CamcorderProfiles> 272 273 <CamcorderProfiles cameraId="1"> 274 275 <EncoderProfile quality="low" fileFormat="3gp" duration="60"> 276 <Video codec="h264" 277 bitRate="128000" 278 width="176" 279 height="144" 280 frameRate="30" /> 281 282 <Audio codec="amrnb" 283 bitRate="12200" 284 sampleRate="8000" 285 channels="1" /> 286 </EncoderProfile> 287 288 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 289 <Video codec="h264" 290 bitRate="17000000" 291 width="1920" 292 height="1080" 293 frameRate="30" /> 294 <Audio codec="aac" 295 bitRate="96000" 296 sampleRate="48000" 297 channels="1" /> 298 </EncoderProfile> 299 300 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 301 <Video codec="h264" 302 bitRate="128000" 303 width="176" 304 height="144" 305 frameRate="30" /> 306 <Audio codec="amrnb" 307 bitRate="12200" 308 sampleRate="8000" 309 channels="1" /> 310 </EncoderProfile> 311 312 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 313 <Video codec="h264" 314 bitRate="512000" 315 width="320" 316 height="240" 317 frameRate="30" /> 318 <Audio codec="aac" 319 bitRate="156000" 320 sampleRate="48000" 321 channels="2" /> 322 </EncoderProfile> 323 324 <EncoderProfile quality="cif" fileFormat="mp4" duration="30"> 325 <Video codec="h264" 326 bitRate="1200000" 327 width="352" 328 height="288" 329 frameRate="30" /> 330 <Audio codec="aac" 331 bitRate="96000" 332 sampleRate="48000" 333 channels="1" /> 334 </EncoderProfile> 335 336 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 337 <Video codec="h264" 338 bitRate="6000000" 339 width="720" 340 height="480" 341 frameRate="30" /> 342 <Audio codec="aac" 343 bitRate="96000" 344 sampleRate="48000" 345 channels="1" /> 346 </EncoderProfile> 347 348 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 349 <Video codec="h264" 350 bitRate="12000000" 351 width="1280" 352 height="720" 353 frameRate="30" /> 354 <Audio codec="aac" 355 bitRate="96000" 356 sampleRate="48000" 357 channels="1" /> 358 </EncoderProfile> 359 360 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 361 <Video codec="h264" 362 bitRate="17000000" 363 width="1920" 364 height="1080" 365 frameRate="30" /> 366 <Audio codec="aac" 367 bitRate="96000" 368 sampleRate="48000" 369 channels="1" /> 370 </EncoderProfile> 371 372 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 373 <Video codec="h264" 374 bitRate="192000" 375 width="176" 376 height="144" 377 frameRate="30" /> 378 <!-- audio setting is ignored --> 379 <Audio codec="amrnb" 380 bitRate="12200" 381 sampleRate="8000" 382 channels="1" /> 383 </EncoderProfile> 384 385 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 386 <Video codec="h264" 387 bitRate="1200000" 388 width="352" 389 height="288" 390 frameRate="30" /> 391 <!-- audio setting is ignored --> 392 <Audio codec="aac" 393 bitRate="96000" 394 sampleRate="48000" 395 channels="1" /> 396 </EncoderProfile> 397 398 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 399 <Video codec="h264" 400 bitRate="6000000" 401 width="720" 402 height="480" 403 frameRate="30" /> 404 <!-- audio setting is ignored --> 405 <Audio codec="aac" 406 bitRate="96000" 407 sampleRate="48000" 408 channels="1" /> 409 </EncoderProfile> 410 411 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 412 <Video codec="h264" 413 bitRate="12000000" 414 width="1280" 415 height="720" 416 frameRate="30" /> 417 <!-- audio setting is ignored --> 418 <Audio codec="aac" 419 bitRate="96000" 420 sampleRate="48000" 421 channels="1" /> 422 </EncoderProfile> 423 424 <ImageEncoding quality="95" /> 425 <ImageEncoding quality="80" /> 426 <ImageEncoding quality="70" /> 427 <ImageDecoding memCap="20000000" /> 428 429 </CamcorderProfiles> 430 431 <EncoderOutputFileFormat name="3gp" /> 432 <EncoderOutputFileFormat name="mp4" /> 433 434 <!-- 435 If a codec is not enabled, it is invisible to the applications 436 In other words, the applications won't be able to use the codec 437 or query the capabilities of the codec at all if it is disabled 438 --> 439 <VideoEncoderCap name="hevc" enabled="true" 440 minBitRate="64000" maxBitRate="100000000" 441 minFrameWidth="176" maxFrameWidth="3840" 442 minFrameHeight="144" maxFrameHeight="2160" 443 minFrameRate="15" maxFrameRate="30" /> 444 445 <VideoEncoderCap name="h264" enabled="true" 446 minBitRate="64000" maxBitRate="100000000" 447 minFrameWidth="176" maxFrameWidth="3840" 448 minFrameHeight="144" maxFrameHeight="2160" 449 minFrameRate="15" maxFrameRate="30" /> 450 451 <VideoEncoderCap name="h263" enabled="true" 452 minBitRate="64000" maxBitRate="2000000" 453 minFrameWidth="176" maxFrameWidth="800" 454 minFrameHeight="144" maxFrameHeight="480" 455 minFrameRate="15" maxFrameRate="30" /> 456 457 <VideoEncoderCap name="m4v" enabled="true" 458 minBitRate="64000" maxBitRate="40000000" 459 minFrameWidth="176" maxFrameWidth="1920" 460 minFrameHeight="144" maxFrameHeight="1080" 461 minFrameRate="15" maxFrameRate="30" /> 462 463 <AudioEncoderCap name="aac" enabled="true" 464 minBitRate="758" maxBitRate="288000" 465 minSampleRate="8000" maxSampleRate="48000" 466 minChannels="1" maxChannels="1" /> 467 468 <AudioEncoderCap name="heaac" enabled="true" 469 minBitRate="8000" maxBitRate="64000" 470 minSampleRate="16000" maxSampleRate="48000" 471 minChannels="1" maxChannels="1" /> 472 473 <AudioEncoderCap name="aaceld" enabled="true" 474 minBitRate="16000" maxBitRate="192000" 475 minSampleRate="16000" maxSampleRate="48000" 476 minChannels="1" maxChannels="1" /> 477 478 <AudioEncoderCap name="amrwb" enabled="true" 479 minBitRate="6600" maxBitRate="23050" 480 minSampleRate="16000" maxSampleRate="16000" 481 minChannels="1" maxChannels="1" /> 482 483 <AudioEncoderCap name="amrnb" enabled="true" 484 minBitRate="5525" maxBitRate="12200" 485 minSampleRate="8000" maxSampleRate="8000" 486 minChannels="1" maxChannels="1" /> 487 488 <!-- 489 FIXME: 490 We do not check decoder capabilities at present 491 At present, we only check whether windows media is visible 492 for TEST applications. For other applications, we do 493 not perform any checks at all. 494 --> 495 <VideoDecoderCap name="wmv" enabled="false"/> 496 <AudioDecoderCap name="wma" enabled="false"/> 497 </MediaSettings> 498