MediaCodec提供了storeMetaDataInBuffers跟踪错误 [英] MediaCodec is giving a storeMetaDataInBuffers trace error

查看:1081
本文介绍了MediaCodec提供了storeMetaDataInBuffers跟踪错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过Android中的MediaCodec进行编码时,我遇到了下一个错误.

I'm getting on the logcat the next error while encoding via the MediaCodec in Android.

实际的编码工作正常,并且输出正确生成,因此我无法真正理解为什么得到此跟踪.它是无害的错误跟踪,还是我缺少什么?

The actual encoding works fine and the output is produced correctly, so I can't really understand why I get this trace. Is it a harmless error trace, or is there something I'm missing?

E/ACodec(6438):[OMX.qcom.video.encoder.h263]错误-1010的storeMetaDataInBuffers(输出)失败

接下来是获取跟踪的代码

Next is the code where I get the trace

final int BIT_RATE          = 4000000;
final int FRAME_RATE        = 30;
final int IFRAME_INTERVAL   = 5;
final String MIME_TYPE      = "video/avc";

final MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, width, height);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
format.setInteger(MediaFormat.KEY_BIT_RATE, BIT_RATE);
format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE);
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL);

MediaCodec encoder = MediaCodec.createEncoderByType(MIME_TYPE);

//---------------------------------
// NEXT LINE PRODUCES THE TRACE
encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
//---------------------------------

推荐答案

这是无害的,大多数设备都显示了这一点.参见Q12,网址为 http://bigflake.com/mediacodec/.

It's harmless, most devices show this. See Q12 at http://bigflake.com/mediacodec/.

这仅表明编码器不支持用信号发送表面编码的第一种方法,因此它使用了其他一些设置方法. (MediaCodec/ACodec层可以通过多种方式将其告知各个编码器.)

This only tells that the first way of signaling surface encoding wasn't supported by the encoder, so it used some other ways of setting it up. (There are multiple ways for the MediaCodec/ACodec layer to tell the individual encoder about it.)

这篇关于MediaCodec提供了storeMetaDataInBuffers跟踪错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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