美文网首页
E/MediaCodec: configure failed w

E/MediaCodec: configure failed w

作者: 勤息嘻嘻嘻 | 来源:发表于2019-05-29 09:54 被阅读0次

    12-28 12:19:53.236 1165-1284/? E/BufferQueueProducer: [SurfaceView] connect(P): already connected (cur=3 req=3)
    12-28 12:19:53.236 14164-14319/com.idcvideo.haokaihuidraw E/MediaCodec: native_window_api_connect returned an error: Invalid argument (-22)
    12-28 12:19:53.236 14164-14164/com.idcvideo.haokaihuidraw E/MediaCodec: configure failed with err 0xffffffea, resetting...

    记一次解码器异常

    --------- beginning of crash
    

    12-28 12:19:53.818 14164-14164/com.idcvideo.haokaihuidraw E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.idcvideo.haokaihuidraw, PID: 14164
    android.media.MediaCodecCodecException: Error 0xffffffea at android.media.MediaCodec.native_configure(Native Method) at android.media.MediaCodec.configure(MediaCodec.java:577) at com.fvp.sip.MyVideoDecoder.createDecoder(MyVideoDecoder.java:46) at com.idcvideo.view.MeetingActivity3.surfaceCreated(MeetingActivity.java:485)

    网上查是参数无效 状态异常 但是所有参数已经核对无异常,后来询问同事 是要在创建前reset 一下 保证状态正常。

    https://juejin.im/entry/5aa234f751882555712bf210?tdsourcetag=s_pcqq_aiomsg
    这个是相关资料,看来解决问题还是要综合考虑。

    相关文章

      网友评论

          本文标题:E/MediaCodec: configure failed w

          本文链接:https://www.haomeiwen.com/subject/lveslqtx.html