安卓:媒体codeC:在Nexus坏的视频生成小480x480,而640x640效果很好 [英] Android: MediaCodec: bad video generated on Nexus for 480x480 while 640x640 works well

查看:250
本文介绍了安卓:媒体codeC:在Nexus坏的视频生成小480x480,而640x640效果很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android上使用媒体codeC(和MediaMuxer)渲染的MPEG4 / AVC视频。

I am rendering an Mpeg4/avc video on android using the MediaCodec (and MediaMuxer).

我测试两个LG的Nexus 4和三星Galaxy 5。

I'm testing on both LG Nexus 4 & Samsung Galaxy 5.

在韩国三星,渲染的视频看起来为640x640和小480x480帧大小预计

但是,在Nexus的,小480x480生成一个难看影片,而640x640产生了良好的视频

BUT, on the Nexus, 480x480 generates a bad looking video, while the 640x640 generates a good video.

Quesion是:是什么原因?这是一个错误或一个功能我不知道。

Quesion is: what is the reason? is this a bug or a "feature" I am not aware of.

有没有我们可以依靠渲染正确地将所有的Andr​​oid设备一个众所周知的帧大小?还是我们需要测试在各种设备上?

Is there a well-known frame size we can rely on being rendered correcly on all Android Device? Or do we need to test on various devices?

推荐答案

关于知名帧大小 - 谷歌要求设备供应商,以满足需求 - 的 http://source.android.com/compatibility/index.html ,文档是在这里:<一href="http://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf" rel="nofollow">http://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf 它具有codeCS第5(5.2和5.3的精确值),在这里你可以找到codeCS相关的请求数。 要检查谷歌提供了CTS测试涵盖了所有需要的分辨率。因此,建议是坚持从此doc决议和覆盖CTS测试

Regarding " well-known frame size" - google ask for device vendors to satisfy requirements - http://source.android.com/compatibility/index.html, doc is here: http://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf It has codecs section 5 (5.2 and 5.3 for exact values)where you can find codecs related reqs. To check it google provides CTS tests which covers all required resolution. So the advice is to stick to resolutions from this doc and covered by CTS tests

这篇关于安卓:媒体codeC:在Nexus坏的视频生成小480x480,而640x640效果很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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