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
Post a Comment