Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
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.
Turn Your Knowledge into Earnings.
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-05 16:55:45.231: A/ACodec(3468): frameworks/av/media/libstagefright/ACodec.cpp:3333 CHECK_EQ( (status_t)OK,mCodec->initNativeWindow()) failed: 0 vs. -2147483648 03-05 16: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; public int decode_frame() { MediaCodec.BufferInfo bufferInfo = new MediaCodec.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 REPLY 0 views 0 likes 0 shares Facebook Twitter Linked In WhatsApp
I think you migth be missed some of the params. Color format is important here
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
Or if you want to use YUV output buffer you do not need to specify surface.
There are some others, not sure if they matters.
Also, code you shared does not have anything about surface creation, hope it is correct one
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.
General Tech 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.