I am using Android MediaCodec class to encode video on Snapdragon 800 platform. I have set properly the parameters, like resolution, bitrate, bitrate-mode and framerate, but always get blur AVC frames whose video QP is too high(51). I think it is a Snapdragon 800 platform issue, because my same code works fine both on Samsung platform and Snapdragon S4 platform.
Here is some code of mine:
mMF = MediaFormat.createVideoFormat(MIME_TYPE, width, height);
mMF.setInteger(MediaFormat.KEY_BIT_RATE, bitrate);
mMF.setInteger("bitrate-mode", VIDEO_ControlRateConstant);
mMF.setInteger(MediaFormat.KEY_FRAME_RATE, framerate);
mMF.setInteger(MediaFormat.KEY_COLOR_FORMAT, mPrimeColorFormat);
mMF.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, mIDRInterval);
mMF.setInteger("stride", width);
mMF.setInteger("slice-height", height);
mMC.configure(mMF, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);