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="2160p" fileFormat="mp4" duration="60">
309            <Video codec="h264"
310                   bitRate="48000000"
311                   width="3840"
312                   height="2160"
313                   frameRate="30" />
314
315            <Audio codec="aac"
316                   bitRate="96000"
317                   sampleRate="48000"
318                   channels="1" />
319        </EncoderProfile>
320
321        <EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
322            <Video codec="h264"
323                   bitRate="33000000"
324                   width="1920"
325                   height="1080"
326                   frameRate="60" />
327
328            <Audio codec="aac"
329                   bitRate="96000"
330                   sampleRate="48000"
331                   channels="1" />
332        </EncoderProfile>
333
334        <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
335            <Video codec="h264"
336                   bitRate="12000000"
337                   width="1280"
338                   height="720"
339                   frameRate="30" />
340
341            <Audio codec="aac"
342                   bitRate="96000"
343                   sampleRate="48000"
344                   channels="1" />
345        </EncoderProfile>
346
347        <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
348            <Video codec="h264"
349                   bitRate="6000000"
350                   width="720"
351                   height="480"
352                   frameRate="30" />
353
354            <Audio codec="aac"
355                   bitRate="96000"
356                   sampleRate="48000"
357                   channels="1" />
358        </EncoderProfile>
359
360        <EncoderProfile quality="cif" fileFormat="mp4" duration="60">
361            <Video codec="h264"
362                   bitRate="1200000"
363                   width="352"
364                   height="288"
365                   frameRate="30" />
366
367            <Audio codec="aac"
368                   bitRate="96000"
369                   sampleRate="48000"
370                   channels="1" />
371        </EncoderProfile>
372
373        <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
374            <Video codec="h264"
375                   bitRate="512000"
376                   width="320"
377                   height="240"
378                   frameRate="30" />
379
380            <Audio codec="aac"
381                   bitRate="96000"
382                   sampleRate="48000"
383                   channels="1" />
384        </EncoderProfile>
385
386        <EncoderProfile quality="qcif" fileFormat="3gp" duration="60">
387            <Video codec="h264"
388                   bitRate="128000"
389                   width="176"
390                   height="144"
391                   frameRate="30" />
392
393            <Audio codec="amrnb"
394                   bitRate="12200"
395                   sampleRate="8000"
396                   channels="1" />
397        </EncoderProfile>
398
399        <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60">
400            <Video codec="h264"
401                   bitRate="22000000"
402                   width="1920"
403                   height="1080"
404                   frameRate="30" />
405
406            <!-- Audio settings are not used for timealpse video recording -->
407            <Audio codec="aac"
408                   bitRate="96000"
409                   sampleRate="48000"
410                   channels="1" />
411        </EncoderProfile>
412
413        <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
414            <Video codec="h264"
415                   bitRate="12000000"
416                   width="1280"
417                   height="720"
418                   frameRate="30" />
419
420            <!-- Audio settings are not used for timealpse video recording -->
421            <Audio codec="aac"
422                   bitRate="96000"
423                   sampleRate="48000"
424                   channels="1" />
425        </EncoderProfile>
426
427        <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
428            <Video codec="h264"
429                   bitRate="6000000"
430                   width="720"
431                   height="480"
432                   frameRate="30" />
433
434            <!-- Audio settings are not used for timealpse video recording -->
435            <Audio codec="aac"
436                   bitRate="96000"
437                   sampleRate="48000"
438                   channels="1" />
439        </EncoderProfile>
440
441        <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60">
442            <Video codec="h264"
443                   bitRate="1200000"
444                   width="352"
445                   height="288"
446                   frameRate="30" />
447
448            <!-- Audio settings are not used for timealpse video recording -->
449            <Audio codec="aac"
450                   bitRate="96000"
451                   sampleRate="48000"
452                   channels="1" />
453        </EncoderProfile>
454
455        <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60">
456            <Video codec="h264"
457                   bitRate="192000"
458                   width="176"
459                   height="144"
460                   frameRate="30" />
461
462            <!-- Audio settings are not used for timealpse video recording -->
463            <Audio codec="amrnb"
464                   bitRate="12200"
465                   sampleRate="8000"
466                   channels="1" />
467        </EncoderProfile>
468
469        <ImageEncoding quality="90" />
470        <ImageEncoding quality="80" />
471        <ImageEncoding quality="70" />
472        <ImageDecoding memCap="20000000" />
473
474    </CamcorderProfiles>
475
476    <CamcorderProfiles cameraId="2">
477
478        <EncoderProfile quality="2160p" fileFormat="mp4" duration="60">
479            <Video codec="h264"
480                   bitRate="72000000"
481                   width="3840"
482                   height="2160"
483                   frameRate="60" />
484
485            <Audio codec="aac"
486                   bitRate="96000"
487                   sampleRate="48000"
488                   channels="1" />
489        </EncoderProfile>
490
491        <EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
492            <Video codec="h264"
493                   bitRate="33000000"
494                   width="1920"
495                   height="1080"
496                   frameRate="60" />
497
498            <Audio codec="aac"
499                   bitRate="96000"
500                   sampleRate="48000"
501                   channels="1" />
502        </EncoderProfile>
503
504        <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
505            <Video codec="h264"
506                   bitRate="12000000"
507                   width="1280"
508                   height="720"
509                   frameRate="30" />
510
511            <Audio codec="aac"
512                   bitRate="96000"
513                   sampleRate="48000"
514                   channels="1" />
515        </EncoderProfile>
516
517        <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
518            <Video codec="h264"
519                   bitRate="6000000"
520                   width="720"
521                   height="480"
522                   frameRate="30" />
523
524            <Audio codec="aac"
525                   bitRate="96000"
526                   sampleRate="48000"
527                   channels="1" />
528        </EncoderProfile>
529
530        <EncoderProfile quality="cif" fileFormat="mp4" duration="60">
531            <Video codec="h264"
532                   bitRate="1200000"
533                   width="352"
534                   height="288"
535                   frameRate="30" />
536
537            <Audio codec="aac"
538                   bitRate="96000"
539                   sampleRate="48000"
540                   channels="1" />
541        </EncoderProfile>
542
543        <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
544            <Video codec="h264"
545                   bitRate="512000"
546                   width="320"
547                   height="240"
548                   frameRate="30" />
549
550            <Audio codec="aac"
551                   bitRate="96000"
552                   sampleRate="48000"
553                   channels="1" />
554        </EncoderProfile>
555
556        <EncoderProfile quality="qcif" fileFormat="3gp" duration="60">
557            <Video codec="h264"
558                   bitRate="128000"
559                   width="176"
560                   height="144"
561                   frameRate="30" />
562
563            <Audio codec="amrnb"
564                   bitRate="12200"
565                   sampleRate="8000"
566                   channels="1" />
567        </EncoderProfile>
568
569        <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60">
570            <Video codec="h264"
571                   bitRate="48000000"
572                   width="3840"
573                   height="2160"
574                   frameRate="30" />
575
576            <!-- Audio settings are not used for timealpse video recording -->
577            <Audio codec="aac"
578                   bitRate="96000"
579                   sampleRate="48000"
580                   channels="1" />
581        </EncoderProfile>
582
583        <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60">
584            <Video codec="h264"
585                   bitRate="22000000"
586                   width="1920"
587                   height="1080"
588                   frameRate="30" />
589
590            <!-- Audio settings are not used for timealpse video recording -->
591            <Audio codec="aac"
592                   bitRate="96000"
593                   sampleRate="48000"
594                   channels="1" />
595        </EncoderProfile>
596
597        <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
598            <Video codec="h264"
599                   bitRate="12000000"
600                   width="1280"
601                   height="720"
602                   frameRate="30" />
603
604            <!-- Audio settings are not used for timealpse video recording -->
605            <Audio codec="aac"
606                   bitRate="96000"
607                   sampleRate="48000"
608                   channels="1" />
609        </EncoderProfile>
610
611        <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
612            <Video codec="h264"
613                   bitRate="6000000"
614                   width="720"
615                   height="480"
616                   frameRate="30" />
617
618            <!-- Audio settings are not used for timealpse video recording -->
619            <Audio codec="aac"
620                   bitRate="96000"
621                   sampleRate="48000"
622                   channels="1" />
623        </EncoderProfile>
624
625        <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60">
626            <Video codec="h264"
627                   bitRate="1200000"
628                   width="352"
629                   height="288"
630                   frameRate="30" />
631
632            <!-- Audio settings are not used for timealpse video recording -->
633            <Audio codec="aac"
634                   bitRate="96000"
635                   sampleRate="48000"
636                   channels="1" />
637        </EncoderProfile>
638
639        <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60">
640            <Video codec="h264"
641                   bitRate="192000"
642                   width="176"
643                   height="144"
644                   frameRate="30" />
645
646            <!-- Audio settings are not used for timealpse video recording -->
647            <Audio codec="amrnb"
648                   bitRate="12200"
649                   sampleRate="8000"
650                   channels="1" />
651        </EncoderProfile>
652
653        <ImageEncoding quality="90" />
654        <ImageEncoding quality="80" />
655        <ImageEncoding quality="70" />
656        <ImageDecoding memCap="20000000" />
657
658    </CamcorderProfiles>
659
660    <CamcorderProfiles cameraId="3">
661
662        <EncoderProfile quality="2160p" fileFormat="mp4" duration="60">
663            <Video codec="h264"
664                   bitRate="48000000"
665                   width="3840"
666                   height="2160"
667                   frameRate="30" />
668
669            <Audio codec="aac"
670                   bitRate="96000"
671                   sampleRate="48000"
672                   channels="1" />
673        </EncoderProfile>
674
675        <EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
676            <Video codec="h264"
677                   bitRate="33000000"
678                   width="1920"
679                   height="1080"
680                   frameRate="60" />
681
682            <Audio codec="aac"
683                   bitRate="96000"
684                   sampleRate="48000"
685                   channels="1" />
686        </EncoderProfile>
687
688        <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
689            <Video codec="h264"
690                   bitRate="12000000"
691                   width="1280"
692                   height="720"
693                   frameRate="30" />
694
695            <Audio codec="aac"
696                   bitRate="96000"
697                   sampleRate="48000"
698                   channels="1" />
699        </EncoderProfile>
700
701        <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
702            <Video codec="h264"
703                   bitRate="6000000"
704                   width="720"
705                   height="480"
706                   frameRate="30" />
707
708            <Audio codec="aac"
709                   bitRate="96000"
710                   sampleRate="48000"
711                   channels="1" />
712        </EncoderProfile>
713
714        <EncoderProfile quality="cif" fileFormat="mp4" duration="60">
715            <Video codec="h264"
716                   bitRate="1200000"
717                   width="352"
718                   height="288"
719                   frameRate="30" />
720
721            <Audio codec="aac"
722                   bitRate="96000"
723                   sampleRate="48000"
724                   channels="1" />
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="96000"
736                   sampleRate="48000"
737                   channels="1" />
738        </EncoderProfile>
739
740        <EncoderProfile quality="qcif" fileFormat="3gp" duration="60">
741            <Video codec="h264"
742                   bitRate="128000"
743                   width="176"
744                   height="144"
745                   frameRate="30" />
746
747            <Audio codec="amrnb"
748                   bitRate="12200"
749                   sampleRate="8000"
750                   channels="1" />
751        </EncoderProfile>
752
753        <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60">
754            <Video codec="h264"
755                   bitRate="48000000"
756                   width="3840"
757                   height="2160"
758                   frameRate="30" />
759
760            <!-- Audio settings are not used for timealpse video recording -->
761            <Audio codec="aac"
762                   bitRate="96000"
763                   sampleRate="48000"
764                   channels="1" />
765        </EncoderProfile>
766
767        <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60">
768            <Video codec="h264"
769                   bitRate="22000000"
770                   width="1920"
771                   height="1080"
772                   frameRate="30" />
773
774            <!-- Audio settings are not used for timealpse video recording -->
775            <Audio codec="aac"
776                   bitRate="96000"
777                   sampleRate="48000"
778                   channels="1" />
779        </EncoderProfile>
780
781        <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
782            <Video codec="h264"
783                   bitRate="12000000"
784                   width="1280"
785                   height="720"
786                   frameRate="30" />
787
788            <!-- Audio settings are not used for timealpse video recording -->
789            <Audio codec="aac"
790                   bitRate="96000"
791                   sampleRate="48000"
792                   channels="1" />
793        </EncoderProfile>
794
795        <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
796            <Video codec="h264"
797                   bitRate="6000000"
798                   width="720"
799                   height="480"
800                   frameRate="30" />
801
802            <!-- Audio settings are not used for timealpse video recording -->
803            <Audio codec="aac"
804                   bitRate="96000"
805                   sampleRate="48000"
806                   channels="1" />
807        </EncoderProfile>
808
809        <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60">
810            <Video codec="h264"
811                   bitRate="1200000"
812                   width="352"
813                   height="288"
814                   frameRate="30" />
815
816            <!-- Audio settings are not used for timealpse video recording -->
817            <Audio codec="aac"
818                   bitRate="96000"
819                   sampleRate="48000"
820                   channels="1" />
821        </EncoderProfile>
822
823        <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60">
824            <Video codec="h264"
825                   bitRate="192000"
826                   width="176"
827                   height="144"
828                   frameRate="30" />
829
830            <!-- Audio settings are not used for timealpse video recording -->
831            <Audio codec="amrnb"
832                   bitRate="12200"
833                   sampleRate="8000"
834                   channels="1" />
835        </EncoderProfile>
836
837        <ImageEncoding quality="90" />
838        <ImageEncoding quality="80" />
839        <ImageEncoding quality="70" />
840        <ImageDecoding memCap="20000000" />
841
842    </CamcorderProfiles>
843
844    <CamcorderProfiles cameraId="4">
845
846        <EncoderProfile quality="2160p" fileFormat="mp4" duration="60">
847            <Video codec="h264"
848                   bitRate="48000000"
849                   width="3840"
850                   height="2160"
851                   frameRate="30" />
852
853            <Audio codec="aac"
854                   bitRate="96000"
855                   sampleRate="48000"
856                   channels="1" />
857        </EncoderProfile>
858
859        <EncoderProfile quality="1080p" fileFormat="mp4" duration="60">
860            <Video codec="h264"
861                   bitRate="33000000"
862                   width="1920"
863                   height="1080"
864                   frameRate="60" />
865
866            <Audio codec="aac"
867                   bitRate="96000"
868                   sampleRate="48000"
869                   channels="1" />
870        </EncoderProfile>
871
872        <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
873            <Video codec="h264"
874                   bitRate="12000000"
875                   width="1280"
876                   height="720"
877                   frameRate="30" />
878
879            <Audio codec="aac"
880                   bitRate="96000"
881                   sampleRate="48000"
882                   channels="1" />
883        </EncoderProfile>
884
885        <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
886            <Video codec="h264"
887                   bitRate="6000000"
888                   width="720"
889                   height="480"
890                   frameRate="30" />
891
892            <Audio codec="aac"
893                   bitRate="96000"
894                   sampleRate="48000"
895                   channels="1" />
896        </EncoderProfile>
897
898        <EncoderProfile quality="cif" fileFormat="mp4" duration="60">
899            <Video codec="h264"
900                   bitRate="1200000"
901                   width="352"
902                   height="288"
903                   frameRate="30" />
904
905            <Audio codec="aac"
906                   bitRate="96000"
907                   sampleRate="48000"
908                   channels="1" />
909        </EncoderProfile>
910
911        <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
912            <Video codec="h264"
913                   bitRate="512000"
914                   width="320"
915                   height="240"
916                   frameRate="30" />
917
918            <Audio codec="aac"
919                   bitRate="96000"
920                   sampleRate="48000"
921                   channels="1" />
922        </EncoderProfile>
923
924        <EncoderProfile quality="qcif" fileFormat="3gp" duration="60">
925            <Video codec="h264"
926                   bitRate="128000"
927                   width="176"
928                   height="144"
929                   frameRate="30" />
930
931            <Audio codec="amrnb"
932                   bitRate="12200"
933                   sampleRate="8000"
934                   channels="1" />
935        </EncoderProfile>
936
937        <EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="60">
938            <Video codec="h264"
939                   bitRate="48000000"
940                   width="3840"
941                   height="2160"
942                   frameRate="30" />
943
944            <!-- Audio settings are not used for timealpse video recording -->
945            <Audio codec="aac"
946                   bitRate="96000"
947                   sampleRate="48000"
948                   channels="1" />
949        </EncoderProfile>
950
951        <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="60">
952            <Video codec="h264"
953                   bitRate="22000000"
954                   width="1920"
955                   height="1080"
956                   frameRate="30" />
957
958            <!-- Audio settings are not used for timealpse video recording -->
959            <Audio codec="aac"
960                   bitRate="96000"
961                   sampleRate="48000"
962                   channels="1" />
963        </EncoderProfile>
964
965        <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
966            <Video codec="h264"
967                   bitRate="12000000"
968                   width="1280"
969                   height="720"
970                   frameRate="30" />
971
972            <!-- Audio settings are not used for timealpse video recording -->
973            <Audio codec="aac"
974                   bitRate="96000"
975                   sampleRate="48000"
976                   channels="1" />
977        </EncoderProfile>
978
979        <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
980            <Video codec="h264"
981                   bitRate="6000000"
982                   width="720"
983                   height="480"
984                   frameRate="30" />
985
986            <!-- Audio settings are not used for timealpse video recording -->
987            <Audio codec="aac"
988                   bitRate="96000"
989                   sampleRate="48000"
990                   channels="1" />
991        </EncoderProfile>
992
993        <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="60">
994            <Video codec="h264"
995                   bitRate="1200000"
996                   width="352"
997                   height="288"
998                   frameRate="30" />
999
1000            <!-- Audio settings are not used for timealpse video recording -->
1001            <Audio codec="aac"
1002                   bitRate="96000"
1003                   sampleRate="48000"
1004                   channels="1" />
1005        </EncoderProfile>
1006
1007        <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="60">
1008            <Video codec="h264"
1009                   bitRate="192000"
1010                   width="176"
1011                   height="144"
1012                   frameRate="30" />
1013
1014            <!-- Audio settings are not used for timealpse video recording -->
1015            <Audio codec="amrnb"
1016                   bitRate="12200"
1017                   sampleRate="8000"
1018                   channels="1" />
1019        </EncoderProfile>
1020
1021        <ImageEncoding quality="90" />
1022        <ImageEncoding quality="80" />
1023        <ImageEncoding quality="70" />
1024        <ImageDecoding memCap="20000000" />
1025
1026    </CamcorderProfiles>
1027
1028    <EncoderOutputFileFormat name="3gp" />
1029    <EncoderOutputFileFormat name="mp4" />
1030
1031    <!--
1032         If a codec is not enabled, it is invisible to the applications
1033         In other words, the applications won't be able to use the codec
1034         or query the capabilities of the codec at all if it is disabled
1035    -->
1036
1037    <!--
1038         FIXME : we only check Mpeg4 encorder cap and other codec doesn't check
1039                 codec cap
1040    -->
1041    <VideoEncoderCap name="hevc" enabled="true"
1042        minBitRate="64000" maxBitRate="100000000"
1043        minFrameWidth="128" maxFrameWidth="3840"
1044        minFrameHeight="96" maxFrameHeight="2160"
1045        minFrameRate="15" maxFrameRate="30" />
1046
1047    <VideoEncoderCap name="h264" enabled="true"
1048        minBitRate="64000" maxBitRate="100000000"
1049        minFrameWidth="128" maxFrameWidth="3840"
1050        minFrameHeight="96" maxFrameHeight="2160"
1051        minFrameRate="15" maxFrameRate="30" />
1052
1053    <VideoEncoderCap name="h263" enabled="true"
1054        minBitRate="64000" maxBitRate="1000000"
1055        minFrameWidth="128" maxFrameWidth="1920"
1056        minFrameHeight="96" maxFrameHeight="1080"
1057        minFrameRate="15" maxFrameRate="30" />
1058
1059    <VideoEncoderCap name="m4v" enabled="true"
1060        minBitRate="64000" maxBitRate="2000000"
1061        minFrameWidth="128" maxFrameWidth="1920"
1062        minFrameHeight="96" maxFrameHeight="1080"
1063        minFrameRate="15" maxFrameRate="30" />
1064
1065    <AudioEncoderCap name="aac" enabled="true"
1066        minBitRate="758" maxBitRate="288000"
1067        minSampleRate="8000" maxSampleRate="48000"
1068        minChannels="1" maxChannels="1" />
1069
1070    <AudioEncoderCap name="heaac" enabled="true"
1071        minBitRate="8000" maxBitRate="64000"
1072        minSampleRate="16000" maxSampleRate="48000"
1073        minChannels="1" maxChannels="1" />
1074
1075    <AudioEncoderCap name="aaceld" enabled="true"
1076        minBitRate="16000" maxBitRate="192000"
1077        minSampleRate="16000" maxSampleRate="48000"
1078        minChannels="1" maxChannels="1" />
1079
1080    <AudioEncoderCap name="amrwb" enabled="true"
1081        minBitRate="6600" maxBitRate="23050"
1082        minSampleRate="16000" maxSampleRate="16000"
1083        minChannels="1" maxChannels="1" />
1084
1085    <AudioEncoderCap name="amrnb" enabled="true"
1086        minBitRate="5525" maxBitRate="12200"
1087        minSampleRate="8000" maxSampleRate="8000"
1088        minChannels="1" maxChannels="1" />
1089
1090    <!--
1091        FIXME:
1092        We do not check decoder capabilities at present
1093        At present, we only check whether windows media is visible
1094        for TEST applications. For other applications, we do
1095        not perform any checks at all.
1096    -->
1097    <VideoDecoderCap name="wmv" enabled="false"/>
1098    <AudioDecoderCap name="wma" enabled="false"/>
1099</MediaSettings>
1100