android.media.MediaCodec $ CodecException:无法初始化OMX.qcom.video.decoder.avc,错误0xfffffff4

时间:2019-04-01 07:57:36

标签: exoplayer2.x

在设备Lenovo K33a42上,出现以下给定错误,屏幕为黑色,无法播放视频

com.google.android.exoplayer2.ExoPlaybackException:com.google.android.exoplayer2.mediacodec.MediaCodecRenderer $ DecoderInitializationException:解码器初始化失败:OMX.qcom.video.decoder.avc,Format(1,null,null,video /avc、null、-1、null、[480、360、-1.0]、[-1、-1])         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:479)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:1261)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1111)         在com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:552)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:647)         在com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)         在com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)         在android.os.Handler.dispatchMessage(Handler.java:98)         在android.os.Looper.loop(Looper.java:154)         在android.os.HandlerThread.run(HandlerThread.java:61)      造成原因:com.google.android.exoplayer2.mediacodec.MediaCodecRenderer $ DecoderInitializationException:解码器初始化失败:OMX.qcom.video.decoder.avc,Format(1,null,null,video / avc,null,-1,null, [480,360,-1.0],[-1,-1])         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodecWithFallback(MediaCodecRenderer.java:753)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:474)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:1261)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1111)         在com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:552)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:647)         在com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)         在com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)         在android.os.Handler.dispatchMessage(Handler.java:98)         在android.os.Looper.loop(Looper.java:154)         在android.os.HandlerThread.run(HandlerThread.java:61)      引起原因:android.media.MediaCodec $ CodecException:无法初始化OMX.qcom.video.decoder.avc,错误0xfffffff4         在android.media.MediaCodec.native_setup(本机方法)         在android.media.MediaCodec。(MediaCodec.java:1774)         在android.media.MediaCodec.createByCodecName(MediaCodec.java:1755)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodec(MediaCodecRenderer.java:802)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodecWithFallback(MediaCodecRenderer.java:745)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:474)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:1261)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1111)         在com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:552)         在com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:647)         在com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)         在com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)         在android.os.Handler.dispatchMessage(Handler.java:98)         在android.os.Looper.loop(Looper.java:154)         在android.os.HandlerThread.run(HandlerThread.java:61)

0 个答案:

没有答案