1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 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 [ 17<!ELEMENT MediaSettings (CamcorderProfiles, 18 EncoderOutputFileFormat+, 19 VideoEncoderCap+, 20 AudioEncoderCap+, 21 VideoDecoderCap, 22 AudioDecoderCap)> 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 (hevc|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> 73]> 74<!-- 75 This file is used to declare the multimedia profiles and capabilities 76 on an android-powered device. 77--> 78<MediaSettings> 79 <!-- Each camcorder profile defines a set of predefined configuration parameters --> 80 <CamcorderProfiles cameraId="0"> 81 82 <EncoderProfile quality="2160p" fileFormat="mp4" duration="60"> 83 <Video codec="h264" 84 bitRate="72000000" 85 width="3840" 86 height="2160" 87 frameRate="60" /> 88 89 <Audio codec="aac" 90 bitRate="96000" 91 sampleRate="48000" 92 channels="1" /> 93 </EncoderProfile> 94 95 <EncoderProfile quality="1080p" fileFormat="mp4" duration="60"> 96 <Video codec="h264" 97 bitRate="33000000" 98 width="1920" 99 height="1080" 100 frameRate="60" /> 101 102 <Audio codec="aac" 103 bitRate="96000" 104 sampleRate="48000" 105 channels="1" /> 106 </EncoderProfile> 107 108 <EncoderProfile quality="720p" fileFormat="mp4" duration="60"> 109 <Video codec="h264" 110 bitRate="12000000" 111 width="1280" 112 height="720" 113 frameRate="30" /> 114 115 <Audio codec="aac" 116 bitRate="96000" 117 sampleRate="48000" 118 channels="1" /> 119 </EncoderProfile> 120 121 <EncoderProfile quality="480p" fileFormat="mp4" duration="60"> 122 <Video codec="h264" 123 bitRate="6000000" 124 width="720" 125 height="480" 126 frameRate="30" /> 127 128 <Audio codec="aac" 129 bitRate="96000" 130 sampleRate="48000" 131 channels="1" /> 132 </EncoderProfile> 133 134 <EncoderProfile quality="cif" fileFormat="mp4" duration="60"> 135 <Video codec="h264" 136 bitRate="1200000" 137 width="352" 138 height="288" 139 frameRate="30" /> 140 141 <Audio codec="aac" 142 bitRate="96000" 143 sampleRate="48000" 144 channels="1" /> 145 </EncoderProfile> 146 147 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 148 <Video codec="h264" 149 bitRate="512000" 150 width="320" 151 height="240" 152 frameRate="30" /> 153 154 <Audio codec="aac" 155 bitRate="96000" 156 sampleRate="48000" 157 channels="1" /> 158 </EncoderProfile> 159 160 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 161 <Video codec="h264" 162 bitRate="128000" 163 width="176" 164 height="144" 165 frameRate="30" /> 166 167 <Audio codec="amrnb" 168 bitRate="12200" 169 sampleRate="8000" 170 channels="1" /> 171 </EncoderProfile> 172 173 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60"> 174 <Video codec="h264" 175 bitRate="48000000" 176 width="3840" 177 height="2160" 178 frameRate="30" /> 179 180 <!-- Audio settings are not used for timealpse video recording --> 181 <Audio codec="aac" 182 bitRate="96000" 183 sampleRate="48000" 184 channels="1" /> 185 </EncoderProfile> 186 187 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60"> 188 <Video codec="h264" 189 bitRate="22000000" 190 width="1920" 191 height="1080" 192 frameRate="30" /> 193 194 <!-- Audio settings are not used for timealpse video recording --> 195 <Audio codec="aac" 196 bitRate="96000" 197 sampleRate="48000" 198 channels="1" /> 199 </EncoderProfile> 200 201 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60"> 202 <Video codec="h264" 203 bitRate="12000000" 204 width="1280" 205 height="720" 206 frameRate="30" /> 207 208 <!-- Audio settings are not used for timealpse video recording --> 209 <Audio codec="aac" 210 bitRate="96000" 211 sampleRate="48000" 212 channels="1" /> 213 </EncoderProfile> 214 215 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60"> 216 <Video codec="h264" 217 bitRate="6000000" 218 width="720" 219 height="480" 220 frameRate="30" /> 221 222 <!-- Audio settings are not used for timealpse video recording --> 223 <Audio codec="aac" 224 bitRate="96000" 225 sampleRate="48000" 226 channels="1" /> 227 </EncoderProfile> 228 229 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60"> 230 <Video codec="h264" 231 bitRate="1200000" 232 width="352" 233 height="288" 234 frameRate="30" /> 235 236 <!-- Audio settings are not used for timealpse video recording --> 237 <Audio codec="aac" 238 bitRate="96000" 239 sampleRate="48000" 240 channels="1" /> 241 </EncoderProfile> 242 243 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60"> 244 <Video codec="h264" 245 bitRate="192000" 246 width="176" 247 height="144" 248 frameRate="30" /> 249 250 <!-- Audio settings are not used for timealpse video recording --> 251 <Audio codec="amrnb" 252 bitRate="12200" 253 sampleRate="8000" 254 channels="1" /> 255 </EncoderProfile> 256 257 <EncoderProfile quality="highspeedlow" fileFormat="mp4" duration="60"> 258 <Video codec="h264" 259 bitRate="72000000" 260 width="1920" 261 height="1080" 262 frameRate="240" /> 263 264 <!-- audio setting is ignored --> 265 <Audio codec="aac" 266 bitRate="96000" 267 sampleRate="48000" 268 channels="1" /> 269 </EncoderProfile> 270 271 <EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="60"> 272 <Video codec="h264" 273 bitRate="72000000" 274 width="1920" 275 height="1080" 276 frameRate="240" /> 277 278 <!-- audio setting is ignored --> 279 <Audio codec="aac" 280 bitRate="96000" 281 sampleRate="48000" 282 channels="1" /> 283 </EncoderProfile> 284 285 <EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="60"> 286 <Video codec="h264" 287 bitRate="72000000" 288 width="1920" 289 height="1080" 290 frameRate="240" /> 291 292 <!-- audio setting is ignored --> 293 <Audio codec="aac" 294 bitRate="96000" 295 sampleRate="48000" 296 channels="1" /> 297 </EncoderProfile> 298 299 <ImageEncoding quality="90" /> 300 <ImageEncoding quality="80" /> 301 <ImageEncoding quality="70" /> 302 <ImageDecoding memCap="20000000" /> 303 304 </CamcorderProfiles> 305 306 <CamcorderProfiles cameraId="1"> 307 308 <EncoderProfile quality="1080p" fileFormat="mp4" duration="60"> 309 <Video codec="h264" 310 bitRate="22000000" 311 width="1920" 312 height="1080" 313 frameRate="30" /> 314 315 <Audio codec="aac" 316 bitRate="96000" 317 sampleRate="48000" 318 channels="1" /> 319 </EncoderProfile> 320 321 <EncoderProfile quality="720p" fileFormat="mp4" duration="60"> 322 <Video codec="h264" 323 bitRate="12000000" 324 width="1280" 325 height="720" 326 frameRate="30" /> 327 328 <Audio codec="aac" 329 bitRate="96000" 330 sampleRate="48000" 331 channels="1" /> 332 </EncoderProfile> 333 334 <EncoderProfile quality="480p" fileFormat="mp4" duration="60"> 335 <Video codec="h264" 336 bitRate="6000000" 337 width="720" 338 height="480" 339 frameRate="30" /> 340 341 <Audio codec="aac" 342 bitRate="96000" 343 sampleRate="48000" 344 channels="1" /> 345 </EncoderProfile> 346 347 <EncoderProfile quality="cif" fileFormat="mp4" duration="60"> 348 <Video codec="h264" 349 bitRate="1200000" 350 width="352" 351 height="288" 352 frameRate="30" /> 353 354 <Audio codec="aac" 355 bitRate="96000" 356 sampleRate="48000" 357 channels="1" /> 358 </EncoderProfile> 359 360 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 361 <Video codec="h264" 362 bitRate="512000" 363 width="320" 364 height="240" 365 frameRate="30" /> 366 367 <Audio codec="aac" 368 bitRate="96000" 369 sampleRate="48000" 370 channels="1" /> 371 </EncoderProfile> 372 373 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 374 <Video codec="h264" 375 bitRate="128000" 376 width="176" 377 height="144" 378 frameRate="30" /> 379 380 <Audio codec="amrnb" 381 bitRate="12200" 382 sampleRate="8000" 383 channels="1" /> 384 </EncoderProfile> 385 386 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60"> 387 <Video codec="h264" 388 bitRate="48000000" 389 width="3840" 390 height="2160" 391 frameRate="30" /> 392 393 <!-- Audio settings are not used for timealpse video recording --> 394 <Audio codec="aac" 395 bitRate="96000" 396 sampleRate="48000" 397 channels="1" /> 398 </EncoderProfile> 399 400 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60"> 401 <Video codec="h264" 402 bitRate="22000000" 403 width="1920" 404 height="1080" 405 frameRate="30" /> 406 407 <!-- Audio settings are not used for timealpse video recording --> 408 <Audio codec="aac" 409 bitRate="96000" 410 sampleRate="48000" 411 channels="1" /> 412 </EncoderProfile> 413 414 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60"> 415 <Video codec="h264" 416 bitRate="12000000" 417 width="1280" 418 height="720" 419 frameRate="30" /> 420 421 <!-- Audio settings are not used for timealpse video recording --> 422 <Audio codec="aac" 423 bitRate="96000" 424 sampleRate="48000" 425 channels="1" /> 426 </EncoderProfile> 427 428 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60"> 429 <Video codec="h264" 430 bitRate="6000000" 431 width="720" 432 height="480" 433 frameRate="30" /> 434 435 <!-- Audio settings are not used for timealpse video recording --> 436 <Audio codec="aac" 437 bitRate="96000" 438 sampleRate="48000" 439 channels="1" /> 440 </EncoderProfile> 441 442 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60"> 443 <Video codec="h264" 444 bitRate="1200000" 445 width="352" 446 height="288" 447 frameRate="30" /> 448 449 <!-- Audio settings are not used for timealpse video recording --> 450 <Audio codec="aac" 451 bitRate="96000" 452 sampleRate="48000" 453 channels="1" /> 454 </EncoderProfile> 455 456 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60"> 457 <Video codec="h264" 458 bitRate="192000" 459 width="176" 460 height="144" 461 frameRate="30" /> 462 463 <!-- Audio settings are not used for timealpse video recording --> 464 <Audio codec="amrnb" 465 bitRate="12200" 466 sampleRate="8000" 467 channels="1" /> 468 </EncoderProfile> 469 470 <EncoderProfile quality="highspeedlow" fileFormat="mp4" duration="60"> 471 <Video codec="h264" 472 bitRate="42000000" 473 width="1920" 474 height="1080" 475 frameRate="120" /> 476 477 <!-- audio setting is ignored --> 478 <Audio codec="aac" 479 bitRate="96000" 480 sampleRate="48000" 481 channels="1" /> 482 </EncoderProfile> 483 484 <EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="60"> 485 <Video codec="h264" 486 bitRate="42000000" 487 width="1920" 488 height="1080" 489 frameRate="120" /> 490 491 <!-- audio setting is ignored --> 492 <Audio codec="aac" 493 bitRate="96000" 494 sampleRate="48000" 495 channels="1" /> 496 </EncoderProfile> 497 498 <EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="60"> 499 <Video codec="h264" 500 bitRate="42000000" 501 width="1920" 502 height="1080" 503 frameRate="120" /> 504 505 <!-- audio setting is ignored --> 506 <Audio codec="aac" 507 bitRate="96000" 508 sampleRate="48000" 509 channels="1" /> 510 </EncoderProfile> 511 512 <ImageEncoding quality="90" /> 513 <ImageEncoding quality="80" /> 514 <ImageEncoding quality="70" /> 515 <ImageDecoding memCap="20000000" /> 516 517 </CamcorderProfiles> 518 519 <CamcorderProfiles cameraId="2"> 520 521 <EncoderProfile quality="2160p" fileFormat="mp4" duration="60"> 522 <Video codec="h264" 523 bitRate="72000000" 524 width="3840" 525 height="2160" 526 frameRate="60" /> 527 528 <Audio codec="aac" 529 bitRate="96000" 530 sampleRate="48000" 531 channels="1" /> 532 </EncoderProfile> 533 534 <EncoderProfile quality="1080p" fileFormat="mp4" duration="60"> 535 <Video codec="h264" 536 bitRate="33000000" 537 width="1920" 538 height="1080" 539 frameRate="60" /> 540 541 <Audio codec="aac" 542 bitRate="96000" 543 sampleRate="48000" 544 channels="1" /> 545 </EncoderProfile> 546 547 <EncoderProfile quality="720p" fileFormat="mp4" duration="60"> 548 <Video codec="h264" 549 bitRate="12000000" 550 width="1280" 551 height="720" 552 frameRate="30" /> 553 554 <Audio codec="aac" 555 bitRate="96000" 556 sampleRate="48000" 557 channels="1" /> 558 </EncoderProfile> 559 560 <EncoderProfile quality="480p" fileFormat="mp4" duration="60"> 561 <Video codec="h264" 562 bitRate="6000000" 563 width="720" 564 height="480" 565 frameRate="30" /> 566 567 <Audio codec="aac" 568 bitRate="96000" 569 sampleRate="48000" 570 channels="1" /> 571 </EncoderProfile> 572 573 <EncoderProfile quality="cif" fileFormat="mp4" duration="60"> 574 <Video codec="h264" 575 bitRate="1200000" 576 width="352" 577 height="288" 578 frameRate="30" /> 579 580 <Audio codec="aac" 581 bitRate="96000" 582 sampleRate="48000" 583 channels="1" /> 584 </EncoderProfile> 585 586 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 587 <Video codec="h264" 588 bitRate="512000" 589 width="320" 590 height="240" 591 frameRate="30" /> 592 593 <Audio codec="aac" 594 bitRate="96000" 595 sampleRate="48000" 596 channels="1" /> 597 </EncoderProfile> 598 599 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 600 <Video codec="h264" 601 bitRate="128000" 602 width="176" 603 height="144" 604 frameRate="30" /> 605 606 <Audio codec="amrnb" 607 bitRate="12200" 608 sampleRate="8000" 609 channels="1" /> 610 </EncoderProfile> 611 612 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60"> 613 <Video codec="h264" 614 bitRate="48000000" 615 width="3840" 616 height="2160" 617 frameRate="30" /> 618 619 <!-- Audio settings are not used for timealpse video recording --> 620 <Audio codec="aac" 621 bitRate="96000" 622 sampleRate="48000" 623 channels="1" /> 624 </EncoderProfile> 625 626 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60"> 627 <Video codec="h264" 628 bitRate="22000000" 629 width="1920" 630 height="1080" 631 frameRate="30" /> 632 633 <!-- Audio settings are not used for timealpse video recording --> 634 <Audio codec="aac" 635 bitRate="96000" 636 sampleRate="48000" 637 channels="1" /> 638 </EncoderProfile> 639 640 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60"> 641 <Video codec="h264" 642 bitRate="12000000" 643 width="1280" 644 height="720" 645 frameRate="30" /> 646 647 <!-- Audio settings are not used for timealpse video recording --> 648 <Audio codec="aac" 649 bitRate="96000" 650 sampleRate="48000" 651 channels="1" /> 652 </EncoderProfile> 653 654 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60"> 655 <Video codec="h264" 656 bitRate="6000000" 657 width="720" 658 height="480" 659 frameRate="30" /> 660 661 <!-- Audio settings are not used for timealpse video recording --> 662 <Audio codec="aac" 663 bitRate="96000" 664 sampleRate="48000" 665 channels="1" /> 666 </EncoderProfile> 667 668 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60"> 669 <Video codec="h264" 670 bitRate="1200000" 671 width="352" 672 height="288" 673 frameRate="30" /> 674 675 <!-- Audio settings are not used for timealpse video recording --> 676 <Audio codec="aac" 677 bitRate="96000" 678 sampleRate="48000" 679 channels="1" /> 680 </EncoderProfile> 681 682 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60"> 683 <Video codec="h264" 684 bitRate="192000" 685 width="176" 686 height="144" 687 frameRate="30" /> 688 689 <!-- Audio settings are not used for timealpse video recording --> 690 <Audio codec="amrnb" 691 bitRate="12200" 692 sampleRate="8000" 693 channels="1" /> 694 </EncoderProfile> 695 696 <EncoderProfile quality="highspeedlow" fileFormat="mp4" duration="60"> 697 <Video codec="h264" 698 bitRate="72000000" 699 width="1920" 700 height="1080" 701 frameRate="240" /> 702 703 <!-- audio setting is ignored --> 704 <Audio codec="aac" 705 bitRate="96000" 706 sampleRate="48000" 707 channels="1" /> 708 </EncoderProfile> 709 710 <EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="60"> 711 <Video codec="h264" 712 bitRate="72000000" 713 width="1920" 714 height="1080" 715 frameRate="240" /> 716 717 <!-- audio setting is ignored --> 718 <Audio codec="aac" 719 bitRate="96000" 720 sampleRate="48000" 721 channels="1" /> 722 </EncoderProfile> 723 724 <EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="60"> 725 <Video codec="h264" 726 bitRate="72000000" 727 width="1920" 728 height="1080" 729 frameRate="240" /> 730 731 <!-- audio setting is ignored --> 732 <Audio codec="aac" 733 bitRate="96000" 734 sampleRate="48000" 735 channels="1" /> 736 </EncoderProfile> 737 738 <ImageEncoding quality="90" /> 739 <ImageEncoding quality="80" /> 740 <ImageEncoding quality="70" /> 741 <ImageDecoding memCap="20000000" /> 742 743 </CamcorderProfiles> 744 745 <CamcorderProfiles cameraId="3"> 746 747 <EncoderProfile quality="1080p" fileFormat="mp4" duration="60"> 748 <Video codec="h264" 749 bitRate="22000000" 750 width="1920" 751 height="1080" 752 frameRate="30" /> 753 754 <Audio codec="aac" 755 bitRate="96000" 756 sampleRate="48000" 757 channels="1" /> 758 </EncoderProfile> 759 760 <EncoderProfile quality="720p" fileFormat="mp4" duration="60"> 761 <Video codec="h264" 762 bitRate="12000000" 763 width="1280" 764 height="720" 765 frameRate="30" /> 766 767 <Audio codec="aac" 768 bitRate="96000" 769 sampleRate="48000" 770 channels="1" /> 771 </EncoderProfile> 772 773 <EncoderProfile quality="480p" fileFormat="mp4" duration="60"> 774 <Video codec="h264" 775 bitRate="6000000" 776 width="720" 777 height="480" 778 frameRate="30" /> 779 780 <Audio codec="aac" 781 bitRate="96000" 782 sampleRate="48000" 783 channels="1" /> 784 </EncoderProfile> 785 786 <EncoderProfile quality="cif" fileFormat="mp4" duration="60"> 787 <Video codec="h264" 788 bitRate="1200000" 789 width="352" 790 height="288" 791 frameRate="30" /> 792 793 <Audio codec="aac" 794 bitRate="96000" 795 sampleRate="48000" 796 channels="1" /> 797 </EncoderProfile> 798 799 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 800 <Video codec="h264" 801 bitRate="512000" 802 width="320" 803 height="240" 804 frameRate="30" /> 805 806 <Audio codec="aac" 807 bitRate="96000" 808 sampleRate="48000" 809 channels="1" /> 810 </EncoderProfile> 811 812 <EncoderProfile quality="qcif" fileFormat="3gp" duration="60"> 813 <Video codec="h264" 814 bitRate="128000" 815 width="176" 816 height="144" 817 frameRate="30" /> 818 819 <Audio codec="amrnb" 820 bitRate="12200" 821 sampleRate="8000" 822 channels="1" /> 823 </EncoderProfile> 824 825 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60"> 826 <Video codec="h264" 827 bitRate="22000000" 828 width="1920" 829 height="1080" 830 frameRate="30" /> 831 832 <!-- Audio settings are not used for timealpse video recording --> 833 <Audio codec="aac" 834 bitRate="96000" 835 sampleRate="48000" 836 channels="1" /> 837 </EncoderProfile> 838 839 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60"> 840 <Video codec="h264" 841 bitRate="12000000" 842 width="1280" 843 height="720" 844 frameRate="30" /> 845 846 <!-- Audio settings are not used for timealpse video recording --> 847 <Audio codec="aac" 848 bitRate="96000" 849 sampleRate="48000" 850 channels="1" /> 851 </EncoderProfile> 852 853 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60"> 854 <Video codec="h264" 855 bitRate="6000000" 856 width="720" 857 height="480" 858 frameRate="30" /> 859 860 <!-- Audio settings are not used for timealpse video recording --> 861 <Audio codec="aac" 862 bitRate="96000" 863 sampleRate="48000" 864 channels="1" /> 865 </EncoderProfile> 866 867 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60"> 868 <Video codec="h264" 869 bitRate="1200000" 870 width="352" 871 height="288" 872 frameRate="30" /> 873 874 <!-- Audio settings are not used for timealpse video recording --> 875 <Audio codec="aac" 876 bitRate="96000" 877 sampleRate="48000" 878 channels="1" /> 879 </EncoderProfile> 880 881 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60"> 882 <Video codec="h264" 883 bitRate="192000" 884 width="176" 885 height="144" 886 frameRate="30" /> 887 888 <!-- Audio settings are not used for timealpse video recording --> 889 <Audio codec="amrnb" 890 bitRate="12200" 891 sampleRate="8000" 892 channels="1" /> 893 </EncoderProfile> 894 895 <ImageEncoding quality="90" /> 896 <ImageEncoding quality="80" /> 897 <ImageEncoding quality="70" /> 898 <ImageDecoding memCap="20000000" /> 899 900 </CamcorderProfiles> 901 902 <EncoderOutputFileFormat name="3gp" /> 903 <EncoderOutputFileFormat name="mp4" /> 904 905 <!-- 906 If a codec is not enabled, it is invisible to the applications 907 In other words, the applications won't be able to use the codec 908 or query the capabilities of the codec at all if it is disabled 909 --> 910 911 <!-- 912 FIXME : we only check Mpeg4 encorder cap and other codec doesn't check 913 codec cap 914 --> 915 <VideoEncoderCap name="hevc" enabled="true" 916 minBitRate="64000" maxBitRate="100000000" 917 minFrameWidth="128" maxFrameWidth="3840" 918 minFrameHeight="96" maxFrameHeight="2160" 919 minFrameRate="15" maxFrameRate="30" /> 920 921 <VideoEncoderCap name="h264" enabled="true" 922 minBitRate="64000" maxBitRate="100000000" 923 minFrameWidth="128" maxFrameWidth="3840" 924 minFrameHeight="96" maxFrameHeight="2160" 925 minFrameRate="15" maxFrameRate="30" /> 926 927 <VideoEncoderCap name="h263" enabled="true" 928 minBitRate="64000" maxBitRate="1000000" 929 minFrameWidth="128" maxFrameWidth="1920" 930 minFrameHeight="96" maxFrameHeight="1080" 931 minFrameRate="15" maxFrameRate="30" /> 932 933 <VideoEncoderCap name="m4v" enabled="true" 934 minBitRate="64000" maxBitRate="2000000" 935 minFrameWidth="128" maxFrameWidth="1920" 936 minFrameHeight="96" maxFrameHeight="1080" 937 minFrameRate="15" maxFrameRate="30" /> 938 939 <AudioEncoderCap name="aac" enabled="true" 940 minBitRate="758" maxBitRate="288000" 941 minSampleRate="8000" maxSampleRate="48000" 942 minChannels="1" maxChannels="1" /> 943 944 <AudioEncoderCap name="heaac" enabled="true" 945 minBitRate="8000" maxBitRate="64000" 946 minSampleRate="16000" maxSampleRate="48000" 947 minChannels="1" maxChannels="1" /> 948 949 <AudioEncoderCap name="aaceld" enabled="true" 950 minBitRate="16000" maxBitRate="192000" 951 minSampleRate="16000" maxSampleRate="48000" 952 minChannels="1" maxChannels="1" /> 953 954 <AudioEncoderCap name="amrwb" enabled="true" 955 minBitRate="6600" maxBitRate="23050" 956 minSampleRate="16000" maxSampleRate="16000" 957 minChannels="1" maxChannels="1" /> 958 959 <AudioEncoderCap name="amrnb" enabled="true" 960 minBitRate="5525" maxBitRate="12200" 961 minSampleRate="8000" maxSampleRate="8000" 962 minChannels="1" maxChannels="1" /> 963 964 <!-- 965 FIXME: 966 We do not check decoder capabilities at present 967 At present, we only check whether windows media is visible 968 for TEST applications. For other applications, we do 969 not perform any checks at all. 970 --> 971 <VideoDecoderCap name="wmv" enabled="false"/> 972 <AudioDecoderCap name="wma" enabled="false"/> 973</MediaSettings> 974