update media profiles

This commit is contained in:
Valera1978 2018-07-05 19:01:43 +03:00
parent 85abefc03c
commit b2f1d5e268
2 changed files with 414 additions and 110 deletions

View file

@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (c) 2015, The Linux Foundation. All rights reserved.
Not a Contribution.
Copyright 2015 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.
-->
<MediaCodecs>
<Encoders>
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="561-561" />
<Limit name="measured-frame-rate-720x480" range="281-281" />
<Limit name="measured-frame-rate-1280x720" range="123-123" />
<Limit name="measured-frame-rate-1920x1080" range="78-78" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="462-462" />
<Limit name="measured-frame-rate-352x288" range="291-291" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="502-502" />
<Limit name="measured-frame-rate-352x288" range="312-312" />
<Limit name="measured-frame-rate-640x480" range="174-174" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="93-93" />
<Limit name="measured-frame-rate-640x360" range="90-90" />
<Limit name="measured-frame-rate-1280x720" range="79-79" />
<Limit name="measured-frame-rate-1920x1080" range="42-42" />
</MediaCodec>
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="387-387" />
<Limit name="measured-frame-rate-720x480" range="237-237" />
<Limit name="measured-frame-rate-1280x720" range="108-108" />
<Limit name="measured-frame-rate-1920x1080" range="45-45" />
</MediaCodec>
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="900-900" />
</MediaCodec>
<MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="1145-1145" />
</MediaCodec>
<MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="461-461" />
<Limit name="measured-frame-rate-640x360" range="214-214" />
<Limit name="measured-frame-rate-1280x720" range="99-99" />
<Limit name="measured-frame-rate-1920x1080" range="39-39" />
</MediaCodec>
</Encoders>
<Decoders>
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="453-453" />
<Limit name="measured-frame-rate-720x480" range="249-249" />
<Limit name="measured-frame-rate-1280x720" range="103-103" />
<Limit name="measured-frame-rate-1920x1088" range="46-46" />
</MediaCodec>
<MediaCodec name="OMX.SEC.avc.sw.dec" type="video/avc" update="true" >
<Limit name="measured-frame-rate-320x240" range="700-900" />
<Limit name="measured-frame-rate-720x480" range="200-250" />
<Limit name="measured-frame-rate-1280x720" range="75-100" />
<Limit name="measured-frame-rate-1920x1080" range="15-25" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="1089-1089" />
<Limit name="measured-frame-rate-352x288" range="842-842" />
</MediaCodec>
<MediaCodec name="OMX.SEC.h263.sw.dec" type="video/3gpp" update="true" >
<Limit name="measured-frame-rate-176x144" range="300-430" />
<Limit name="measured-frame-rate-352x288" range="240-336" />
</MediaCodec>
<MediaCodec name="OMX.SEC.hevc.sw.dec" type="video/hevc" update="true" >
<Limit name="measured-frame-rate-320x240" range="400-480" />
<Limit name="measured-frame-rate-720x480" range="200-240" />
<Limit name="measured-frame-rate-1280x720" range="100-120" />
<Limit name="measured-frame-rate-1920x1080" range="50-60" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-480x360" range="798-798" />
</MediaCodec>
<MediaCodec name="OMX.SEC.mpeg4.sw.dec" type="video/mp4v-es" update="true" >
<Limit name="measured-frame-rate-320x240" range="1000-1200" />
<Limit name="measured-frame-rate-720x480" range="200-400" />
<Limit name="measured-frame-rate-1280x720" range="100-200" />
<Limit name="measured-frame-rate-1920x1080" range="50-100" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x240" range="210-210" />
<Limit name="measured-frame-rate-640x360" range="191-191" />
<Limit name="measured-frame-rate-1280x720" range="537-537" />
<Limit name="measured-frame-rate-1920x1080" range="325-325" />
</MediaCodec>
<MediaCodec name="OMX.SEC.vp8.dec" type="video/x-vnd.on2.vp8" update="true" >
<Limit name="measured-frame-rate-320x240" range="400-480" />
<Limit name="measured-frame-rate-720x480" range="200-240" />
<Limit name="measured-frame-rate-1280x720" range="100-120" />
<Limit name="measured-frame-rate-1920x1080" range="50-60" />
</MediaCodec>
<MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="396-396" />
<Limit name="measured-frame-rate-720x480" range="279-279" />
<Limit name="measured-frame-rate-1280x720" range="138-138" />
<Limit name="measured-frame-rate-1920x1080" range="41-41" />
</MediaCodec>
<MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="1200-1200" />
<Limit name="measured-frame-rate-352x288" range="923-923" />
</MediaCodec>
<MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="1883-1883" />
<Limit name="measured-frame-rate-720x480" range="516-516" />
<Limit name="measured-frame-rate-1280x720" range="234-234" />
<Limit name="measured-frame-rate-1920x1080" range="106-106" />
</MediaCodec>
<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x240" range="1644-1644" />
<Limit name="measured-frame-rate-640x360" range="513-513" />
<Limit name="measured-frame-rate-1280x720" range="106-106" />
<Limit name="measured-frame-rate-1920x1080" range="93-93" />
</MediaCodec>
<MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<Limit name="measured-frame-rate-320x240" range="535-535" />
<Limit name="measured-frame-rate-640x360" range="480-480" />
<Limit name="measured-frame-rate-1280x720" range="144-144" />
<Limit name="measured-frame-rate-1920x1080" range="95-95" />
</MediaCodec>
</Decoders>
</MediaCodecs>

View file

@ -24,7 +24,7 @@
AudioDecoderCap)> AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> <!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)> <!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (low|high|480p|720p|1080p) #REQUIRED> <!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED> <!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED>
@ -79,101 +79,298 @@
--> -->
<MediaSettings> <MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters --> <!-- Each camcorder profile defines a set of predefined configuration parameters -->
<!-- Back Camera --> <CamcorderProfiles cameraId="0">
<CamcorderProfiles cameraId="0" startOffsetMs="700">
<EncoderProfile quality="480p" fileFormat="mp4" duration="30"> <EncoderProfile quality="qvga" fileFormat="3gp" duration="60">
<Video codec="m4v"
bitRate="128000"
width="320"
height="240"
frameRate="15" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="cif" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="1200000"
width="352"
height="288"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="6000000"
width="720"
height="480"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="2160p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="3449000" bitRate="65000000"
width="720" width="3840"
height="480" height="2160"
frameRate="30" /> frameRate="30" />
<Audio codec="aac" <Audio codec="aac"
bitRate="128000" bitRate="320000"
sampleRate="48000" sampleRate="48000"
channels="2" /> channels="2" />
</EncoderProfile> </EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="30"> <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="192000"
width="176"
height="144"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="1200000"
width="352"
height="288"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="6000000"
width="720"
height="480"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse2160p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="12000000" bitRate="65000000"
width="1280" width="3840"
height="720" height="2160"
frameRate="30" /> frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac" <Audio codec="aac"
bitRate="128000" bitRate="320000"
sampleRate="48000" sampleRate="48000"
channels="2" /> channels="2" />
</EncoderProfile> </EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> <ImageEncoding quality="95" />
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="128000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<ImageEncoding quality="95" />
<ImageEncoding quality="80" /> <ImageEncoding quality="80" />
<ImageEncoding quality="70" /> <ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" /> <ImageDecoding memCap="20000000" />
</CamcorderProfiles> </CamcorderProfiles>
<!-- Front Camera --> <CamcorderProfiles cameraId="1">
<CamcorderProfiles cameraId="1" startOffsetMs="700">
<EncoderProfile quality="480p" fileFormat="mp4" duration="30"> <EncoderProfile quality="qvga" fileFormat="3gp" duration="60">
<Video codec="h264" <Video codec="m4v"
bitRate="3449000" bitRate="128000"
width="720" width="320"
height="480" height="240"
frameRate="30" /> frameRate="15" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<Audio codec="aac" <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
bitRate="128000" <Video codec="h264"
sampleRate="48000" bitRate="1200000"
channels="2" /> width="352"
</EncoderProfile> height="288"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="30"> <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="12000000" bitRate="6000000"
width="1280" width="720"
height="720" height="480"
frameRate="30" /> frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<Audio codec="aac" <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
bitRate="128000" <Video codec="h264"
sampleRate="48000" bitRate="12000000"
channels="2" /> width="1280"
</EncoderProfile> height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> <EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="17000000" bitRate="17000000"
width="1920" width="1920"
height="1080" height="1080"
frameRate="30" /> frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<Audio codec="aac" <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
bitRate="128000" <Video codec="h264"
sampleRate="48000" bitRate="192000"
channels="2" /> width="176"
</EncoderProfile> height="144"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="95" /> <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
<ImageEncoding quality="80" /> <Video codec="h264"
<ImageEncoding quality="70" /> bitRate="1200000"
<ImageDecoding memCap="20000000" /> width="352"
height="288"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="6000000"
width="720"
height="480"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="95" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
</CamcorderProfiles> </CamcorderProfiles>
@ -189,24 +386,24 @@
minBitRate="64000" maxBitRate="50000000" minBitRate="64000" maxBitRate="50000000"
minFrameWidth="176" maxFrameWidth="3840" minFrameWidth="176" maxFrameWidth="3840"
minFrameHeight="144" maxFrameHeight="2160" minFrameHeight="144" maxFrameHeight="2160"
minFrameRate="1" maxFrameRate="30" /> minFrameRate="15" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true" <VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="1000000" minBitRate="64000" maxBitRate="2000000"
minFrameWidth="176" maxFrameWidth="800" minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480" minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" /> minFrameRate="15" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true" <VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="20000000" minBitRate="64000" maxBitRate="40000000"
minFrameWidth="176" maxFrameWidth="1920" minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080" minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="1" maxFrameRate="30" /> minFrameRate="15" maxFrameRate="30" />
<AudioEncoderCap name="aac" enabled="true" <AudioEncoderCap name="aac" enabled="true"
minBitRate="8192" maxBitRate="256000" minBitRate="758" maxBitRate="288000"
minSampleRate="8000" maxSampleRate="48000" minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="2" /> minChannels="1" maxChannels="1" />
<AudioEncoderCap name="heaac" enabled="true" <AudioEncoderCap name="heaac" enabled="true"
minBitRate="8000" maxBitRate="64000" minBitRate="8000" maxBitRate="64000"
@ -219,7 +416,7 @@
minChannels="1" maxChannels="1" /> minChannels="1" maxChannels="1" />
<AudioEncoderCap name="amrwb" enabled="true" <AudioEncoderCap name="amrwb" enabled="true"
minBitRate="6600" maxBitRate="23850" minBitRate="6600" maxBitRate="23050"
minSampleRate="16000" maxSampleRate="16000" minSampleRate="16000" maxSampleRate="16000"
minChannels="1" maxChannels="1" /> minChannels="1" maxChannels="1" />
@ -235,40 +432,6 @@
for TEST applications. For other applications, we do for TEST applications. For other applications, we do
not perform any checks at all. not perform any checks at all.
--> -->
<VideoDecoderCap name="wmv" enabled="true"/> <VideoDecoderCap name="wmv" enabled="false"/>
<AudioDecoderCap name="wma" enabled="true"/> <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 30MB(3MB per 1080p frame x 10
frames) memory.
-->
<VideoEditorCap maxInputFrameWidth="1920"
maxInputFrameHeight="1088" maxOutputFrameWidth="1920"
maxOutputFrameHeight="1080" maxPrefetchYUVFrames="10"/>
<!--
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 4096 means OMX_VIDEO_AVCLevel41.
Please note that the values are in decimal.
These values are for video encoder.
-->
<!--
Codec = h.264, Baseline profile, level 4.0
-->
<ExportVideoProfile name="h264" profile= "1" level="2048"/>
<!--
Codec = h.263, Baseline profile, level 70
-->
<ExportVideoProfile name="h263" profile= "1" level="128"/>
<!--
Codec = mpeg4, Simple profile, level 5
-->
<ExportVideoProfile name="m4v" profile= "1" level="128"/>
</MediaSettings> </MediaSettings>