Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
I am trying to decode a VP8 encoded stream with OMX.SEC.vp8.dec and OMX.google.vpx.decoder in Samsung Galaxy Y Duos. I am configuring MediaCodec with surface and it shows the following error in the log. I am not sure if there are any MediaCodec or MediaFormat settings required prior to configuring MediaCodec which are specific to VP8/VP9 codec. The mimeType I am using is video/x-vnd.on2.vp8
03-0516:55:45.231: A/ACodec(3468): frameworks/av/media/libstagefright/ACodec.cpp:3333 CHECK_EQ((status_t)OK,mCodec->initNativeWindow()) failed:0 vs.-214748364803-0516:57:28.811: A/libc(4165):Fatal signal 11(SIGSEGV) at 0xdeadbaad(code=1), thread 4187(CodecLooper)
Edit (after fadden's reply): Code
int colorFormat =0;int frm_width =640;int frm_height =360;int frm_format_choice =0;String mimeType ="video/x-vnd.on2.vp8";String[] types = info.getSupportedTypes();int numCodecs =MediaCodecList.getCodecCount();MediaCodec mediaCodec =null;MediaFormat mediaFormat =null;publicint decode_frame(){MediaCodec.BufferInfo bufferInfo =newMediaCodec.BufferInfo();for(int i =0; i < numCodecs && codecInfo ==null; i++){MediaCodecInfo info =MediaCodecList.getCodecInfoAt(i);if(info.isEncoder()){continue;}String[] types = info.getSupportedTypes();for(int j =0; j < types.length &&!found; j++){if(types[j].equals(mimeType)){
found =true;
decoder_name
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
2 years ago
I am trying to decode a VP8 encoded stream with OMX.SEC.vp8.dec and OMX.google.vpx.decoder in Samsung Galaxy Y Duos. I am configuring MediaCodec with surface and it shows the following error in the log. I am not sure if there are any MediaCodec or MediaFormat settings required prior to configuring MediaCodec which are specific to VP8/VP9 codec. The mimeType I am using is video/x-vnd.on2.vp8
Edit (after fadden's reply): Code