担心Android的媒体codeC和MediaMuxer,因为API-18的兼容性 [英] Worrying about the compatibility of Android MediaCodec and MediaMuxer since API-18

查看:1014
本文介绍了担心Android的媒体codeC和MediaMuxer,因为API-18的兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过努力,我写了一个演示,可以成功地记录H264 / AAC视频。我用媒体codeC和MediaMuxer这是因为API-18都可用。为了避免颜色格式摄像机输出和媒体codeC连接codeR投入是不同的,我根据连续拍摄选择的颜色格式媒体codecInfo。codecCapabilities.COLOR_FormatSurface grafika的活动。
但我的Andr​​oid手机上成功担心一件事,有这么多种类的Andr​​oid手机,可我的演示录像与API-18或更高。

With an effort, I wrote a demo which can record a h264/aac video successfully. I use MediaCodec and MediaMuxer which are both available since api-18. To avoid that the color formats for the camera output and the MediaCodec encoder input are different, I chose the color format "MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface" according to the continous capture activity of grafika. But I am worrying about one thing, there are so many kinds of Android phones, Can my demo record video successfully on any android mobile phone with api-18 or higher.

推荐答案

有在生活中很少保证,但是在Android CTS测试试图确保所有设备正确地执行某些操作。这听起来像你在做什么利用由CTS覆盖的特点,所以成功的机会都非常好,但总可以例外。

There are few guarantees in life, but the Android CTS tests attempt to ensure that all devices correctly perform certain actions. It sounds like what you're doing makes use of features covered by CTS, so the chances of success are very good, but there can always be exceptions.

有关这个或任何应用程序,这是很好的许多不同的设备上测试成为可能。

For this or any app, it's good to test on as many different devices as possible.

这篇关于担心Android的媒体codeC和MediaMuxer,因为API-18的兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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