android - MediaCodec is crashed in the configure function during the h265 setting.How to correctly use the mediacodec to decode h265? -


my code following:

mediaformat format = mediaformat.createvideoformat("video/hevc",480, 560); decoder.configure(format, null, null, 0); 

my device supports h265 decoding:omx.amlogic.avc.decoder.awesome types:video/hevc

and crash log:

05-09 16:32:16.670: e/xdance(14899): format:{durationus=0, max-input-size=0, height=560, mime=video/hevc, width=480} 05-09 16:32:16.670: e/acodec(14899): [omx.amlogic.avc.decoder.awesome] configurecodec returning error -1010 05-09 16:32:16.670: e/mediacodec(14899): codec reported error. (omx error 0x80001001, internalerror -1010) 05-09 16:32:16.670: w/dalvikvm(14899): threadid=11: thread exiting uncaught exception (group=0x41696ba8) 05-09 16:32:16.680: e/androidruntime(14899): fatal exception: thread-300 05-09 16:32:16.680: e/androidruntime(14899): process: com.clientgroup.server, pid: 14899 05-09 16:32:16.680: e/androidruntime(14899): java.lang.illegalstateexception 05-09 16:32:16.680: e/androidruntime(14899):    @ android.media.mediacodec.native_configure(native method) 05-09 16:32:16.680: e/androidruntime(14899):    @ android.media.mediacodec.configure(mediacodec.java:262) 05-09 16:32:16.680: e/androidruntime(14899):    @ com.clientgroup.server.sensorserver$playerthread.run(sensorserver.java:257) 05-09 16:32:16.680: e/androidruntime(14899):    @ java.lang.thread.run(thread.java:841) 

so,why simple use of mediacodec not ok. can me?


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -