1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2012-2019, 2021 The Linux Foundation. All rights reserved. 3 Not a contribution. 4 Copyright (C) 2010 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<!DOCTYPE MediaSettings [ 19<!ELEMENT MediaSettings (CamcorderProfiles, 20 EncoderOutputFileFormat+, 21 VideoEncoderCap+, 22 AudioEncoderCap+, 23 VideoDecoderCap, 24 AudioDecoderCap)> 25<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> 26<!ELEMENT EncoderProfile (Video, Audio)> 27<!ATTLIST EncoderProfile quality (high|low) #REQUIRED> 28<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> 29<!ATTLIST EncoderProfile duration (30|60) #REQUIRED> 30<!ATTLIST EncoderProfile cameraId (0|1|2|3) #REQUIRED> 31<!ELEMENT Video EMPTY> 32<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED> 33<!ATTLIST Video bitRate CDATA #REQUIRED> 34<!ATTLIST Video width CDATA #REQUIRED> 35<!ATTLIST Video height CDATA #REQUIRED> 36<!ATTLIST Video frameRate CDATA #REQUIRED> 37<!ELEMENT Audio EMPTY> 38<!ATTLIST Audio codec (amrnb|amrwb|aac|lpcm) #REQUIRED> 39<!ATTLIST Audio bitRate CDATA #REQUIRED> 40<!ATTLIST Audio sampleRate CDATA #REQUIRED> 41<!ATTLIST Audio channels (1|2|6) #REQUIRED> 42<!ELEMENT ImageEncoding EMPTY> 43<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> 44<!ELEMENT ImageDecoding EMPTY> 45<!ATTLIST ImageDecoding memCap CDATA #REQUIRED> 46<!ELEMENT Camera EMPTY> 47<!ELEMENT EncoderOutputFileFormat EMPTY> 48<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED> 49<!ELEMENT VideoEncoderCap EMPTY> 50<!ATTLIST VideoEncoderCap name (hevc|h264|h263|m4v|wmv) #REQUIRED> 51<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED> 52<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED> 53<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED> 54<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED> 55<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED> 56<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED> 57<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED> 58<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED> 59<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED> 60<!ATTLIST VideoEncoderCap maxHFRFrameWidth CDATA #REQUIRED> 61<!ATTLIST VideoEncoderCap maxHFRFrameHeight CDATA #REQUIRED> 62<!ATTLIST VideoEncoderCap maxHFRMode CDATA #REQUIRED> 63<!ELEMENT AudioEncoderCap EMPTY> 64<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma|lpcm) #REQUIRED> 65<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED> 66<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED> 67<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED> 68<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED> 69<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED> 70<!ATTLIST AudioEncoderCap minChannels (1|2|6) #REQUIRED> 71<!ATTLIST AudioEncoderCap maxChannels (1|2|6) #REQUIRED> 72<!ELEMENT VideoDecoderCap EMPTY> 73<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED> 74<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED> 75<!ELEMENT AudioDecoderCap EMPTY> 76<!ATTLIST AudioDecoderCap name (wma) #REQUIRED> 77<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED> 78<!ELEMENT VideoEditorCap EMPTY> 79<!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED> 80<!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED> 81<!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED> 82<!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED> 83<!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED> 84<!ELEMENT ExportVideoProfile EMPTY> 85<!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED> 86<!ATTLIST ExportVideoProfile profile CDATA #REQUIRED> 87<!ATTLIST ExportVideoProfile level CDATA #REQUIRED> 88]> 89<!-- 90 This file is used to declare the multimedia profiles and capabilities 91 on an android-powered device. 92--> 93<MediaSettings> 94 <!-- Each camcorder profile defines a set of predefined configuration parameters --> 95 <!-- Back Camera --> 96 <CamcorderProfiles cameraId="0"> 97 98 <EncoderProfile quality="low" fileFormat="3gp" duration="30"> 99 <Video codec="h264" 100 bitRate="192000" 101 width="176" 102 height="144" 103 frameRate="30" /> 104 105 <Audio codec="amrnb" 106 bitRate="12200" 107 sampleRate="8000" 108 channels="1" /> 109 </EncoderProfile> 110 111 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 112 <Video codec="h264" 113 bitRate="42000000" 114 width="3840" 115 height="2160" 116 frameRate="30" /> 117 118 <Audio codec="aac" 119 bitRate="156000" 120 sampleRate="48000" 121 channels="2" /> 122 </EncoderProfile> 123 124 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 125 <Video codec="h264" 126 bitRate="512000" 127 width="320" 128 height="240" 129 frameRate="30" /> 130 131 <Audio codec="aac" 132 bitRate="156000" 133 sampleRate="48000" 134 channels="2" /> 135 </EncoderProfile> 136 137 <EncoderProfile quality="cif" fileFormat="3gp" duration="30"> 138 <Video codec="h264" 139 bitRate="720000" 140 width="352" 141 height="288" 142 frameRate="30" /> 143 144 <Audio codec="amrnb" 145 bitRate="12200" 146 sampleRate="8000" 147 channels="1" /> 148 </EncoderProfile> 149 150 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 151 <Video codec="h264" 152 bitRate="2000000" 153 width="720" 154 height="480" 155 frameRate="30" /> 156 157 <Audio codec="aac" 158 bitRate="156000" 159 sampleRate="48000" 160 channels="2" /> 161 </EncoderProfile> 162 163 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 164 <Video codec="h264" 165 bitRate="14000000" 166 width="1280" 167 height="720" 168 frameRate="30" /> 169 170 <Audio codec="aac" 171 bitRate="156000" 172 sampleRate="48000" 173 channels="2" /> 174 </EncoderProfile> 175 176 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 177 <Video codec="h264" 178 bitRate="20000000" 179 width="1920" 180 height="1080" 181 frameRate="30" /> 182 183 <Audio codec="aac" 184 bitRate="156000" 185 sampleRate="48000" 186 channels="2" /> 187 </EncoderProfile> 188 189 <EncoderProfile quality="4kdci" fileFormat="mp4" duration="30"> 190 <Video codec="h264" 191 bitRate="42000000" 192 width="4096" 193 height="2160" 194 frameRate="30" /> 195 196 <Audio codec="aac" 197 bitRate="156000" 198 sampleRate="48000" 199 channels="2" /> 200 </EncoderProfile> 201 202 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 203 <Video codec="h264" 204 bitRate="42000000" 205 width="3840" 206 height="2160" 207 frameRate="30" /> 208 209 <Audio codec="aac" 210 bitRate="156000" 211 sampleRate="48000" 212 channels="2" /> 213 </EncoderProfile> 214 215 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 216 <Video codec="h264" 217 bitRate="192000" 218 width="176" 219 height="144" 220 frameRate="30" /> 221 222 <Audio codec="amrnb" 223 bitRate="12200" 224 sampleRate="8000" 225 channels="1" /> 226 </EncoderProfile> 227 228 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 229 <Video codec="h264" 230 bitRate="2000000" 231 width="640" 232 height="480" 233 frameRate="30" /> 234 235 <Audio codec="aac" 236 bitRate="156000" 237 sampleRate="48000" 238 channels="2" /> 239 </EncoderProfile> 240 241 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 242 <Video codec="h264" 243 bitRate="192000" 244 width="176" 245 height="144" 246 frameRate="30" /> 247 248 <!-- audio setting is ignored --> 249 <Audio codec="amrnb" 250 bitRate="12200" 251 sampleRate="8000" 252 channels="1" /> 253 </EncoderProfile> 254 255 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 256 <Video codec="h264" 257 bitRate="42000000" 258 width="3840" 259 height="2160" 260 frameRate="30" /> 261 262 <!-- audio setting is ignored --> 263 <Audio codec="aac" 264 bitRate="156000" 265 sampleRate="48000" 266 channels="2" /> 267 </EncoderProfile> 268 269 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 270 <Video codec="h264" 271 bitRate="192000" 272 width="176" 273 height="144" 274 frameRate="30" /> 275 276 <!-- audio setting is ignored --> 277 <Audio codec="amrnb" 278 bitRate="12200" 279 sampleRate="8000" 280 channels="1" /> 281 </EncoderProfile> 282 283 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 284 <Video codec="h264" 285 bitRate="720000" 286 width="352" 287 height="288" 288 frameRate="30" /> 289 290 <!-- audio setting is ignored --> 291 <Audio codec="amrnb" 292 bitRate="12200" 293 sampleRate="8000" 294 channels="1" /> 295 </EncoderProfile> 296 297 298 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 299 <Video codec="h264" 300 bitRate="512000" 301 width="320" 302 height="240" 303 frameRate="30" /> 304 305 <!-- audio setting is ignored --> 306 <Audio codec="amrnb" 307 bitRate="12200" 308 sampleRate="8000" 309 channels="1" /> 310 </EncoderProfile> 311 312 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 313 <Video codec="h264" 314 bitRate="2000000" 315 width="640" 316 height="480" 317 frameRate="30" /> 318 319 <!-- audio setting is ignored --> 320 <Audio codec="amrnb" 321 bitRate="12200" 322 sampleRate="8000" 323 channels="1" /> 324 </EncoderProfile> 325 326 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 327 <Video codec="h264" 328 bitRate="2000000" 329 width="640" 330 height="480" 331 frameRate="30" /> 332 333 <!-- audio setting is ignored --> 334 <Audio codec="aac" 335 bitRate="156000" 336 sampleRate="48000" 337 channels="2" /> 338 </EncoderProfile> 339 340 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 341 <Video codec="h264" 342 bitRate="14000000" 343 width="1280" 344 height="720" 345 frameRate="30" /> 346 347 <!-- audio setting is ignored --> 348 <Audio codec="aac" 349 bitRate="156000" 350 sampleRate="48000" 351 channels="2" /> 352 </EncoderProfile> 353 354 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 355 <Video codec="h264" 356 bitRate="20000000" 357 width="1920" 358 height="1080" 359 frameRate="30" /> 360 361 <!-- audio setting is ignored --> 362 <Audio codec="aac" 363 bitRate="156000" 364 sampleRate="48000" 365 channels="2" /> 366 </EncoderProfile> 367 368 <EncoderProfile quality="timelapse4kdci" fileFormat="mp4" duration="30"> 369 <Video codec="h264" 370 bitRate="42000000" 371 width="4096" 372 height="2160" 373 frameRate="30" /> 374 375 <Audio codec="aac" 376 bitRate="156000" 377 sampleRate="48000" 378 channels="2" /> 379 </EncoderProfile> 380 381 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30"> 382 <Video codec="h264" 383 bitRate="42000000" 384 width="3840" 385 height="2160" 386 frameRate="30" /> 387 388 <Audio codec="aac" 389 bitRate="156000" 390 sampleRate="48000" 391 channels="2" /> 392 </EncoderProfile> 393 394 <ImageEncoding quality="95" /> 395 <ImageEncoding quality="80" /> 396 <ImageEncoding quality="70" /> 397 <ImageDecoding memCap="20000000" /> 398 399 </CamcorderProfiles> 400 <!-- Front Camera --> 401 <CamcorderProfiles cameraId="1"> 402 403 <EncoderProfile quality="low" fileFormat="3gp" duration="30"> 404 <Video codec="h264" 405 bitRate="192000" 406 width="176" 407 height="144" 408 frameRate="30" /> 409 410 <Audio codec="amrnb" 411 bitRate="12200" 412 sampleRate="8000" 413 channels="1" /> 414 </EncoderProfile> 415 416 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 417 <Video codec="h264" 418 bitRate="42000000" 419 width="3840" 420 height="2160" 421 frameRate="30" /> 422 423 <Audio codec="aac" 424 bitRate="156000" 425 sampleRate="48000" 426 channels="2" /> 427 </EncoderProfile> 428 429 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 430 <Video codec="h264" 431 bitRate="512000" 432 width="320" 433 height="240" 434 frameRate="30" /> 435 436 <Audio codec="aac" 437 bitRate="156000" 438 sampleRate="48000" 439 channels="2" /> 440 </EncoderProfile> 441 442 <EncoderProfile quality="cif" fileFormat="3gp" duration="30"> 443 <Video codec="h264" 444 bitRate="720000" 445 width="352" 446 height="288" 447 frameRate="30" /> 448 449 <Audio codec="amrnb" 450 bitRate="12200" 451 sampleRate="8000" 452 channels="1" /> 453 </EncoderProfile> 454 455 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 456 <Video codec="h264" 457 bitRate="2000000" 458 width="720" 459 height="480" 460 frameRate="30" /> 461 462 <Audio codec="aac" 463 bitRate="156000" 464 sampleRate="48000" 465 channels="2" /> 466 </EncoderProfile> 467 468 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 469 <Video codec="h264" 470 bitRate="14000000" 471 width="1280" 472 height="720" 473 frameRate="30" /> 474 475 <Audio codec="aac" 476 bitRate="156000" 477 sampleRate="48000" 478 channels="2" /> 479 </EncoderProfile> 480 481 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 482 <Video codec="h264" 483 bitRate="20000000" 484 width="1920" 485 height="1080" 486 frameRate="30" /> 487 488 <Audio codec="aac" 489 bitRate="156000" 490 sampleRate="48000" 491 channels="2" /> 492 </EncoderProfile> 493 494 <EncoderProfile quality="4kdci" fileFormat="mp4" duration="30"> 495 <Video codec="h264" 496 bitRate="42000000" 497 width="4096" 498 height="2160" 499 frameRate="30" /> 500 <Audio codec="aac" 501 bitRate="156000" 502 sampleRate="48000" 503 channels="2" /> 504 </EncoderProfile> 505 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 506 <Video codec="h264" 507 bitRate="42000000" 508 width="3840" 509 height="2160" 510 frameRate="30" /> 511 <Audio codec="aac" 512 bitRate="156000" 513 sampleRate="48000" 514 channels="2" /> 515 </EncoderProfile> 516 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 517 <Video codec="h264" 518 bitRate="192000" 519 width="176" 520 height="144" 521 frameRate="30" /> 522 523 <Audio codec="amrnb" 524 bitRate="12200" 525 sampleRate="8000" 526 channels="1" /> 527 </EncoderProfile> 528 529 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 530 <Video codec="h264" 531 bitRate="2000000" 532 width="640" 533 height="480" 534 frameRate="30" /> 535 536 <Audio codec="aac" 537 bitRate="156000" 538 sampleRate="48000" 539 channels="2" /> 540 </EncoderProfile> 541 542 <!-- TIMELAPSE profiles for front camera --> 543 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 544 <Video codec="h264" 545 bitRate="192000" 546 width="176" 547 height="144" 548 frameRate="30" /> 549 550 <!-- audio setting is ignored --> 551 <Audio codec="amrnb" 552 bitRate="12200" 553 sampleRate="8000" 554 channels="1" /> 555 </EncoderProfile> 556 557 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 558 <Video codec="h264" 559 bitRate="42000000" 560 width="3840" 561 height="2160" 562 frameRate="30" /> 563 564 <!-- audio setting is ignored --> 565 <Audio codec="aac" 566 bitRate="156000" 567 sampleRate="48000" 568 channels="2" /> 569 </EncoderProfile> 570 571 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 572 <Video codec="h264" 573 bitRate="192000" 574 width="176" 575 height="144" 576 frameRate="30" /> 577 578 <!-- audio setting is ignored --> 579 <Audio codec="amrnb" 580 bitRate="12200" 581 sampleRate="8000" 582 channels="1" /> 583 </EncoderProfile> 584 585 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 586 <Video codec="h264" 587 bitRate="1200000" 588 width="352" 589 height="288" 590 frameRate="30" /> 591 592 <!-- audio setting is ignored --> 593 <Audio codec="aac" 594 bitRate="96000" 595 sampleRate="48000" 596 channels="1" /> 597 </EncoderProfile> 598 599 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 600 <Video codec="h264" 601 bitRate="512000" 602 width="320" 603 height="240" 604 frameRate="30" /> 605 606 <!-- audio setting is ignored --> 607 <Audio codec="amrnb" 608 bitRate="12200" 609 sampleRate="8000" 610 channels="1" /> 611 </EncoderProfile> 612 613 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 614 <Video codec="h264" 615 bitRate="2000000" 616 width="640" 617 height="480" 618 frameRate="30" /> 619 620 <!-- audio setting is ignored --> 621 <Audio codec="amrnb" 622 bitRate="12200" 623 sampleRate="8000" 624 channels="1" /> 625 </EncoderProfile> 626 627 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 628 <Video codec="h264" 629 bitRate="5000000" 630 width="720" 631 height="480" 632 frameRate="30" /> 633 634 <!-- audio setting is ignored --> 635 <Audio codec="aac" 636 bitRate="96000" 637 sampleRate="48000" 638 channels="1" /> 639 </EncoderProfile> 640 641 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 642 <Video codec="h264" 643 bitRate="8000000" 644 width="1280" 645 height="720" 646 frameRate="30" /> 647 648 <!-- audio setting is ignored --> 649 <Audio codec="aac" 650 bitRate="96000" 651 sampleRate="48000" 652 channels="1" /> 653 </EncoderProfile> 654 655 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 656 <Video codec="h264" 657 bitRate="20000000" 658 width="1920" 659 height="1080" 660 frameRate="30" /> 661 662 <!-- audio setting is ignored --> 663 <Audio codec="aac" 664 bitRate="156000" 665 sampleRate="48000" 666 channels="2" /> 667 </EncoderProfile> 668 <EncoderProfile quality="timelapse4kdci" fileFormat="mp4" duration="30"> 669 <Video codec="h264" 670 bitRate="42000000" 671 width="4096" 672 height="2160" 673 frameRate="30" /> 674 <Audio codec="aac" 675 bitRate="156000" 676 sampleRate="48000" 677 channels="2" /> 678 </EncoderProfile> 679 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30"> 680 <Video codec="h264" 681 bitRate="42000000" 682 width="3840" 683 height="2160" 684 frameRate="30" /> 685 <Audio codec="aac" 686 bitRate="156000" 687 sampleRate="48000" 688 channels="2" /> 689 </EncoderProfile> 690 691 <ImageEncoding quality="95" /> 692 <ImageEncoding quality="80" /> 693 <ImageEncoding quality="70" /> 694 <ImageDecoding memCap="20000000" /> 695 696 </CamcorderProfiles> 697 698 <!-- Monosensor Camera --> 699 <CamcorderProfiles cameraId="2"> 700 701 <EncoderProfile quality="low" fileFormat="3gp" duration="30"> 702 <Video codec="h264" 703 bitRate="192000" 704 width="176" 705 height="144" 706 frameRate="30" /> 707 708 <Audio codec="amrnb" 709 bitRate="12200" 710 sampleRate="8000" 711 channels="1" /> 712 </EncoderProfile> 713 714 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 715 <Video codec="h264" 716 bitRate="42000000" 717 width="2560" 718 height="1440" 719 frameRate="30" /> 720 721 <Audio codec="aac" 722 bitRate="156000" 723 sampleRate="48000" 724 channels="2" /> 725 </EncoderProfile> 726 727 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 728 <Video codec="h264" 729 bitRate="512000" 730 width="320" 731 height="240" 732 frameRate="30" /> 733 734 <Audio codec="aac" 735 bitRate="156000" 736 sampleRate="48000" 737 channels="2" /> 738 </EncoderProfile> 739 740 <EncoderProfile quality="cif" fileFormat="3gp" duration="30"> 741 <Video codec="h264" 742 bitRate="720000" 743 width="352" 744 height="288" 745 frameRate="30" /> 746 747 <Audio codec="amrnb" 748 bitRate="12200" 749 sampleRate="8000" 750 channels="1" /> 751 </EncoderProfile> 752 753 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 754 <Video codec="h264" 755 bitRate="2000000" 756 width="720" 757 height="480" 758 frameRate="30" /> 759 760 <Audio codec="aac" 761 bitRate="156000" 762 sampleRate="48000" 763 channels="2" /> 764 </EncoderProfile> 765 766 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 767 <Video codec="h264" 768 bitRate="14000000" 769 width="1280" 770 height="720" 771 frameRate="30" /> 772 773 <Audio codec="aac" 774 bitRate="156000" 775 sampleRate="48000" 776 channels="2" /> 777 </EncoderProfile> 778 779 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 780 <Video codec="h264" 781 bitRate="20000000" 782 width="1920" 783 height="1080" 784 frameRate="30" /> 785 786 <Audio codec="aac" 787 bitRate="156000" 788 sampleRate="48000" 789 channels="2" /> 790 </EncoderProfile> 791 792 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 793 <Video codec="h264" 794 bitRate="192000" 795 width="176" 796 height="144" 797 frameRate="30" /> 798 799 <Audio codec="amrnb" 800 bitRate="12200" 801 sampleRate="8000" 802 channels="1" /> 803 </EncoderProfile> 804 805 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 806 <Video codec="h264" 807 bitRate="2000000" 808 width="640" 809 height="480" 810 frameRate="30" /> 811 812 <Audio codec="aac" 813 bitRate="156000" 814 sampleRate="48000" 815 channels="2" /> 816 </EncoderProfile> 817 818 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 819 <Video codec="h264" 820 bitRate="192000" 821 width="176" 822 height="144" 823 frameRate="30" /> 824 825 <!-- audio setting is ignored --> 826 <Audio codec="amrnb" 827 bitRate="12200" 828 sampleRate="8000" 829 channels="1" /> 830 </EncoderProfile> 831 832 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 833 <Video codec="h264" 834 bitRate="42000000" 835 width="2560" 836 height="1440" 837 frameRate="30" /> 838 839 <!-- audio setting is ignored --> 840 <Audio codec="aac" 841 bitRate="156000" 842 sampleRate="48000" 843 channels="2" /> 844 </EncoderProfile> 845 846 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 847 <Video codec="h264" 848 bitRate="192000" 849 width="176" 850 height="144" 851 frameRate="30" /> 852 853 <!-- audio setting is ignored --> 854 <Audio codec="amrnb" 855 bitRate="12200" 856 sampleRate="8000" 857 channels="1" /> 858 </EncoderProfile> 859 860 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 861 <Video codec="h264" 862 bitRate="720000" 863 width="352" 864 height="288" 865 frameRate="30" /> 866 867 <!-- audio setting is ignored --> 868 <Audio codec="amrnb" 869 bitRate="12200" 870 sampleRate="8000" 871 channels="1" /> 872 </EncoderProfile> 873 874 875 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 876 <Video codec="h264" 877 bitRate="512000" 878 width="320" 879 height="240" 880 frameRate="30" /> 881 882 <!-- audio setting is ignored --> 883 <Audio codec="amrnb" 884 bitRate="12200" 885 sampleRate="8000" 886 channels="1" /> 887 </EncoderProfile> 888 889 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 890 <Video codec="h264" 891 bitRate="2000000" 892 width="640" 893 height="480" 894 frameRate="30" /> 895 896 <!-- audio setting is ignored --> 897 <Audio codec="amrnb" 898 bitRate="12200" 899 sampleRate="8000" 900 channels="1" /> 901 </EncoderProfile> 902 903 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 904 <Video codec="h264" 905 bitRate="2000000" 906 width="640" 907 height="480" 908 frameRate="30" /> 909 910 <!-- audio setting is ignored --> 911 <Audio codec="aac" 912 bitRate="156000" 913 sampleRate="48000" 914 channels="2" /> 915 </EncoderProfile> 916 917 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 918 <Video codec="h264" 919 bitRate="14000000" 920 width="1280" 921 height="720" 922 frameRate="30" /> 923 924 <!-- audio setting is ignored --> 925 <Audio codec="aac" 926 bitRate="156000" 927 sampleRate="48000" 928 channels="2" /> 929 </EncoderProfile> 930 931 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 932 <Video codec="h264" 933 bitRate="20000000" 934 width="1920" 935 height="1080" 936 frameRate="30" /> 937 938 <!-- audio setting is ignored --> 939 <Audio codec="aac" 940 bitRate="156000" 941 sampleRate="48000" 942 channels="2" /> 943 </EncoderProfile> 944 945 <ImageEncoding quality="95" /> 946 <ImageEncoding quality="80" /> 947 <ImageEncoding quality="70" /> 948 <ImageDecoding memCap="20000000" /> 949 950 </CamcorderProfiles> 951 <!-- Camera ID 3 --> 952 <CamcorderProfiles cameraId="3"> 953 954 <EncoderProfile quality="low" fileFormat="3gp" duration="30"> 955 <Video codec="h264" 956 bitRate="192000" 957 width="176" 958 height="144" 959 frameRate="30" /> 960 961 <Audio codec="amrnb" 962 bitRate="12200" 963 sampleRate="8000" 964 channels="1" /> 965 </EncoderProfile> 966 967 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 968 <Video codec="h264" 969 bitRate="42000000" 970 width="3840" 971 height="2160" 972 frameRate="30" /> 973 974 <Audio codec="aac" 975 bitRate="156000" 976 sampleRate="48000" 977 channels="2" /> 978 </EncoderProfile> 979 980 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 981 <Video codec="h264" 982 bitRate="512000" 983 width="320" 984 height="240" 985 frameRate="30" /> 986 987 <Audio codec="aac" 988 bitRate="156000" 989 sampleRate="48000" 990 channels="2" /> 991 </EncoderProfile> 992 993 <EncoderProfile quality="cif" fileFormat="3gp" duration="30"> 994 <Video codec="h264" 995 bitRate="720000" 996 width="352" 997 height="288" 998 frameRate="30" /> 999 1000 <Audio codec="amrnb" 1001 bitRate="12200" 1002 sampleRate="8000" 1003 channels="1" /> 1004 </EncoderProfile> 1005 1006 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 1007 <Video codec="h264" 1008 bitRate="2000000" 1009 width="720" 1010 height="480" 1011 frameRate="30" /> 1012 1013 <Audio codec="aac" 1014 bitRate="156000" 1015 sampleRate="48000" 1016 channels="2" /> 1017 </EncoderProfile> 1018 1019 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 1020 <Video codec="h264" 1021 bitRate="14000000" 1022 width="1280" 1023 height="720" 1024 frameRate="30" /> 1025 1026 <Audio codec="aac" 1027 bitRate="156000" 1028 sampleRate="48000" 1029 channels="2" /> 1030 </EncoderProfile> 1031 1032 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 1033 <Video codec="h264" 1034 bitRate="20000000" 1035 width="1920" 1036 height="1080" 1037 frameRate="30" /> 1038 1039 <Audio codec="aac" 1040 bitRate="156000" 1041 sampleRate="48000" 1042 channels="2" /> 1043 </EncoderProfile> 1044 1045 <EncoderProfile quality="4kdci" fileFormat="mp4" duration="30"> 1046 <Video codec="h264" 1047 bitRate="42000000" 1048 width="4096" 1049 height="2160" 1050 frameRate="30" /> 1051 1052 <Audio codec="aac" 1053 bitRate="156000" 1054 sampleRate="48000" 1055 channels="2" /> 1056 </EncoderProfile> 1057 1058 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 1059 <Video codec="h264" 1060 bitRate="42000000" 1061 width="3840" 1062 height="2160" 1063 frameRate="30" /> 1064 1065 <Audio codec="aac" 1066 bitRate="156000" 1067 sampleRate="48000" 1068 channels="2" /> 1069 </EncoderProfile> 1070 1071 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 1072 <Video codec="h264" 1073 bitRate="192000" 1074 width="176" 1075 height="144" 1076 frameRate="30" /> 1077 1078 <Audio codec="amrnb" 1079 bitRate="12200" 1080 sampleRate="8000" 1081 channels="1" /> 1082 </EncoderProfile> 1083 1084 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 1085 <Video codec="h264" 1086 bitRate="2000000" 1087 width="640" 1088 height="480" 1089 frameRate="30" /> 1090 1091 <Audio codec="aac" 1092 bitRate="156000" 1093 sampleRate="48000" 1094 channels="2" /> 1095 </EncoderProfile> 1096 1097 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 1098 <Video codec="h264" 1099 bitRate="192000" 1100 width="176" 1101 height="144" 1102 frameRate="30" /> 1103 1104 <!-- audio setting is ignored --> 1105 <Audio codec="amrnb" 1106 bitRate="12200" 1107 sampleRate="8000" 1108 channels="1" /> 1109 </EncoderProfile> 1110 1111 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 1112 <Video codec="h264" 1113 bitRate="42000000" 1114 width="3840" 1115 height="2160" 1116 frameRate="30" /> 1117 1118 <!-- audio setting is ignored --> 1119 <Audio codec="aac" 1120 bitRate="156000" 1121 sampleRate="48000" 1122 channels="2" /> 1123 </EncoderProfile> 1124 1125 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 1126 <Video codec="h264" 1127 bitRate="192000" 1128 width="176" 1129 height="144" 1130 frameRate="30" /> 1131 1132 <!-- audio setting is ignored --> 1133 <Audio codec="amrnb" 1134 bitRate="12200" 1135 sampleRate="8000" 1136 channels="1" /> 1137 </EncoderProfile> 1138 1139 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 1140 <Video codec="h264" 1141 bitRate="720000" 1142 width="352" 1143 height="288" 1144 frameRate="30" /> 1145 1146 <!-- audio setting is ignored --> 1147 <Audio codec="amrnb" 1148 bitRate="12200" 1149 sampleRate="8000" 1150 channels="1" /> 1151 </EncoderProfile> 1152 1153 1154 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 1155 <Video codec="h264" 1156 bitRate="512000" 1157 width="320" 1158 height="240" 1159 frameRate="30" /> 1160 1161 <!-- audio setting is ignored --> 1162 <Audio codec="amrnb" 1163 bitRate="12200" 1164 sampleRate="8000" 1165 channels="1" /> 1166 </EncoderProfile> 1167 1168 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 1169 <Video codec="h264" 1170 bitRate="2000000" 1171 width="640" 1172 height="480" 1173 frameRate="30" /> 1174 1175 <!-- audio setting is ignored --> 1176 <Audio codec="amrnb" 1177 bitRate="12200" 1178 sampleRate="8000" 1179 channels="1" /> 1180 </EncoderProfile> 1181 1182 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 1183 <Video codec="h264" 1184 bitRate="2000000" 1185 width="640" 1186 height="480" 1187 frameRate="30" /> 1188 1189 <!-- audio setting is ignored --> 1190 <Audio codec="aac" 1191 bitRate="156000" 1192 sampleRate="48000" 1193 channels="2" /> 1194 </EncoderProfile> 1195 1196 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 1197 <Video codec="h264" 1198 bitRate="14000000" 1199 width="1280" 1200 height="720" 1201 frameRate="30" /> 1202 1203 <!-- audio setting is ignored --> 1204 <Audio codec="aac" 1205 bitRate="156000" 1206 sampleRate="48000" 1207 channels="2" /> 1208 </EncoderProfile> 1209 1210 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 1211 <Video codec="h264" 1212 bitRate="20000000" 1213 width="1920" 1214 height="1080" 1215 frameRate="30" /> 1216 1217 <!-- audio setting is ignored --> 1218 <Audio codec="aac" 1219 bitRate="156000" 1220 sampleRate="48000" 1221 channels="2" /> 1222 </EncoderProfile> 1223 1224 <EncoderProfile quality="timelapse4kdci" fileFormat="mp4" duration="30"> 1225 <Video codec="h264" 1226 bitRate="42000000" 1227 width="4096" 1228 height="2160" 1229 frameRate="30" /> 1230 1231 <Audio codec="aac" 1232 bitRate="156000" 1233 sampleRate="48000" 1234 channels="2" /> 1235 </EncoderProfile> 1236 1237 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30"> 1238 <Video codec="h264" 1239 bitRate="42000000" 1240 width="3840" 1241 height="2160" 1242 frameRate="30" /> 1243 1244 <Audio codec="aac" 1245 bitRate="156000" 1246 sampleRate="48000" 1247 channels="2" /> 1248 </EncoderProfile> 1249 1250 <ImageEncoding quality="95" /> 1251 <ImageEncoding quality="80" /> 1252 <ImageEncoding quality="70" /> 1253 <ImageDecoding memCap="20000000" /> 1254 1255 </CamcorderProfiles> 1256 1257 <EncoderOutputFileFormat name="3gp" /> 1258 <EncoderOutputFileFormat name="mp4" /> 1259 1260 <!-- 1261 If a codec is not enabled, it is invisible to the applications 1262 In other words, the applications won't be able to use the codec 1263 or query the capabilities of the codec at all if it is disabled 1264 --> 1265 <VideoEncoderCap name="h264" enabled="true" 1266 minBitRate="64000" maxBitRate="42000000" 1267 minFrameWidth="176" maxFrameWidth="4096" 1268 minFrameHeight="144" maxFrameHeight="2160" 1269 minFrameRate="15" maxFrameRate="30" 1270 maxHFRFrameWidth="1920" maxHFRFrameHeight="1080" 1271 maxHFRMode="120" /> 1272 1273 <VideoEncoderCap name="h263" enabled="true" 1274 minBitRate="64000" maxBitRate="2000000" 1275 minFrameWidth="176" maxFrameWidth="800" 1276 minFrameHeight="144" maxFrameHeight="480" 1277 minFrameRate="15" maxFrameRate="30" 1278 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 1279 maxHFRMode="0" /> 1280 1281 <VideoEncoderCap name="m4v" enabled="true" 1282 minBitRate="64000" maxBitRate="8000000" 1283 minFrameWidth="176" maxFrameWidth="800" 1284 minFrameHeight="144" maxFrameHeight="480" 1285 minFrameRate="15" maxFrameRate="30" 1286 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 1287 maxHFRMode="0" /> 1288 1289 <VideoEncoderCap name="hevc" enabled="true" 1290 minBitRate="64000" maxBitRate="100000000" 1291 minFrameWidth="176" maxFrameWidth="4096" 1292 minFrameHeight="144" maxFrameHeight="2160" 1293 minFrameRate="15" maxFrameRate="30" 1294 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 1295 maxHFRMode="0" /> 1296 1297 <AudioEncoderCap name="aac" enabled="true" 1298 minBitRate="8000" maxBitRate="96000" 1299 minSampleRate="8000" maxSampleRate="48000" 1300 minChannels="1" maxChannels="6" /> 1301 1302 <AudioEncoderCap name="heaac" enabled="true" 1303 minBitRate="8000" maxBitRate="64000" 1304 minSampleRate="16000" maxSampleRate="48000" 1305 minChannels="1" maxChannels="1" /> 1306 1307 <AudioEncoderCap name="aaceld" enabled="true" 1308 minBitRate="16000" maxBitRate="192000" 1309 minSampleRate="16000" maxSampleRate="48000" 1310 minChannels="1" maxChannels="1" /> 1311 1312 <AudioEncoderCap name="amrwb" enabled="true" 1313 minBitRate="6600" maxBitRate="23850" 1314 minSampleRate="16000" maxSampleRate="16000" 1315 minChannels="1" maxChannels="1" /> 1316 1317 <AudioEncoderCap name="amrnb" enabled="true" 1318 minBitRate="5525" maxBitRate="12200" 1319 minSampleRate="8000" maxSampleRate="8000" 1320 minChannels="1" maxChannels="1" /> 1321 1322 <AudioEncoderCap name="lpcm" enabled="true" 1323 minBitRate="768000" maxBitRate="4608000" 1324 minSampleRate="8000" maxSampleRate="48000" 1325 minChannels="1" maxChannels="6" /> 1326 1327 <!-- 1328 FIXME: 1329 We do not check decoder capabilities at present 1330 At present, we only check whether windows media is visible 1331 for TEST applications. For other applications, we do 1332 not perform any checks at all. 1333 --> 1334 <VideoDecoderCap name="wmv" enabled="true"/> 1335 <AudioDecoderCap name="wma" enabled="true"/> 1336 1337 <!-- 1338 The VideoEditor Capability configuration: 1339 - maxInputFrameWidth: maximum video width of imported video clip. 1340 - maxInputFrameHeight: maximum video height of imported video clip. 1341 - maxOutputFrameWidth: maximum video width of exported video clip. 1342 - maxOutputFrameHeight: maximum video height of exported video clip. 1343 - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, 1344 used to limit the amount of memory for prefetched YUV frames. 1345 For this platform, it allows maximum 30MB(3MB per 1080p frame x 10 1346 frames) memory. 1347 --> 1348 <VideoEditorCap maxInputFrameWidth="1920" 1349 maxInputFrameHeight="1088" maxOutputFrameWidth="1920" 1350 maxOutputFrameHeight="1088" maxPrefetchYUVFrames="10"/> 1351 <!-- 1352 The VideoEditor Export codec profile and level values 1353 correspond to the values in OMX_Video.h. 1354 E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline 1355 and level 4096 means OMX_VIDEO_AVCLevel41. 1356 Please note that the values are in decimal. 1357 These values are for video encoder. 1358 --> 1359 <!-- 1360 Codec = h.264, Baseline profile, level 4.0 1361 --> 1362 <ExportVideoProfile name="h264" profile= "1" level="2048"/> 1363 <!-- 1364 Codec = h.263, Baseline profile, level 70 1365 --> 1366 <ExportVideoProfile name="h263" profile= "1" level="128"/> 1367 <!-- 1368 Codec = mpeg4, Simple profile, level 5 1369 --> 1370 <ExportVideoProfile name="m4v" profile= "1" level="128"/> 1371</MediaSettings> 1372