Android MediaCodec for HEVC

爱⌒轻易说出口 提交于 2019-12-04 15:14:09

VLC at least has support for it, although I'm not sure exactly which decoders it has been tested with (I can see from your log snippet that you're using the SW decoder). As far as I know, the only detail about it that you'd need to take care of is passing the packets in annex b format (with start codes) instead of the mp4/mkv format - just as for H264.

See e.g. http://git.videolan.org/?p=vlc.git;a=commitdiff;h=86630a1, http://git.videolan.org/?p=vlc.git;a=commitdiff;h=5e19ce93 and http://git.videolan.org/?p=vlc.git;a=commitdiff;h=7b79a086 for some examples on this.

Also, the log message about storeMetaDataInBuffers failing is unrelated and nothing to worry about, see Q12 at http://bigflake.com/mediacodec/.

Might also want to look at the MX Player, which plays HEVC on my Nexus 7. But, absent any current Android hardware support for HEVC, HD content playback is too jittery. 640p and lower resolutions play fine - though maybe not in the majority of Android devices with lesser cpu capability.

Jack

The problem seems to be with the resolution - 512x216 didn't work and gave the above symptoms, but 1920x800 worked fine. I've asked another question about what resolutions are supported.

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