Mime type video/avc supported by multiple encoders on my Android device

风格不统一 提交于 2019-12-07 17:04:10

问题


When I enumerate all the media codecs on my device, I noticed that mime type "video/avc" is supported by the following encoders:

OMX.qcom.video.encoder.avc
OMX.google.h264.encoder

When you call MediaCodec.CreateEncoderByType(), how does Android decide which encoder to pick?

Also, besides Google's encoder, many devices may have another encoder specific to the hardware, such as the one from Qualcomm in my case. Generally speaking, should one choose native encoder over the one from Google? Regards.


回答1:


Tried it on a few different devices. It appears the native encoder always appears before the one from Google. This is the one that gets picked up. I guess native encoder is more optimized as it has more knowledge of the hardware.



来源:https://stackoverflow.com/questions/38859106/mime-type-video-avc-supported-by-multiple-encoders-on-my-android-device

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!