android - How to debug MediaCodec errors starting from OMX logcat messages? -
using mediacodec, many times error messages come omx layer. how can 1 utilize them help debug not trivial issues? example, have application fails create codec decoding h264 stream. seems happen on devices samsung s4 (i9505), while not happening on s3, nexus 4(old). same video decoded fine in cases on s4. before creating codec, there intensive computation, including opegl stuff. line fails is:
mediacodec.createbycodecname(codecinfo[0].getname()); with codecinfo[0].getname() having value omx.qcom.video.decoder.avc , next output in logcat:
06-23 19:12:18.197: i/omxclient(23749): using client-side omx mux. 06-23 19:12:18.197: e/omx-vdec-1080p(282): in omx vdec constructor 06-23 19:12:18.197: e/omx-vdec-1080p(282): vidc.dec.debug.ts value 0 06-23 19:12:18.197: e/omx-vdec-1080p(282): vidc.dec.debug.concealedmb value 0 06-23 19:12:18.197: e/omx-vdec-1080p(282): vidc.dec.debug.extradata value 0 06-23 19:12:18.197: e/omx-vdec-1080p(282): opened vdec ion devicefd = 35 06-23 19:12:18.197: e/omx-vdec-1080p(282): created vdec ionlock 06-23 19:12:18.197: e/omx-vdec-1080p(282): vdec instances = 1, ion device fd = 35 06-23 19:12:18.197: e/omx-vdec-1080p(282): omx_vdec::component_init(): start of new playback : role = omx.qcom.video.decoder.avc : device = /dev/msm_vidc_dec 06-23 19:12:18.197: d/statusbar-networkcontroller(1111): updatedatanettype() 06-23 19:12:18.197: d/statusbar-networkcontroller(1111): nothing, mroamingiconid = 0 06-23 19:12:18.227: e/omx-vdec-1080p(282): omx_vdec::component_init(): open returned fd 36, errno 24 06-23 19:12:18.227: e/omx-vdec-1080p(282): component_init: current performance level = 0 06-23 19:12:18.227: e/omx-vdec-1080p(282): pipe creation failed. 06-23 19:12:18.227: e/omx-vdec-1080p(282): component init failed 06-23 19:12:18.227: e/omx-vdec-1080p(282): calling vdec_ioctl_stop_next_msg 06-23 19:12:18.227: e/omx-vdec-1080p(282): in omx vdec destructor(), vdec instances = 1 06-23 19:12:18.227: e/omx-vdec-1080p(282): calling close() on video driver 06-23 19:12:18.247: e/omx-vdec-1080p(282): calling close() on vdec ion devicefd = 35 06-23 19:12:18.247: e/omx-vdec-1080p(282): destroyed vdec ionlock 06-23 19:12:18.247: e/omx-vdec-1080p(282): exit omx vdec destructor 06-23 19:12:18.247: e/(282): destroy c2d instance 06-23 19:12:18.247: e/(282): destroy c2d instance 06-23 19:12:18.247: e/acodec(23749): unable instantiate decoder 'omx.qcom.video.decoder.avc'. 06-23 19:12:18.247: e/mediacodec(23749): codec reported error. (omx error 0x80001003, internalerror -2147483648) also, in case device dependent error, can developer help solve issue?
android mediacodec openmax
No comments:
Post a Comment