1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 The Android Open Source Project 3 Copyright (C) 2012-2018 The Linux Foundation. All rights reserved. 4 Not a contribution. 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) #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="qhd" fileFormat="mp4" duration="30"> 190 <Video codec="h264" 191 bitRate="42000000" 192 width="2560" 193 height="1440" 194 frameRate="30" /> 195 196 <Audio codec="aac" 197 bitRate="156000" 198 sampleRate="48000" 199 channels="2" /> 200 </EncoderProfile> 201 202 <EncoderProfile quality="2k" fileFormat="mp4" duration="30"> 203 <Video codec="h264" 204 bitRate="20000000" 205 width="2048" 206 height="1080" 207 frameRate="30" /> 208 209 <Audio codec="aac" 210 bitRate="156000" 211 sampleRate="48000" 212 channels="2" /> 213 </EncoderProfile> 214 215 <EncoderProfile quality="2160p" fileFormat="mp4" duration="30"> 216 <Video codec="h264" 217 bitRate="42000000" 218 width="3840" 219 height="2160" 220 frameRate="30" /> 221 222 <Audio codec="aac" 223 bitRate="156000" 224 sampleRate="48000" 225 channels="2" /> 226 </EncoderProfile> 227 228 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 229 <Video codec="h264" 230 bitRate="192000" 231 width="176" 232 height="144" 233 frameRate="30" /> 234 235 <Audio codec="amrnb" 236 bitRate="12200" 237 sampleRate="8000" 238 channels="1" /> 239 </EncoderProfile> 240 241 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 242 <Video codec="h264" 243 bitRate="2000000" 244 width="640" 245 height="480" 246 frameRate="30" /> 247 248 <Audio codec="aac" 249 bitRate="156000" 250 sampleRate="48000" 251 channels="2" /> 252 </EncoderProfile> 253 254 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 255 <Video codec="h264" 256 bitRate="192000" 257 width="176" 258 height="144" 259 frameRate="30" /> 260 261 <!-- audio setting is ignored --> 262 <Audio codec="amrnb" 263 bitRate="12200" 264 sampleRate="8000" 265 channels="1" /> 266 </EncoderProfile> 267 268 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 269 <Video codec="h264" 270 bitRate="42000000" 271 width="3840" 272 height="2160" 273 frameRate="30" /> 274 275 <!-- audio setting is ignored --> 276 <Audio codec="aac" 277 bitRate="156000" 278 sampleRate="48000" 279 channels="2" /> 280 </EncoderProfile> 281 282 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 283 <Video codec="h264" 284 bitRate="192000" 285 width="176" 286 height="144" 287 frameRate="30" /> 288 289 <!-- audio setting is ignored --> 290 <Audio codec="amrnb" 291 bitRate="12200" 292 sampleRate="8000" 293 channels="1" /> 294 </EncoderProfile> 295 296 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 297 <Video codec="h264" 298 bitRate="720000" 299 width="352" 300 height="288" 301 frameRate="30" /> 302 303 <!-- audio setting is ignored --> 304 <Audio codec="amrnb" 305 bitRate="12200" 306 sampleRate="8000" 307 channels="1" /> 308 </EncoderProfile> 309 310 311 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 312 <Video codec="h264" 313 bitRate="512000" 314 width="320" 315 height="240" 316 frameRate="30" /> 317 318 <!-- audio setting is ignored --> 319 <Audio codec="amrnb" 320 bitRate="12200" 321 sampleRate="8000" 322 channels="1" /> 323 </EncoderProfile> 324 325 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 326 <Video codec="h264" 327 bitRate="2000000" 328 width="640" 329 height="480" 330 frameRate="30" /> 331 332 <!-- audio setting is ignored --> 333 <Audio codec="amrnb" 334 bitRate="12200" 335 sampleRate="8000" 336 channels="1" /> 337 </EncoderProfile> 338 339 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 340 <Video codec="h264" 341 bitRate="2000000" 342 width="640" 343 height="480" 344 frameRate="30" /> 345 346 <!-- audio setting is ignored --> 347 <Audio codec="aac" 348 bitRate="156000" 349 sampleRate="48000" 350 channels="2" /> 351 </EncoderProfile> 352 353 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 354 <Video codec="h264" 355 bitRate="14000000" 356 width="1280" 357 height="720" 358 frameRate="30" /> 359 360 <!-- audio setting is ignored --> 361 <Audio codec="aac" 362 bitRate="156000" 363 sampleRate="48000" 364 channels="2" /> 365 </EncoderProfile> 366 367 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 368 <Video codec="h264" 369 bitRate="20000000" 370 width="1920" 371 height="1080" 372 frameRate="30" /> 373 374 <!-- audio setting is ignored --> 375 <Audio codec="aac" 376 bitRate="156000" 377 sampleRate="48000" 378 channels="2" /> 379 </EncoderProfile> 380 381 <EncoderProfile quality="timelapseqhd" fileFormat="mp4" duration="30"> 382 <Video codec="h264" 383 bitRate="42000000" 384 width="2560" 385 height="1440" 386 frameRate="30" /> 387 388 <!-- audio setting is ignored --> 389 <Audio codec="aac" 390 bitRate="156000" 391 sampleRate="48000" 392 channels="2" /> 393 </EncoderProfile> 394 395 <EncoderProfile quality="timelapse2k" fileFormat="mp4" duration="30"> 396 <Video codec="h264" 397 bitRate="20000000" 398 width="2048" 399 height="1080" 400 frameRate="30" /> 401 402 <!-- audio setting is ignored --> 403 <Audio codec="aac" 404 bitRate="156000" 405 sampleRate="48000" 406 channels="2" /> 407 </EncoderProfile> 408 409 <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30"> 410 <Video codec="h264" 411 bitRate="42000000" 412 width="3840" 413 height="2160" 414 frameRate="30" /> 415 416 <Audio codec="aac" 417 bitRate="156000" 418 sampleRate="48000" 419 channels="2" /> 420 </EncoderProfile> 421 422 <ImageEncoding quality="95" /> 423 <ImageEncoding quality="80" /> 424 <ImageEncoding quality="70" /> 425 <ImageDecoding memCap="20000000" /> 426 427 </CamcorderProfiles> 428 <!-- Front Camera --> 429 <CamcorderProfiles cameraId="1"> 430 431 <EncoderProfile quality="low" fileFormat="3gp" duration="30"> 432 <Video codec="h264" 433 bitRate="192000" 434 width="176" 435 height="144" 436 frameRate="30" /> 437 438 <Audio codec="amrnb" 439 bitRate="12200" 440 sampleRate="8000" 441 channels="1" /> 442 </EncoderProfile> 443 444 <EncoderProfile quality="high" fileFormat="mp4" duration="30"> 445 <Video codec="h264" 446 bitRate="20000000" 447 width="1920" 448 height="1080" 449 frameRate="30" /> 450 451 <Audio codec="aac" 452 bitRate="156000" 453 sampleRate="48000" 454 channels="2" /> 455 </EncoderProfile> 456 457 <EncoderProfile quality="qvga" fileFormat="mp4" duration="60"> 458 <Video codec="h264" 459 bitRate="512000" 460 width="320" 461 height="240" 462 frameRate="30" /> 463 464 <Audio codec="aac" 465 bitRate="156000" 466 sampleRate="48000" 467 channels="2" /> 468 </EncoderProfile> 469 470 <EncoderProfile quality="cif" fileFormat="3gp" duration="30"> 471 <Video codec="h264" 472 bitRate="720000" 473 width="352" 474 height="288" 475 frameRate="30" /> 476 477 <Audio codec="amrnb" 478 bitRate="12200" 479 sampleRate="8000" 480 channels="1" /> 481 </EncoderProfile> 482 483 <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> 484 <Video codec="h264" 485 bitRate="2000000" 486 width="720" 487 height="480" 488 frameRate="30" /> 489 490 <Audio codec="aac" 491 bitRate="156000" 492 sampleRate="48000" 493 channels="2" /> 494 </EncoderProfile> 495 496 <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> 497 <Video codec="h264" 498 bitRate="14000000" 499 width="1280" 500 height="720" 501 frameRate="30" /> 502 503 <Audio codec="aac" 504 bitRate="156000" 505 sampleRate="48000" 506 channels="2" /> 507 </EncoderProfile> 508 509 <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> 510 <Video codec="h264" 511 bitRate="20000000" 512 width="1920" 513 height="1080" 514 frameRate="30" /> 515 516 <Audio codec="aac" 517 bitRate="156000" 518 sampleRate="48000" 519 channels="2" /> 520 </EncoderProfile> 521 522 <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> 523 <Video codec="h264" 524 bitRate="192000" 525 width="176" 526 height="144" 527 frameRate="30" /> 528 529 <Audio codec="amrnb" 530 bitRate="12200" 531 sampleRate="8000" 532 channels="1" /> 533 </EncoderProfile> 534 535 <EncoderProfile quality="vga" fileFormat="mp4" duration="30"> 536 <Video codec="h264" 537 bitRate="2000000" 538 width="640" 539 height="480" 540 frameRate="30" /> 541 542 <Audio codec="aac" 543 bitRate="156000" 544 sampleRate="48000" 545 channels="2" /> 546 </EncoderProfile> 547 548 <!-- TIMELAPSE profiles for front camera --> 549 <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30"> 550 <Video codec="h264" 551 bitRate="192000" 552 width="176" 553 height="144" 554 frameRate="30" /> 555 556 <!-- audio setting is ignored --> 557 <Audio codec="amrnb" 558 bitRate="12200" 559 sampleRate="8000" 560 channels="1" /> 561 </EncoderProfile> 562 563 <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30"> 564 <Video codec="h264" 565 bitRate="20000000" 566 width="1920" 567 height="1080" 568 frameRate="30" /> 569 570 <!-- audio setting is ignored --> 571 <Audio codec="aac" 572 bitRate="156000" 573 sampleRate="48000" 574 channels="2" /> 575 </EncoderProfile> 576 577 <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30"> 578 <Video codec="h264" 579 bitRate="192000" 580 width="176" 581 height="144" 582 frameRate="30" /> 583 584 <!-- audio setting is ignored --> 585 <Audio codec="amrnb" 586 bitRate="12200" 587 sampleRate="8000" 588 channels="1" /> 589 </EncoderProfile> 590 591 <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> 592 <Video codec="h264" 593 bitRate="1200000" 594 width="352" 595 height="288" 596 frameRate="30" /> 597 598 <!-- audio setting is ignored --> 599 <Audio codec="aac" 600 bitRate="96000" 601 sampleRate="48000" 602 channels="1" /> 603 </EncoderProfile> 604 605 <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30"> 606 <Video codec="h264" 607 bitRate="512000" 608 width="320" 609 height="240" 610 frameRate="30" /> 611 612 <!-- audio setting is ignored --> 613 <Audio codec="amrnb" 614 bitRate="12200" 615 sampleRate="8000" 616 channels="1" /> 617 </EncoderProfile> 618 619 <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30"> 620 <Video codec="h264" 621 bitRate="2000000" 622 width="640" 623 height="480" 624 frameRate="30" /> 625 626 <!-- audio setting is ignored --> 627 <Audio codec="amrnb" 628 bitRate="12200" 629 sampleRate="8000" 630 channels="1" /> 631 </EncoderProfile> 632 633 <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30"> 634 <Video codec="h264" 635 bitRate="5000000" 636 width="720" 637 height="480" 638 frameRate="30" /> 639 640 <!-- audio setting is ignored --> 641 <Audio codec="aac" 642 bitRate="96000" 643 sampleRate="48000" 644 channels="1" /> 645 </EncoderProfile> 646 647 <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> 648 <Video codec="h264" 649 bitRate="8000000" 650 width="1280" 651 height="720" 652 frameRate="30" /> 653 654 <!-- audio setting is ignored --> 655 <Audio codec="aac" 656 bitRate="96000" 657 sampleRate="48000" 658 channels="1" /> 659 </EncoderProfile> 660 661 <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> 662 <Video codec="h264" 663 bitRate="20000000" 664 width="1920" 665 height="1080" 666 frameRate="30" /> 667 668 <!-- audio setting is ignored --> 669 <Audio codec="aac" 670 bitRate="156000" 671 sampleRate="48000" 672 channels="2" /> 673 </EncoderProfile> 674 675 <ImageEncoding quality="95" /> 676 <ImageEncoding quality="80" /> 677 <ImageEncoding quality="70" /> 678 <ImageDecoding memCap="20000000" /> 679 680 </CamcorderProfiles> 681 682 <EncoderOutputFileFormat name="3gp" /> 683 <EncoderOutputFileFormat name="mp4" /> 684 685 <!-- 686 If a codec is not enabled, it is invisible to the applications 687 In other words, the applications won't be able to use the codec 688 or query the capabilities of the codec at all if it is disabled 689 --> 690 <VideoEncoderCap name="h264" enabled="true" 691 minBitRate="64000" maxBitRate="42000000" 692 minFrameWidth="176" maxFrameWidth="4096" 693 minFrameHeight="144" maxFrameHeight="2160" 694 minFrameRate="15" maxFrameRate="30" 695 maxHFRFrameWidth="1920" maxHFRFrameHeight="1080" 696 maxHFRMode="120" /> 697 698 <VideoEncoderCap name="h263" enabled="true" 699 minBitRate="64000" maxBitRate="2000000" 700 minFrameWidth="176" maxFrameWidth="800" 701 minFrameHeight="144" maxFrameHeight="480" 702 minFrameRate="15" maxFrameRate="30" 703 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 704 maxHFRMode="0" /> 705 706 <VideoEncoderCap name="m4v" enabled="true" 707 minBitRate="64000" maxBitRate="20000000" 708 minFrameWidth="176" maxFrameWidth="1280" 709 minFrameHeight="144" maxFrameHeight="720" 710 minFrameRate="15" maxFrameRate="30" 711 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 712 maxHFRMode="0" /> 713 714 <VideoEncoderCap name="hevc" enabled="true" 715 minBitRate="64000" maxBitRate="100000000" 716 minFrameWidth="176" maxFrameWidth="4096" 717 minFrameHeight="144" maxFrameHeight="2160" 718 minFrameRate="15" maxFrameRate="30" 719 maxHFRFrameWidth="0" maxHFRFrameHeight="0" 720 maxHFRMode="0" /> 721 722 <AudioEncoderCap name="aac" enabled="true" 723 minBitRate="8000" maxBitRate="96000" 724 minSampleRate="8000" maxSampleRate="48000" 725 minChannels="1" maxChannels="6" /> 726 727 <AudioEncoderCap name="heaac" enabled="true" 728 minBitRate="8000" maxBitRate="64000" 729 minSampleRate="16000" maxSampleRate="48000" 730 minChannels="1" maxChannels="1" /> 731 732 <AudioEncoderCap name="aaceld" enabled="true" 733 minBitRate="16000" maxBitRate="192000" 734 minSampleRate="16000" maxSampleRate="48000" 735 minChannels="1" maxChannels="1" /> 736 737 <AudioEncoderCap name="amrwb" enabled="true" 738 minBitRate="6600" maxBitRate="23850" 739 minSampleRate="16000" maxSampleRate="16000" 740 minChannels="1" maxChannels="1" /> 741 742 <AudioEncoderCap name="amrnb" enabled="true" 743 minBitRate="5525" maxBitRate="12200" 744 minSampleRate="8000" maxSampleRate="8000" 745 minChannels="1" maxChannels="1" /> 746 747 <AudioEncoderCap name="lpcm" enabled="true" 748 minBitRate="768000" maxBitRate="4608000" 749 minSampleRate="8000" maxSampleRate="48000" 750 minChannels="1" maxChannels="6" /> 751 752 <!-- 753 FIXME: 754 We do not check decoder capabilities at present 755 At present, we only check whether windows media is visible 756 for TEST applications. For other applications, we do 757 not perform any checks at all. 758 --> 759 <VideoDecoderCap name="wmv" enabled="true"/> 760 <AudioDecoderCap name="wma" enabled="true"/> 761 762 <!-- 763 The VideoEditor Capability configuration: 764 - maxInputFrameWidth: maximum video width of imported video clip. 765 - maxInputFrameHeight: maximum video height of imported video clip. 766 - maxOutputFrameWidth: maximum video width of exported video clip. 767 - maxOutputFrameHeight: maximum video height of exported video clip. 768 - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, 769 used to limit the amount of memory for prefetched YUV frames. 770 For this platform, it allows maximum 30MB(3MB per 1080p frame x 10 771 frames) memory. 772 --> 773 <VideoEditorCap maxInputFrameWidth="1920" 774 maxInputFrameHeight="1088" maxOutputFrameWidth="1920" 775 maxOutputFrameHeight="1088" maxPrefetchYUVFrames="10"/> 776 <!-- 777 The VideoEditor Export codec profile and level values 778 correspond to the values in OMX_Video.h. 779 E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline 780 and level 4096 means OMX_VIDEO_AVCLevel41. 781 Please note that the values are in decimal. 782 These values are for video encoder. 783 --> 784 <!-- 785 Codec = h.264, Baseline profile, level 4.0 786 --> 787 <ExportVideoProfile name="h264" profile= "1" level="2048"/> 788 <!-- 789 Codec = h.263, Baseline profile, level 70 790 --> 791 <ExportVideoProfile name="h263" profile= "1" level="128"/> 792 <!-- 793 Codec = mpeg4, Simple profile, level 5 794 --> 795 <ExportVideoProfile name="m4v" profile= "1" level="128"/> 796</MediaSettings> 797