<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
<!DOCTYPE MediaSettings>
<!-- This file is used to declare the multimedia profiles and capabilities on an android-powered device. -->
-<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<!-- Back Camera -->
-<CamcorderProfiles cameraId="0">
-<EncoderProfile duration="30" fileFormat="mp4" quality="low">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="high">
<Video frameRate="30" height="1080" width="1920" bitRate="17000000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="qcif">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="480p">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="720p">
<Video frameRate="30" height="720" width="1280" bitRate="12000000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="1080p">
<Video frameRate="30" height="1080" width="1920" bitRate="17000000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapselow">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapsehigh">
<Video frameRate="30" height="1080" width="1920" bitRate="17000000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapseqcif">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapse480p">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapse720p">
<Video frameRate="30" height="720" width="1280" bitRate="12000000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapse1080p">
<Video frameRate="30" height="1080" width="1920" bitRate="17000000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
<ImageEncoding quality="90"/>
<ImageEncoding quality="80"/>
<ImageEncoding quality="70"/>
<ImageDecoding memCap="20000000"/>
</CamcorderProfiles>
<!-- Front Camera -->
-<CamcorderProfiles cameraId="1">
-<EncoderProfile duration="30" fileFormat="mp4" quality="low">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="high">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="qcif">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="480p">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapselow">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapsehigh">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapseqcif">
<Video frameRate="30" height="144" width="176" bitRate="384000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
-<EncoderProfile duration="30" fileFormat="mp4" quality="timelapse480p">
<Video frameRate="30" height="480" width="640" bitRate="3078000" codec="h264"/>
<!-- The Audio part of the profile will not be used since time lapse mode does not capture audio -->
<Audio bitRate="128000" codec="aac" channels="1" sampleRate="48000"/>
</EncoderProfile>
<ImageEncoding quality="90"/>
<ImageEncoding quality="80"/>
<ImageEncoding quality="70"/>
<ImageDecoding memCap="20000000"/>
</CamcorderProfiles>
<EncoderOutputFileFormat name="mp4"/>
<!-- If a codec is not enabled, it is invisible to the applications In other words, the applications won't be able to use the codec or query the capabilities of the codec at all if it is disabled -->
<VideoEncoderCap name="h264" maxFrameRate="30" minFrameRate="1" maxFrameHeight="1080" minFrameHeight="144" maxFrameWidth="1920" minFrameWidth="176" maxBitRate="20000000" minBitRate="64000" enabled="true"/>
<VideoEncoderCap name="h263" maxFrameRate="30" minFrameRate="1" maxFrameHeight="480" minFrameHeight="144" maxFrameWidth="800" minFrameWidth="176" maxBitRate="1000000" minBitRate="64000" enabled="true"/>
<VideoEncoderCap name="m4v" maxFrameRate="30" minFrameRate="1" maxFrameHeight="1080" minFrameHeight="144" maxFrameWidth="1920" minFrameWidth="176" maxBitRate="20000000" minBitRate="64000" enabled="true"/>
<AudioEncoderCap name="aac" maxBitRate="196000" minBitRate="8192" enabled="true" maxChannels="2" minChannels="1" maxSampleRate="48000" minSampleRate="8000"/>
<AudioEncoderCap name="amrwb" maxBitRate="23050" minBitRate="6600" enabled="true" maxChannels="1" minChannels="1" maxSampleRate="16000" minSampleRate="16000"/>
<AudioEncoderCap name="amrnb" maxBitRate="12200" minBitRate="5525" enabled="true" maxChannels="1" minChannels="1" maxSampleRate="8000" minSampleRate="8000"/>
<!-- FIXME: We do not check decoder capabilities at present At present, we only check whether windows media is visible for TEST applications. For other applications, we do not perform any checks at all. -->
<VideoDecoderCap name="wmv" enabled="false"/>
<AudioDecoderCap name="wma" enabled="false"/>
<!-- The VideoEditor Capability configuration: - maxInputFrameWidth: maximum video width of imported video clip. - maxInputFrameHeight: maximum video height of imported video clip. - maxOutputFrameWidth: maximum video width of exported video clip. - maxOutputFrameHeight: maximum video height of exported video clip. - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, used to limit the amount of memory for prefetched YUV frames. For this platform, it allows maximum 8MB(1.3MB per 720p frame x 6 frames) memory. -->
<VideoEditorCap maxPrefetchYUVFrames="6" maxOutputFrameHeight="720" maxOutputFrameWidth="1280" maxInputFrameHeight="720" maxInputFrameWidth="1280"/>
<!-- The VideoEditor Export codec profile and level values correspond to the values in OMX_Video.h. E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline and level 2048 means OMX_VIDEO_AVCLevel4. Please note that the values are in decimal. These values are for video encoder. -->
<!-- Codec = h.264, Baseline profile, level 4 -->
<ExportVideoProfile name="h264" level="2048" profile="1"/>
<!-- Codec = h.263, Baseline profile, level 0 -->
<ExportVideoProfile name="h263" level="1" profile="1"/>
<!-- Codec = mpeg4, Simple profile, level 5 -->
<ExportVideoProfile name="m4v" level="128" profile="1"/>
</MediaSettings>