msm8937-common: Update media configs from Nokia 6

This commit is contained in:
Isaac Chen 2018-07-10 12:08:42 +02:00
parent be4f1986d7
commit 3e5f6f88db
2 changed files with 221 additions and 414 deletions

View file

@ -23,7 +23,7 @@
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true"> <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="377-377" /> <Limit name="measured-frame-rate-320x240" range="377-377" />
<Limit name="measured-frame-rate-720x480" range="113-113" /> <Limit name="measured-frame-rate-720x480" range="113-113" />
<Limit name="measured-frame-rate-1280x720" range="50-50" /> <Limit name="measured-frame-rate-1280x720" range="33-33" />
<Limit name="measured-frame-rate-1920x1080" range="18-18" /> <Limit name="measured-frame-rate-1920x1080" range="18-18" />
</MediaCodec> </MediaCodec>
<MediaCodec name="OMX.qcom.video.encoder.h263sw" type="video/3gpp" update="true"> <MediaCodec name="OMX.qcom.video.encoder.h263sw" type="video/3gpp" update="true">
@ -37,9 +37,9 @@
</MediaCodec> </MediaCodec>
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true"> <MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="208-208" /> <Limit name="measured-frame-rate-320x240" range="208-208" />
<Limit name="measured-frame-rate-720x480" range="36-37" /> <Limit name="measured-frame-rate-720x480" range="98-98" />
<Limit name="measured-frame-rate-1280x720" range="16-16" /> <Limit name="measured-frame-rate-1280x720" range="44-44" />
<Limit name="measured-frame-rate-1920x1080" range="9-9" /> <Limit name="measured-frame-rate-1920x1080" range="21-21" />
</MediaCodec> </MediaCodec>
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true"> <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="397-397" /> <Limit name="measured-frame-rate-176x144" range="397-397" />
@ -94,10 +94,10 @@
</MediaCodec> </MediaCodec>
<MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true"> <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="226-226" /> <Limit name="measured-frame-rate-352x288" range="226-226" />
<Limit name="measured-frame-rate-640x360" range="150-170" /> <Limit name="measured-frame-rate-640x360" range="146-132" />
<Limit name="measured-frame-rate-720x480" range="140-150" /> <Limit name="measured-frame-rate-720x480" range="137-134" />
<Limit name="measured-frame-rate-1280x720" range="63-63" /> <Limit name="measured-frame-rate-1280x720" range="27-28" />
<Limit name="measured-frame-rate-1920x1080" range="35-34" /> <Limit name="measured-frame-rate-1920x1080" range="11-12" />
</MediaCodec> </MediaCodec>
<MediaCodec name="OMX.google.mpeg4.decoder" update="true"> <MediaCodec name="OMX.google.mpeg4.decoder" update="true">
<Type name="video/mp4v-es"> <Type name="video/mp4v-es">
@ -124,4 +124,3 @@
</MediaCodec> </MediaCodec>
</Decoders> </Decoders>
</MediaCodecs> </MediaCodecs>

View file

@ -20,225 +20,132 @@
--> -->
<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">
<EncoderProfile quality="low" fileFormat="3gp" duration="30"> <EncoderProfile quality="qvga" fileFormat="3gp" duration="60">
<Video codec="h264" <Video codec="m4v"
bitRate="192000" bitRate="128000"
width="176" width="320"
height="144" height="240"
frameRate="30" /> frameRate="15" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<Audio codec="amrnb" <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
bitRate="12200" <Video codec="h264"
sampleRate="8000" bitRate="1200000"
channels="1" /> width="352"
</EncoderProfile> height="288"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="high" fileFormat="mp4" duration="30"> <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="20000000" bitRate="6000000"
width="1920" width="720"
height="1080" 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="156000" <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="qvga" fileFormat="mp4" duration="60"> <EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="512000" bitRate="17000000"
width="320" width="1920"
height="240" 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="156000" <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>
<EncoderProfile quality="cif" fileFormat="3gp" duration="30"> <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="720000" bitRate="1200000"
width="352" width="352"
height="288" height="288"
frameRate="30" /> frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<Audio codec="amrnb" <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
bitRate="12200" <Video codec="h264"
sampleRate="8000" bitRate="6000000"
channels="1" /> width="720"
</EncoderProfile> height="480"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="480p" fileFormat="mp4" duration="30"> <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="2000000" bitRate="12000000"
width="720" width="1280"
height="480" height="720"
frameRate="30" /> frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<Audio codec="aac" <EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
bitRate="156000" <Video codec="h264"
sampleRate="48000" bitRate="17000000"
channels="2" /> width="1920"
</EncoderProfile> height="1080"
frameRate="30" />
<EncoderProfile quality="720p" fileFormat="mp4" duration="30"> <!-- audio setting is ignored -->
<Video codec="h264" <Audio codec="aac"
bitRate="14000000" bitRate="96000"
width="1280" sampleRate="48000"
height="720" channels="1" />
frameRate="30" /> </EncoderProfile>
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
<Video codec="h264"
bitRate="192000"
width="176"
height="144"
frameRate="30" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapselow" 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="timelapsehigh" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<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="720000"
width="352"
height="288"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapseqvga" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="512000"
width="320"
height="240"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="2000000"
width="640"
height="480"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="14000000"
width="1280"
height="720"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<ImageEncoding quality="95" /> <ImageEncoding quality="95" />
<ImageEncoding quality="80" /> <ImageEncoding quality="80" />
@ -246,209 +153,108 @@
<ImageDecoding memCap="20000000" /> <ImageDecoding memCap="20000000" />
</CamcorderProfiles> </CamcorderProfiles>
<!-- Front Camera -->
<CamcorderProfiles cameraId="1"> <CamcorderProfiles cameraId="1">
<EncoderProfile quality="low" fileFormat="3gp" duration="30"> <EncoderProfile quality="qvga" fileFormat="3gp" duration="60">
<Video codec="h264" <Video codec="m4v"
bitRate="192000" bitRate="128000"
width="176" width="320"
height="144" height="240"
frameRate="30" /> frameRate="15" />
<Audio codec="amrnb"
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="high" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="512000"
width="320"
height="240"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="cif" fileFormat="3gp" duration="30">
<Video codec="h264"
bitRate="720000"
width="352"
height="288"
frameRate="30" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="2000000"
width="720"
height="480"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="14000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
<Video codec="h264"
bitRate="192000"
width="176"
height="144"
frameRate="30" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapselow" 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="timelapsehigh" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="20000000"
width="1920"
height="1080"
frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<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" bitRate="12200"
sampleRate="8000" sampleRate="8000"
channels="1" /> channels="1" />
</EncoderProfile> </EncoderProfile>
<EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30"> <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="1200000" bitRate="1200000"
width="352" width="352"
height="288" height="288"
frameRate="30" /> frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<!-- audio setting is ignored --> <EncoderProfile quality="480p" fileFormat="mp4" duration="30">
<Audio codec="aac" <Video codec="h264"
bitRate="96000" bitRate="6000000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="5000000"
width="720" width="720"
height="480" height="480"
frameRate="30" /> frameRate="30" />
<Audio codec="aac"
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000" bitRate="96000"
sampleRate="48000" sampleRate="48000"
channels="1" /> channels="1" />
</EncoderProfile> </EncoderProfile>
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30"> <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="8000000" bitRate="12000000"
width="1280" width="1280"
height="720" height="720"
frameRate="30" /> frameRate="30" />
<Audio codec="aac"
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000" bitRate="96000"
sampleRate="48000" sampleRate="48000"
channels="1" /> channels="1" />
</EncoderProfile> </EncoderProfile>
<EncoderProfile quality="timelapse1080p" fileFormat="mp4" duration="30"> <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
<Video codec="h264" <Video codec="h264"
bitRate="20000000" bitRate="192000"
width="1920" width="176"
height="1080" height="144"
frameRate="30" /> frameRate="30" />
<!-- audio setting is ignored -->
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<!-- audio setting is ignored --> <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
<Audio codec="aac" <Video codec="h264"
bitRate="156000" bitRate="1200000"
sampleRate="48000" width="352"
channels="2" /> height="288"
</EncoderProfile> 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>
<ImageEncoding quality="95" /> <ImageEncoding quality="95" />
<ImageEncoding quality="80" /> <ImageEncoding quality="80" />
@ -466,33 +272,27 @@
or query the capabilities of the codec at all if it is disabled or query the capabilities of the codec at all if it is disabled
--> -->
<VideoEncoderCap name="h264" enabled="true" <VideoEncoderCap name="h264" 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="15" maxFrameRate="30" minFrameRate="15" maxFrameRate="30" />
maxHFRFrameWidth="1280" maxHFRFrameHeight="720"
maxHFRMode="60" />
<VideoEncoderCap name="h263" enabled="true" <VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="2000000" minBitRate="64000" maxBitRate="2000000"
minFrameWidth="176" maxFrameWidth="864" minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480" minFrameHeight="144" maxFrameHeight="480"
minFrameRate="15" maxFrameRate="30" minFrameRate="15" maxFrameRate="30" />
maxHFRFrameWidth="0" maxHFRFrameHeight="0"
maxHFRMode="0" />
<VideoEncoderCap name="m4v" enabled="true" <VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="2000000" minBitRate="64000" maxBitRate="40000000"
minFrameWidth="176" maxFrameWidth="864" minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="480" minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="15" maxFrameRate="30" minFrameRate="15" maxFrameRate="30" />
maxHFRFrameWidth="0" maxHFRFrameHeight="0"
maxHFRMode="0" />
<AudioEncoderCap name="aac" enabled="true" <AudioEncoderCap name="aac" enabled="true"
minBitRate="8000" maxBitRate="96000" minBitRate="758" maxBitRate="288000"
minSampleRate="8000" maxSampleRate="48000" minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="6" /> minChannels="1" maxChannels="1" />
<AudioEncoderCap name="heaac" enabled="true" <AudioEncoderCap name="heaac" enabled="true"
minBitRate="8000" maxBitRate="64000" minBitRate="8000" maxBitRate="64000"
@ -505,7 +305,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" />
@ -521,8 +321,8 @@
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: The VideoEditor Capability configuration:
@ -547,7 +347,15 @@
These values are for video encoder. These values are for video encoder.
--> -->
<!-- <!--
Codec = h.264, Baseline profile, level 4 Codec = h.264, Baseline profile, level 4.0
--> -->
<ExportVideoProfile name="h264" profile= "1" level="2048"/> <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>