encoder = AMediaCodec_createEncoderByType("video/avc");
AMediaFormat *encformat = AMediaFormat_new();
LOGV("encformat has been created and it is %x",encformat);
AMediaFormat_setInt64(encformat,AMEDIAFORMAT_KEY_BIT_RATE,125000);
AMediaFormat_setFloat(encformat,AMEDIAFORMAT_KEY_FRAME_RATE,15.0);
AMediaFormat_setInt64(encformat,AMEDIAFORMAT_KEY_COLOR_FORMAT,0x00000015);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_WIDTH,352);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_HEIGHT,288);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_MAX_WIDTH,352);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_MAX_HEIGHT,288);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_I_FRAME_INTERVAL,5);
AMediaFormat_setInt32(encformat,AMEDIAFORMAT_KEY_STRIDE,352);
AMediaFormat_setString(encformat,AMEDIAFORMAT_KEY_MIME,"video/avc");
AMediaCodec_configure(encoder,encformat,NULL,NULL,AMEDIACODEC_CONFIGURE_FLAG_ENCODE); get following error -
E/ACodec(22841): [OMX.qcom.video.encoder.avc] configureCodec returning error -38 E/ACodec(22841): signalError(omxError 0x80001001, internalError -2147483648) E/MediaCodec(22841): Codec reported err 0x80001001, actionCode 0, while in state 3
I would really appreciate if I can get help me figure out the problem. Also I would like to know if there is any way to get verbose log from the stage fright library.
Thanks,