Android设备上的多个编码器支持Mime类型的视频/ AVC [英] Mime type video/avc supported by multiple encoders on my Android device

查看:409
本文介绍了Android设备上的多个编码器支持Mime类型的视频/ AVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我枚举设备上的所有媒体编解码器时,我注意到以下编码器支持mime类型 video / avc:

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

当您调用 MediaCodec.CreateEncoderByType()时,Android如何决定选择哪种编码器?

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

此外,除了Google的编码器外,许多设备可能还具有另一种特定于硬件的编码器,例如我所用的高通公司的编码器。一般来说,应该从Google那里选择一种本地编码器吗?

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.

推荐答案

在几种不同的设备上进行了尝试。看来本机编码器总是出现在Google编码器之前。这是被捡起的。我想原生编码器会更优化,因为它对硬件有更多的了解。

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.

这篇关于Android设备上的多个编码器支持Mime类型的视频/ AVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆