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