diff options
| author | Moyster <oysterized@gmail.com> | 2018-01-17 19:12:44 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-01-17 19:13:03 +0100 |
| commit | 0932243b9271e143842b5b6f6bc90b48ea362244 (patch) | |
| tree | f59ca6d776d672326a5b422e38dd7505f11a6a95 | |
| parent | 45a66c9257cafe3db040aab180b545e4b8e8c292 (diff) | |
configs: media: finetune media_codecs and remove non-working ffmpeg video codecs
| -rw-r--r-- | configs/media/media_codecs.xml | 32 | ||||
| -rw-r--r-- | configs/media/media_codecs_ffmpeg.xml | 8 |
2 files changed, 21 insertions, 19 deletions
diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml index 555fdbd..1b446f0 100644 --- a/configs/media/media_codecs.xml +++ b/configs/media/media_codecs.xml @@ -75,6 +75,9 @@ Only the three quirks included above are recognized at this point: --> <MediaCodecs> + <Settings> + <Setting name="max-video-encoder-input-buffers" value="10" /> + </Settings> <Decoders> <!-- Mtk codecs --> <MediaCodec name="OMX.MTK.VIDEO.DECODER.MPEG4" type="video/mp4v-es" > @@ -82,51 +85,51 @@ Only the three quirks included above are recognized at this point: <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> <Feature name="adaptive-playback"/> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.H263" type="video/3gpp" > - <Limit name="size" min="128x96" max="1408x1152" /> + <Limit name="size" min="16x16" max="1920x1080" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> <Feature name="adaptive-playback"/> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.AVC" type="video/avc" > <Limit name="size" min="64x64" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> <Feature name="adaptive-playback"/> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="6" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.VC1" type="video/x-ms-wmv" > <Limit name="size" min="16x16" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.DIVX" type="video/divx" > <Limit name="size" min="16x16" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.DIVX3" type="video/divx3" > <Limit name="size" min="16x16" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.XVID" type="video/xvid" > <Limit name="size" min="16x16" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.DECODER.S263" type="video/flv1" > <Limit name="size" min="16x16" max="1920x1088" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> </Decoders> @@ -137,7 +140,7 @@ Only the three quirks included above are recognized at this point: <Limit name="block-size" value="16x16" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.ENCODER.H263" type="video/3gpp" > <Limit name="size" min="176x144" max="176x144" /> @@ -145,16 +148,15 @@ Only the three quirks included above are recognized at this point: <Limit name="block-size" value="16x16" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> <MediaCodec name="OMX.MTK.VIDEO.ENCODER.AVC" type="video/avc" > - <Limit name="size" min="128x96" max="1920x1080" /> - <Limit name="alignment" value="2x2" /> + <Limit name="size" min="64x64" max="1920x1080" /> + <Limit name="alignment" value="16x16" /> <Limit name="block-size" value="16x16" /> <Quirk name="requires-allocate-on-input-ports" /> <Quirk name="requires-allocate-on-output-ports" /> - <Limit name="concurrent-instances" max="16" /> - <Feature name="can-swap-width-height" /> + <Limit name="concurrent-instances" max="8" /> </MediaCodec> </Encoders> <Include href="media_codecs_ffmpeg.xml" /> diff --git a/configs/media/media_codecs_ffmpeg.xml b/configs/media/media_codecs_ffmpeg.xml index 3c4ea58..29b99a9 100644 --- a/configs/media/media_codecs_ffmpeg.xml +++ b/configs/media/media_codecs_ffmpeg.xml @@ -18,10 +18,10 @@ <Decoders> <!-- ffmpeg audio codecs --> - <MediaCodec name="OMX.ffmpeg.aac.decoder" type="audio/mp4a-latm"> + <!-- MediaCodec name="OMX.ffmpeg.aac.decoder" type="audio/mp4a-latm"> <Limit name="channel-count" max="8" /> <Limit name="sample-rate" ranges="8000-192000" /> - </MediaCodec> + </MediaCodec --> <MediaCodec name="OMX.ffmpeg.ac3.decoder" type="audio/ac3" > <Limit name="channel-count" max="8" /> <Limit name="sample-rate" ranges="8000-192000" /> @@ -68,7 +68,7 @@ </MediaCodec> <!-- ffmpeg video codecs --> - <MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx"> + <!-- MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx"> <Limit name="size" min="2x2" max="2048x2048" /> <Limit name="alignment" value="2x2" /> <Feature name="adaptive-playback" /> @@ -107,6 +107,6 @@ <Limit name="size" min="2x2" max="2048x2048" /> <Limit name="alignment" value="2x2" /> <Feature name="adaptive-playback" /> - </MediaCodec> + </MediaCodec --> </Decoders> </Included> |
