• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012-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="20000000"
114             width="1920"
115             height="1080"
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="qcif" fileFormat="3gp" duration="30">
190      <Video codec="h264"
191             bitRate="192000"
192             width="176"
193             height="144"
194             frameRate="30" />
195
196      <Audio codec="amrnb"
197             bitRate="12200"
198             sampleRate="8000"
199             channels="1" />
200    </EncoderProfile>
201
202    <EncoderProfile quality="vga" fileFormat="mp4" duration="30">
203      <Video codec="h264"
204             bitRate="2000000"
205             width="640"
206             height="480"
207             frameRate="30" />
208
209      <Audio codec="aac"
210             bitRate="156000"
211             sampleRate="48000"
212             channels="2" />
213    </EncoderProfile>
214
215    <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
216      <Video codec="h264"
217             bitRate="192000"
218             width="176"
219             height="144"
220             frameRate="30" />
221
222      <!-- audio setting is ignored -->
223      <Audio codec="amrnb"
224             bitRate="12200"
225             sampleRate="8000"
226             channels="1" />
227    </EncoderProfile>
228
229    <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
230      <Video codec="h264"
231             bitRate="20000000"
232             width="1920"
233             height="1080"
234             frameRate="30" />
235
236      <!-- audio setting is ignored -->
237      <Audio codec="aac"
238             bitRate="156000"
239             sampleRate="48000"
240             channels="2" />
241    </EncoderProfile>
242
243    <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
244      <Video codec="h264"
245             bitRate="192000"
246             width="176"
247             height="144"
248             frameRate="30" />
249
250      <!-- audio setting is ignored -->
251      <Audio codec="amrnb"
252             bitRate="12200"
253             sampleRate="8000"
254             channels="1" />
255    </EncoderProfile>
256
257    <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
258      <Video codec="h264"
259             bitRate="720000"
260             width="352"
261             height="288"
262             frameRate="30" />
263
264      <!-- audio setting is ignored -->
265      <Audio codec="amrnb"
266             bitRate="12200"
267             sampleRate="8000"
268             channels="1" />
269    </EncoderProfile>
270
271
272    <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
273      <Video codec="h264"
274             bitRate="512000"
275             width="320"
276             height="240"
277             frameRate="30" />
278
279      <!-- audio setting is ignored -->
280      <Audio codec="amrnb"
281             bitRate="12200"
282             sampleRate="8000"
283             channels="1" />
284    </EncoderProfile>
285
286    <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
287      <Video codec="h264"
288             bitRate="2000000"
289             width="640"
290             height="480"
291             frameRate="30" />
292
293      <!-- audio setting is ignored -->
294      <Audio codec="amrnb"
295             bitRate="12200"
296             sampleRate="8000"
297             channels="1" />
298    </EncoderProfile>
299
300    <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
301      <Video codec="h264"
302             bitRate="2000000"
303             width="640"
304             height="480"
305             frameRate="30" />
306
307      <!-- audio setting is ignored -->
308      <Audio codec="aac"
309             bitRate="156000"
310             sampleRate="48000"
311             channels="2" />
312    </EncoderProfile>
313
314    <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
315      <Video codec="h264"
316             bitRate="14000000"
317             width="1280"
318             height="720"
319             frameRate="30" />
320
321      <!-- audio setting is ignored -->
322      <Audio codec="aac"
323             bitRate="156000"
324             sampleRate="48000"
325             channels="2" />
326    </EncoderProfile>
327
328    <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
329      <Video codec="h264"
330             bitRate="20000000"
331             width="1920"
332             height="1080"
333             frameRate="30" />
334
335      <!-- audio setting is ignored -->
336      <Audio codec="aac"
337             bitRate="156000"
338             sampleRate="48000"
339             channels="2" />
340    </EncoderProfile>
341
342        <ImageEncoding quality="95" />
343        <ImageEncoding quality="80" />
344        <ImageEncoding quality="70" />
345        <ImageDecoding memCap="20000000" />
346
347    </CamcorderProfiles>
348    <!-- Front Camera -->
349    <CamcorderProfiles cameraId="1">
350
351    <EncoderProfile quality="low" fileFormat="3gp" duration="30">
352      <Video codec="h264"
353             bitRate="192000"
354             width="176"
355             height="144"
356             frameRate="30" />
357
358      <Audio codec="amrnb"
359             bitRate="12200"
360             sampleRate="8000"
361             channels="1" />
362    </EncoderProfile>
363
364    <EncoderProfile quality="high" fileFormat="mp4" duration="30">
365      <Video codec="h264"
366             bitRate="20000000"
367             width="1920"
368             height="1080"
369             frameRate="30" />
370
371      <Audio codec="aac"
372             bitRate="156000"
373             sampleRate="48000"
374             channels="2" />
375    </EncoderProfile>
376
377    <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
378      <Video codec="h264"
379             bitRate="512000"
380             width="320"
381             height="240"
382             frameRate="30" />
383
384      <Audio codec="aac"
385             bitRate="156000"
386             sampleRate="48000"
387             channels="2" />
388    </EncoderProfile>
389
390    <EncoderProfile quality="cif" fileFormat="3gp" duration="30">
391      <Video codec="h264"
392             bitRate="720000"
393             width="352"
394             height="288"
395             frameRate="30" />
396
397      <Audio codec="amrnb"
398             bitRate="12200"
399             sampleRate="8000"
400             channels="1" />
401    </EncoderProfile>
402
403    <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
404      <Video codec="h264"
405             bitRate="2000000"
406             width="720"
407             height="480"
408             frameRate="30" />
409
410      <Audio codec="aac"
411             bitRate="156000"
412             sampleRate="48000"
413             channels="2" />
414    </EncoderProfile>
415
416    <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
417      <Video codec="h264"
418             bitRate="14000000"
419             width="1280"
420             height="720"
421             frameRate="30" />
422
423      <Audio codec="aac"
424             bitRate="156000"
425             sampleRate="48000"
426             channels="2" />
427    </EncoderProfile>
428
429    <EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
430      <Video codec="h264"
431             bitRate="20000000"
432             width="1920"
433             height="1080"
434             frameRate="30" />
435
436      <Audio codec="aac"
437             bitRate="156000"
438             sampleRate="48000"
439             channels="2" />
440    </EncoderProfile>
441
442    <EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
443      <Video codec="h264"
444             bitRate="192000"
445             width="176"
446             height="144"
447             frameRate="30" />
448
449      <Audio codec="amrnb"
450             bitRate="12200"
451             sampleRate="8000"
452             channels="1" />
453    </EncoderProfile>
454
455     <EncoderProfile quality="vga" fileFormat="mp4" duration="30">
456      <Video codec="h264"
457             bitRate="2000000"
458             width="640"
459             height="480"
460             frameRate="30" />
461
462      <Audio codec="aac"
463             bitRate="156000"
464             sampleRate="48000"
465             channels="2" />
466    </EncoderProfile>
467
468    <!-- TIMELAPSE profiles for front camera -->
469    <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
470      <Video codec="h264"
471             bitRate="192000"
472             width="176"
473             height="144"
474             frameRate="30" />
475
476      <!-- audio setting is ignored -->
477      <Audio codec="amrnb"
478             bitRate="12200"
479             sampleRate="8000"
480             channels="1" />
481    </EncoderProfile>
482
483    <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
484      <Video codec="h264"
485             bitRate="20000000"
486             width="1920"
487             height="1080"
488             frameRate="30" />
489
490      <!-- audio setting is ignored -->
491      <Audio codec="aac"
492             bitRate="156000"
493             sampleRate="48000"
494             channels="2" />
495    </EncoderProfile>
496
497    <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
498      <Video codec="h264"
499             bitRate="192000"
500             width="176"
501             height="144"
502             frameRate="30" />
503
504      <!-- audio setting is ignored -->
505      <Audio codec="amrnb"
506             bitRate="12200"
507             sampleRate="8000"
508             channels="1" />
509    </EncoderProfile>
510
511    <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
512      <Video codec="h264"
513             bitRate="1200000"
514             width="352"
515             height="288"
516             frameRate="30" />
517
518      <!-- audio setting is ignored -->
519      <Audio codec="aac"
520             bitRate="96000"
521             sampleRate="48000"
522             channels="1" />
523    </EncoderProfile>
524
525    <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
526      <Video codec="h264"
527             bitRate="512000"
528             width="320"
529             height="240"
530             frameRate="30" />
531
532      <!-- audio setting is ignored -->
533      <Audio codec="amrnb"
534             bitRate="12200"
535             sampleRate="8000"
536             channels="1" />
537    </EncoderProfile>
538
539    <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
540      <Video codec="h264"
541             bitRate="2000000"
542             width="640"
543             height="480"
544             frameRate="30" />
545
546      <!-- audio setting is ignored -->
547      <Audio codec="amrnb"
548             bitRate="12200"
549             sampleRate="8000"
550             channels="1" />
551    </EncoderProfile>
552
553    <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
554      <Video codec="h264"
555             bitRate="5000000"
556             width="720"
557             height="480"
558             frameRate="30" />
559
560      <!-- audio setting is ignored -->
561      <Audio codec="aac"
562             bitRate="96000"
563             sampleRate="48000"
564             channels="1" />
565    </EncoderProfile>
566
567    <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
568      <Video codec="h264"
569             bitRate="8000000"
570             width="1280"
571             height="720"
572             frameRate="30" />
573
574      <!-- audio setting is ignored -->
575      <Audio codec="aac"
576             bitRate="96000"
577             sampleRate="48000"
578             channels="1" />
579    </EncoderProfile>
580
581    <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
582      <Video codec="h264"
583             bitRate="20000000"
584             width="1920"
585             height="1080"
586             frameRate="30" />
587
588      <!-- audio setting is ignored -->
589      <Audio codec="aac"
590             bitRate="156000"
591             sampleRate="48000"
592             channels="2" />
593    </EncoderProfile>
594
595        <ImageEncoding quality="95" />
596        <ImageEncoding quality="80" />
597        <ImageEncoding quality="70" />
598        <ImageDecoding memCap="20000000" />
599
600    </CamcorderProfiles>
601
602    <!-- Camera ID 2 -->
603    <CamcorderProfiles cameraId="2">
604
605    <EncoderProfile quality="low" fileFormat="3gp" duration="30">
606      <Video codec="h264"
607             bitRate="192000"
608             width="176"
609             height="144"
610             frameRate="30" />
611
612      <Audio codec="amrnb"
613             bitRate="12200"
614             sampleRate="8000"
615             channels="1" />
616    </EncoderProfile>
617
618    <EncoderProfile quality="high" fileFormat="mp4" duration="30">
619      <Video codec="h264"
620             bitRate="20000000"
621             width="1920"
622             height="1080"
623             frameRate="30" />
624
625      <Audio codec="aac"
626             bitRate="156000"
627             sampleRate="48000"
628             channels="2" />
629    </EncoderProfile>
630
631    <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
632      <Video codec="h264"
633             bitRate="512000"
634             width="320"
635             height="240"
636             frameRate="30" />
637
638      <Audio codec="aac"
639             bitRate="156000"
640             sampleRate="48000"
641             channels="2" />
642    </EncoderProfile>
643
644    <EncoderProfile quality="cif" fileFormat="3gp" duration="30">
645      <Video codec="h264"
646             bitRate="720000"
647             width="352"
648             height="288"
649             frameRate="30" />
650
651      <Audio codec="amrnb"
652             bitRate="12200"
653             sampleRate="8000"
654             channels="1" />
655    </EncoderProfile>
656
657    <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
658      <Video codec="h264"
659             bitRate="2000000"
660             width="720"
661             height="480"
662             frameRate="30" />
663
664      <Audio codec="aac"
665             bitRate="156000"
666             sampleRate="48000"
667             channels="2" />
668    </EncoderProfile>
669
670    <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
671      <Video codec="h264"
672             bitRate="14000000"
673             width="1280"
674             height="720"
675             frameRate="30" />
676
677      <Audio codec="aac"
678             bitRate="156000"
679             sampleRate="48000"
680             channels="2" />
681    </EncoderProfile>
682
683    <EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
684      <Video codec="h264"
685             bitRate="20000000"
686             width="1920"
687             height="1080"
688             frameRate="30" />
689
690      <Audio codec="aac"
691             bitRate="156000"
692             sampleRate="48000"
693             channels="2" />
694    </EncoderProfile>
695
696    <EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
697      <Video codec="h264"
698             bitRate="192000"
699             width="176"
700             height="144"
701             frameRate="30" />
702
703      <Audio codec="amrnb"
704             bitRate="12200"
705             sampleRate="8000"
706             channels="1" />
707    </EncoderProfile>
708
709    <EncoderProfile quality="vga" fileFormat="mp4" duration="30">
710      <Video codec="h264"
711             bitRate="2000000"
712             width="640"
713             height="480"
714             frameRate="30" />
715
716      <Audio codec="aac"
717             bitRate="156000"
718             sampleRate="48000"
719             channels="2" />
720    </EncoderProfile>
721
722    <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
723      <Video codec="h264"
724             bitRate="192000"
725             width="176"
726             height="144"
727             frameRate="30" />
728
729      <!-- audio setting is ignored -->
730      <Audio codec="amrnb"
731             bitRate="12200"
732             sampleRate="8000"
733             channels="1" />
734    </EncoderProfile>
735
736    <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
737      <Video codec="h264"
738             bitRate="20000000"
739             width="1920"
740             height="1080"
741             frameRate="30" />
742
743      <!-- audio setting is ignored -->
744      <Audio codec="aac"
745             bitRate="156000"
746             sampleRate="48000"
747             channels="2" />
748    </EncoderProfile>
749
750    <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
751      <Video codec="h264"
752             bitRate="192000"
753             width="176"
754             height="144"
755             frameRate="30" />
756
757      <!-- audio setting is ignored -->
758      <Audio codec="amrnb"
759             bitRate="12200"
760             sampleRate="8000"
761             channels="1" />
762    </EncoderProfile>
763
764    <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
765      <Video codec="h264"
766             bitRate="720000"
767             width="352"
768             height="288"
769             frameRate="30" />
770
771      <!-- audio setting is ignored -->
772      <Audio codec="amrnb"
773             bitRate="12200"
774             sampleRate="8000"
775             channels="1" />
776    </EncoderProfile>
777
778
779    <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
780      <Video codec="h264"
781             bitRate="512000"
782             width="320"
783             height="240"
784             frameRate="30" />
785
786      <!-- audio setting is ignored -->
787      <Audio codec="amrnb"
788             bitRate="12200"
789             sampleRate="8000"
790             channels="1" />
791    </EncoderProfile>
792
793    <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
794      <Video codec="h264"
795             bitRate="2000000"
796             width="640"
797             height="480"
798             frameRate="30" />
799
800      <!-- audio setting is ignored -->
801      <Audio codec="amrnb"
802             bitRate="12200"
803             sampleRate="8000"
804             channels="1" />
805    </EncoderProfile>
806
807    <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
808      <Video codec="h264"
809             bitRate="2000000"
810             width="640"
811             height="480"
812             frameRate="30" />
813
814      <!-- audio setting is ignored -->
815      <Audio codec="aac"
816             bitRate="156000"
817             sampleRate="48000"
818             channels="2" />
819    </EncoderProfile>
820
821    <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
822      <Video codec="h264"
823             bitRate="14000000"
824             width="1280"
825             height="720"
826             frameRate="30" />
827
828      <!-- audio setting is ignored -->
829      <Audio codec="aac"
830             bitRate="156000"
831             sampleRate="48000"
832             channels="2" />
833    </EncoderProfile>
834
835    <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
836      <Video codec="h264"
837             bitRate="20000000"
838             width="1920"
839             height="1080"
840             frameRate="30" />
841
842      <!-- audio setting is ignored -->
843      <Audio codec="aac"
844             bitRate="156000"
845             sampleRate="48000"
846             channels="2" />
847    </EncoderProfile>
848
849        <ImageEncoding quality="95" />
850        <ImageEncoding quality="80" />
851        <ImageEncoding quality="70" />
852        <ImageDecoding memCap="20000000" />
853
854    </CamcorderProfiles>
855
856    <!-- Camera ID 3 -->
857    <CamcorderProfiles cameraId="3">
858
859    <EncoderProfile quality="low" fileFormat="3gp" duration="30">
860      <Video codec="h264"
861             bitRate="192000"
862             width="176"
863             height="144"
864             frameRate="30" />
865
866      <Audio codec="amrnb"
867             bitRate="12200"
868             sampleRate="8000"
869             channels="1" />
870    </EncoderProfile>
871
872    <EncoderProfile quality="high" fileFormat="mp4" duration="30">
873      <Video codec="h264"
874             bitRate="14000000"
875             width="1280"
876             height="720"
877             frameRate="30" />
878
879      <Audio codec="aac"
880             bitRate="156000"
881             sampleRate="48000"
882             channels="2" />
883    </EncoderProfile>
884
885    <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
886      <Video codec="h264"
887             bitRate="512000"
888             width="320"
889             height="240"
890             frameRate="30" />
891
892      <Audio codec="aac"
893             bitRate="156000"
894             sampleRate="48000"
895             channels="2" />
896    </EncoderProfile>
897
898    <EncoderProfile quality="cif" fileFormat="3gp" duration="30">
899      <Video codec="h264"
900             bitRate="720000"
901             width="352"
902             height="288"
903             frameRate="30" />
904
905      <Audio codec="amrnb"
906             bitRate="12200"
907             sampleRate="8000"
908             channels="1" />
909    </EncoderProfile>
910
911    <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
912      <Video codec="h264"
913             bitRate="2000000"
914             width="720"
915             height="480"
916             frameRate="30" />
917
918      <Audio codec="aac"
919             bitRate="156000"
920             sampleRate="48000"
921             channels="2" />
922    </EncoderProfile>
923
924    <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
925      <Video codec="h264"
926             bitRate="14000000"
927             width="1280"
928             height="720"
929             frameRate="30" />
930
931      <Audio codec="aac"
932             bitRate="156000"
933             sampleRate="48000"
934             channels="2" />
935    </EncoderProfile>
936
937    <EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
938      <Video codec="h264"
939             bitRate="192000"
940             width="176"
941             height="144"
942             frameRate="30" />
943
944      <Audio codec="amrnb"
945             bitRate="12200"
946             sampleRate="8000"
947             channels="1" />
948    </EncoderProfile>
949
950    <EncoderProfile quality="vga" fileFormat="mp4" duration="30">
951      <Video codec="h264"
952             bitRate="2000000"
953             width="640"
954             height="480"
955             frameRate="30" />
956
957      <Audio codec="aac"
958             bitRate="156000"
959             sampleRate="48000"
960             channels="2" />
961    </EncoderProfile>
962
963    <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
964      <Video codec="h264"
965             bitRate="192000"
966             width="176"
967             height="144"
968             frameRate="30" />
969
970      <!-- audio setting is ignored -->
971      <Audio codec="amrnb"
972             bitRate="12200"
973             sampleRate="8000"
974             channels="1" />
975    </EncoderProfile>
976
977    <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="30">
978      <Video codec="h264"
979             bitRate="14000000"
980             width="1280"
981             height="720"
982             frameRate="30" />
983
984      <!-- audio setting is ignored -->
985      <Audio codec="aac"
986             bitRate="156000"
987             sampleRate="48000"
988             channels="2" />
989    </EncoderProfile>
990
991    <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
992      <Video codec="h264"
993             bitRate="192000"
994             width="176"
995             height="144"
996             frameRate="30" />
997
998      <!-- audio setting is ignored -->
999      <Audio codec="amrnb"
1000             bitRate="12200"
1001             sampleRate="8000"
1002             channels="1" />
1003    </EncoderProfile>
1004
1005    <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
1006      <Video codec="h264"
1007             bitRate="720000"
1008             width="352"
1009             height="288"
1010             frameRate="30" />
1011
1012      <!-- audio setting is ignored -->
1013      <Audio codec="amrnb"
1014             bitRate="12200"
1015             sampleRate="8000"
1016             channels="1" />
1017    </EncoderProfile>
1018
1019
1020    <EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
1021      <Video codec="h264"
1022             bitRate="512000"
1023             width="320"
1024             height="240"
1025             frameRate="30" />
1026
1027      <!-- audio setting is ignored -->
1028      <Audio codec="amrnb"
1029             bitRate="12200"
1030             sampleRate="8000"
1031             channels="1" />
1032    </EncoderProfile>
1033
1034    <EncoderProfile quality="timelapsevga" fileFormat="mp4" duration="30">
1035      <Video codec="h264"
1036             bitRate="2000000"
1037             width="640"
1038             height="480"
1039             frameRate="30" />
1040
1041      <!-- audio setting is ignored -->
1042      <Audio codec="amrnb"
1043             bitRate="12200"
1044             sampleRate="8000"
1045             channels="1" />
1046    </EncoderProfile>
1047
1048    <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
1049      <Video codec="h264"
1050             bitRate="2000000"
1051             width="640"
1052             height="480"
1053             frameRate="30" />
1054
1055      <!-- audio setting is ignored -->
1056      <Audio codec="aac"
1057             bitRate="156000"
1058             sampleRate="48000"
1059             channels="2" />
1060    </EncoderProfile>
1061
1062    <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
1063      <Video codec="h264"
1064             bitRate="14000000"
1065             width="1280"
1066             height="720"
1067             frameRate="30" />
1068
1069      <!-- audio setting is ignored -->
1070      <Audio codec="aac"
1071             bitRate="156000"
1072             sampleRate="48000"
1073             channels="2" />
1074    </EncoderProfile>
1075
1076        <ImageEncoding quality="95" />
1077        <ImageEncoding quality="80" />
1078        <ImageEncoding quality="70" />
1079        <ImageDecoding memCap="20000000" />
1080
1081    </CamcorderProfiles>
1082
1083    <EncoderOutputFileFormat name="3gp" />
1084    <EncoderOutputFileFormat name="mp4" />
1085
1086    <!--
1087         If a codec is not enabled, it is invisible to the applications
1088         In other words, the applications won't be able to use the codec
1089         or query the capabilities of the codec at all if it is disabled
1090    -->
1091    <VideoEncoderCap name="h264" enabled="true"
1092        minBitRate="64000" maxBitRate="60000000"
1093        minFrameWidth="176" maxFrameWidth="1920"
1094        minFrameHeight="144" maxFrameHeight="1080"
1095        minFrameRate="15" maxFrameRate="30"
1096        maxHFRFrameWidth="1920" maxHFRFrameHeight="1080"
1097        maxHFRMode="120"  />
1098
1099    <VideoEncoderCap name="h263" enabled="true"
1100        minBitRate="64000" maxBitRate="2000000"
1101        minFrameWidth="176" maxFrameWidth="800"
1102        minFrameHeight="144" maxFrameHeight="480"
1103        minFrameRate="15" maxFrameRate="30"
1104        maxHFRFrameWidth="0" maxHFRFrameHeight="0"
1105        maxHFRMode="0"  />
1106
1107    <VideoEncoderCap name="m4v" enabled="true"
1108        minBitRate="64000" maxBitRate="8000000"
1109        minFrameWidth="176" maxFrameWidth="800"
1110        minFrameHeight="144" maxFrameHeight="480"
1111        minFrameRate="15" maxFrameRate="30"
1112        maxHFRFrameWidth="0" maxHFRFrameHeight="0"
1113        maxHFRMode="0"  />
1114
1115    <VideoEncoderCap name="hevc" enabled="true"
1116        minBitRate="64000" maxBitRate="60000000"
1117        minFrameWidth="176" maxFrameWidth="1920"
1118        minFrameHeight="144" maxFrameHeight="1080"
1119        minFrameRate="15" maxFrameRate="30"
1120        maxHFRFrameWidth="0" maxHFRFrameHeight="0"
1121        maxHFRMode="0"  />
1122
1123    <AudioEncoderCap name="aac" enabled="true"
1124        minBitRate="8000" maxBitRate="96000"
1125        minSampleRate="8000" maxSampleRate="48000"
1126        minChannels="1" maxChannels="6" />
1127
1128    <AudioEncoderCap name="heaac" enabled="true"
1129        minBitRate="8000" maxBitRate="64000"
1130        minSampleRate="16000" maxSampleRate="48000"
1131        minChannels="1" maxChannels="1" />
1132
1133    <AudioEncoderCap name="aaceld" enabled="true"
1134        minBitRate="16000" maxBitRate="192000"
1135        minSampleRate="16000" maxSampleRate="48000"
1136        minChannels="1" maxChannels="1" />
1137
1138    <AudioEncoderCap name="amrwb" enabled="true"
1139        minBitRate="6600" maxBitRate="23850"
1140        minSampleRate="16000" maxSampleRate="16000"
1141        minChannels="1" maxChannels="1" />
1142
1143    <AudioEncoderCap name="amrnb" enabled="true"
1144        minBitRate="5525" maxBitRate="12200"
1145        minSampleRate="8000" maxSampleRate="8000"
1146        minChannels="1" maxChannels="1" />
1147
1148    <AudioEncoderCap name="lpcm" enabled="true"
1149        minBitRate="768000" maxBitRate="4608000"
1150        minSampleRate="8000" maxSampleRate="48000"
1151        minChannels="1" maxChannels="6" />
1152
1153    <!--
1154        FIXME:
1155        We do not check decoder capabilities at present
1156        At present, we only check whether windows media is visible
1157        for TEST applications. For other applications, we do
1158        not perform any checks at all.
1159    -->
1160    <VideoDecoderCap name="wmv" enabled="true"/>
1161    <AudioDecoderCap name="wma" enabled="true"/>
1162
1163    <!--
1164        The VideoEditor Capability configuration:
1165        - maxInputFrameWidth: maximum video width of imported video clip.
1166        - maxInputFrameHeight: maximum video height of imported video clip.
1167        - maxOutputFrameWidth: maximum video width of exported video clip.
1168        - maxOutputFrameHeight: maximum video height of exported video clip.
1169        - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
1170        used to limit the amount of memory for prefetched YUV frames.
1171        For this platform, it allows maximum 30MB(3MB per 1080p frame x 10
1172        frames) memory.
1173    -->
1174    <VideoEditorCap  maxInputFrameWidth="1920"
1175        maxInputFrameHeight="1088" maxOutputFrameWidth="1920"
1176        maxOutputFrameHeight="1088" maxPrefetchYUVFrames="10"/>
1177    <!--
1178        The VideoEditor Export codec profile and level values
1179        correspond to the values in OMX_Video.h.
1180        E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline
1181        and  level 4096 means OMX_VIDEO_AVCLevel41.
1182        Please note that the values are in decimal.
1183        These values are for video encoder.
1184    -->
1185    <!--
1186      Codec = h.264, Baseline profile, level 4.0
1187    -->
1188    <ExportVideoProfile name="h264" profile= "1" level="2048"/>
1189    <!--
1190      Codec = h.263, Baseline profile, level 70
1191    -->
1192    <ExportVideoProfile name="h263" profile= "1" level="128"/>
1193    <!--
1194      Codec = mpeg4, Simple profile, level 5
1195    -->
1196    <ExportVideoProfile name="m4v" profile= "1" level="128"/>
1197</MediaSettings>
1198