title: Select H264 Profile when encoding with MediaCodec and MTK Codec
body: <p>We have an Android app that encodes video into H264. On all previously tried Android devices this encodes to Baseline profile which is what I need.</p>
  
  <p>On the Lenovo Yoga 10 the codec is OMX.MTK.VIDEO.ENCODER.AVC. This encodes the video as High Profile which gives a problem for the receiving device.</p>
  
  <p>I am using MediaCodec. There seems to be no way to set the profile to be used.</p>
  
  <p>Is there any way of doing this ? The codec does claim to support Baseline profile but gives no way of using it. Is there a codec specific parameter for this?</p>