Hi In my video conference appliction, I want use HW video encoder - OMX.qcom.video.encoder.avc. when it is creating , there is a crash issue, I guess it is meta problem.but I can not fix out. by the way,my code work fine when setting to use PV encoder. I test it on android2.3, HTC evo3D.
my code: enc_meta->setInt32(kKeyTimeScale, 1000); enc_meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); enc_meta->setInt32(kKeyWidth, width); enc_meta->setInt32(kKeyHeight, height); enc_meta->setInt32(kKeyIFramesInterval, iframeinterval); enc_meta->setInt32(kKeyStride, stride); enc_meta->setInt32(kKeySliceHeight, sliceHeight); enc_meta->setInt32(kKeyColorFormat, colorFormat); // enc_meta->setInt32(kKeySampleRate, framerate); enc_meta->setInt32(kKeySampleRate, 10); // enc_meta->setInt32(kKeyVideoProfile, 66); // enc_meta->setInt32(kKeyVideoLevel, 32); enc_meta->setInt32(kKeyMaxInputSize, width*height*3/2); enc_meta->setInt32(kKeyBitRate, 480000); CHECK_EQ(handle->mClient.connect(), OK); LOGE("create TEST omx in w:%d h:%d rate:%d stride: %d",width,height,framerate,stride); handle->mVideoSource = OMXCodec::Create( handle->mClient.interface(), enc_meta, true, // createEncoder source // ); ,NULL, flags); LOGE("create enc omx out "); CRASH information: D/OMXCodec(13244): [Stagefright] Codec =OMX.qcom.video.encoder.avc I/QC_CORE ( 8702): OMXCORE: qc_omx_component_set_parameter a718c, 40011120 , 16777239 D/OMXCodec(13244): parseFlags value: 0x00000000 F/OMXCodec(13244): frameworks/base/media/libstagefright/OMXCodec.cpp: 1473 success I/DEBUG ( 6659): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 6659): Build fingerprint: 'HTC/htc_shooteru/shooteru:2.3.4/ GRJ22/eng.u18000.20110813.032722:userdebug/test-keys' I/DEBUG ( 6659): pid: 13244, tid: 13343 >>> com.kaiyu.ht.android.phone <<< -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting