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 3, tele is 4) --> 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 30fps --> 41 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 42 <Video codec="h264" 43 bitRate="48000000" 44 width="3840" 45 height="2160" 46 frameRate="30" /> 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 30fps --> 132 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 133 <Video codec="h264" 134 bitRate="48000000" 135 width="3840" 136 height="2160" 137 frameRate="30" /> 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: 1920 x 1080 240fps 63.0 Mbps --> 229 <EncoderProfile quality="highspeedlow" fileFormat="mp4" duration="30"> 230 <Video codec="h264" 231 bitRate="63000000" 232 width="1920" 233 height="1080" 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 240fps 63.0 Mbps --> 243 <EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="30"> 244 <Video codec="h264" 245 bitRate="63000000" 246 width="1920" 247 height="1080" 248 frameRate="240" /> 249 <!-- audio setting is ignored --> 250 <Audio codec="aac" 251 bitRate="96000" 252 sampleRate="48000" 253 channels="1" /> 254 </EncoderProfile> 255 256 <!-- highspeed_1080p: 1920 x 1080 240fps 63.0 Mbps --> 257 <EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="30"> 258 <Video codec="h264" 259 bitRate="63000000" 260 width="1920" 261 height="1080" 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 <ImageEncoding quality="95" /> 271 <ImageEncoding quality="80" /> 272 <ImageEncoding quality="70" /> 273 <ImageDecoding memCap="20000000" /> 274 </CamcorderProfiles> 275 276 <!-- ****************************************************************** --> 277 <!-- camera id = 1 : front RGBD cameras --> 278 <!-- ****************************************************************** --> 279 <CamcorderProfiles cameraId="1"> 280 281 <!-- low: 176 x 144 30fps --> 282 <EncoderProfile quality="low" fileFormat="3gp" duration="60"> 283 <Video codec="h264" 284 bitRate="128000" 285 width="176" 286 height="144" 287 frameRate="30" /> 288 <Audio codec="amrnb" 289 bitRate="12200" 290 sampleRate="8000" 291 channels="1" /> 292 </EncoderProfile> 293 294 <!-- high: 1920 x 1080 30fps --> 295 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 296 <Video codec="h264" 297 bitRate="22000000" 298 width="1920" 299 height="1080" 300 frameRate="30" /> 301 <Audio codec="aac" 302 bitRate="96000" 303 sampleRate="48000" 304 channels="1" /> 305 </EncoderProfile> 306 307 <!-- qcif: 176 x 144 30fps --> 308 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 309 <Video codec="h264" 310 bitRate="128000" 311 width="176" 312 height="144" 313 frameRate="30" /> 314 <Audio codec="amrnb" 315 bitRate="12200" 316 sampleRate="8000" 317 channels="1" /> 318 </EncoderProfile> 319 320 <!-- qvga: 320 x 240 30fps --> 321 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 322 <Video codec="h264" 323 bitRate="512000" 324 width="320" 325 height="240" 326 frameRate="30" /> 327 <Audio codec="aac" 328 bitRate="156000" 329 sampleRate="48000" 330 channels="2" /> 331 </EncoderProfile> 332 333 <!-- cif: 352 x 288 30fps --> 334 <EncoderProfile quality="cif" fileFormat="mp4" duration="30"> 335 <Video codec="h264" 336 bitRate="1200000" 337 width="352" 338 height="288" 339 frameRate="30" /> 340 <Audio codec="aac" 341 bitRate="96000" 342 sampleRate="48000" 343 channels="1" /> 344 </EncoderProfile> 345 346 <!-- 480p: 720 x 480 30fps --> 347 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 348 <Video codec="h264" 349 bitRate="6000000" 350 width="720" 351 height="480" 352 frameRate="30" /> 353 <Audio codec="aac" 354 bitRate="96000" 355 sampleRate="48000" 356 channels="1" /> 357 </EncoderProfile> 358 359 <!-- 720p: 1280 x 720 30fps --> 360 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 361 <Video codec="h264" 362 bitRate="12000000" 363 width="1280" 364 height="720" 365 frameRate="30" /> 366 <Audio codec="aac" 367 bitRate="96000" 368 sampleRate="48000" 369 channels="1" /> 370 </EncoderProfile> 371 372 <!-- 1080p: 1920 x 1080 30fps --> 373 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 374 <Video codec="h264" 375 bitRate="22000000" 376 width="1920" 377 height="1080" 378 frameRate="30" /> 379 <Audio codec="aac" 380 bitRate="96000" 381 sampleRate="48000" 382 channels="1" /> 383 </EncoderProfile> 384 385 <!-- timelapse_qcif: 176 x 144 30fps --> 386 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 387 <Video codec="h264" 388 bitRate="192000" 389 width="176" 390 height="144" 391 frameRate="30" /> 392 <!-- audio setting is ignored --> 393 <Audio codec="amrnb" 394 bitRate="12200" 395 sampleRate="8000" 396 channels="1" /> 397 </EncoderProfile> 398 399 <!-- timelapse_cif: 352 x 288 30fps --> 400 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 401 <Video codec="h264" 402 bitRate="1200000" 403 width="352" 404 height="288" 405 frameRate="30" /> 406 <!-- audio setting is ignored --> 407 <Audio codec="aac" 408 bitRate="96000" 409 sampleRate="48000" 410 channels="1" /> 411 </EncoderProfile> 412 413 <!-- timelapse_480p: 720 x 480 30fps --> 414 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 415 <Video codec="h264" 416 bitRate="6000000" 417 width="720" 418 height="480" 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_720p: 1280 x 720 30fps --> 428 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 429 <Video codec="h264" 430 bitRate="12000000" 431 width="1280" 432 height="720" 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 <ImageEncoding quality="95" /> 442 <ImageEncoding quality="80" /> 443 <ImageEncoding quality="70" /> 444 <ImageDecoding memCap="20000000" /> 445 </CamcorderProfiles> 446 447 <!-- ****************************************************************** --> 448 <!-- camera id = 2 : logical dual IR cameras (lead is 6, follower is 7) --> 449 <!-- ****************************************************************** --> 450 <CamcorderProfiles cameraId="2"> 451 452 <!-- 480p: 640 x 480 30fps --> 453 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 454 <Video codec="h264" 455 bitRate="6000000" 456 width="640" 457 height="480" 458 frameRate="30" /> 459 <Audio codec="aac" 460 bitRate="96000" 461 sampleRate="48000" 462 channels="1" /> 463 </EncoderProfile> 464 465 <!-- timelapse_480p: 640 x 480 30fps --> 466 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 467 <Video codec="h264" 468 bitRate="6000000" 469 width="640" 470 height="480" 471 frameRate="30" /> 472 <!-- audio setting is ignored --> 473 <Audio codec="aac" 474 bitRate="96000" 475 sampleRate="48000" 476 channels="1" /> 477 </EncoderProfile> 478 479 <ImageEncoding quality="95" /> 480 <ImageEncoding quality="80" /> 481 <ImageEncoding quality="70" /> 482 <ImageDecoding memCap="20000000" /> 483 </CamcorderProfiles> 484 485 <EncoderOutputFileFormat name="3gp" /> 486 <EncoderOutputFileFormat name="mp4" /> 487 488 <!-- 489 If a codec is not enabled, it is invisible to the applications 490 In other words, the applications won't be able to use the codec 491 or query the capabilities of the codec at all if it is disabled 492 --> 493 <VideoEncoderCap name="hevc" enabled="true" 494 minBitRate="64000" maxBitRate="100000000" 495 minFrameWidth="176" maxFrameWidth="3840" 496 minFrameHeight="144" maxFrameHeight="2160" 497 minFrameRate="15" maxFrameRate="30" /> 498 499 <VideoEncoderCap name="h264" enabled="true" 500 minBitRate="64000" maxBitRate="100000000" 501 minFrameWidth="176" maxFrameWidth="3840" 502 minFrameHeight="144" maxFrameHeight="2160" 503 minFrameRate="15" maxFrameRate="30" /> 504 505 <VideoEncoderCap name="h263" enabled="true" 506 minBitRate="64000" maxBitRate="2000000" 507 minFrameWidth="176" maxFrameWidth="800" 508 minFrameHeight="144" maxFrameHeight="480" 509 minFrameRate="15" maxFrameRate="30" /> 510 511 <VideoEncoderCap name="m4v" enabled="true" 512 minBitRate="64000" maxBitRate="40000000" 513 minFrameWidth="176" maxFrameWidth="1920" 514 minFrameHeight="144" maxFrameHeight="1080" 515 minFrameRate="15" maxFrameRate="30" /> 516 517 <AudioEncoderCap name="aac" enabled="true" 518 minBitRate="758" maxBitRate="288000" 519 minSampleRate="8000" maxSampleRate="48000" 520 minChannels="1" maxChannels="2" /> 521 522 <AudioEncoderCap name="heaac" enabled="true" 523 minBitRate="8000" maxBitRate="64000" 524 minSampleRate="16000" maxSampleRate="48000" 525 minChannels="1" maxChannels="2" /> 526 527 <AudioEncoderCap name="aaceld" enabled="true" 528 minBitRate="16000" maxBitRate="192000" 529 minSampleRate="16000" maxSampleRate="48000" 530 minChannels="1" maxChannels="2" /> 531 532 <AudioEncoderCap name="amrwb" enabled="true" 533 minBitRate="6600" maxBitRate="23050" 534 minSampleRate="16000" maxSampleRate="16000" 535 minChannels="1" maxChannels="1" /> 536 537 <AudioEncoderCap name="amrnb" enabled="true" 538 minBitRate="5525" maxBitRate="12200" 539 minSampleRate="8000" maxSampleRate="8000" 540 minChannels="1" maxChannels="1" /> 541 542 <!-- 543 FIXME: 544 We do not check decoder capabilities at present 545 At present, we only check whether windows media is visible 546 for TEST applications. For other applications, we do 547 not perform any checks at all. 548 --> 549 <VideoDecoderCap name="wmv" enabled="false"/> 550 <AudioDecoderCap name="wma" enabled="false"/> 551</MediaSettings> 552