简体   繁体   English

在我的Android设备上由多个编码器支持的Mime类型视频/ avc

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

When I enumerate all the media codecs on my device, I noticed that mime type "video/avc" is supported by the following encoders: 当我枚举设备上的所有媒体编解码器时,我注意到以下编码器支持mime类型“video / avc”:

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

When you call MediaCodec.CreateEncoderByType() , how does Android decide which encoder to pick? 当您调用MediaCodec.CreateEncoderByType() ,Android如何决定选择哪个编码器?

Also, besides Google's encoder, many devices may have another encoder specific to the hardware, such as the one from Qualcomm in my case. 此外,除了Google的编码器之外,许多设备可能还有另一个特定于硬件的编码器,例如我的Qualcomm中的编码器。 Generally speaking, should one choose native encoder over the one from Google? 一般来说,应该选择一个来自Google的原生编码器吗? Regards. 问候。

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. 我猜本机编码器更加优化,因为它有更多的硬件知识。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM