title: KEY_FRAME_RATE is being ignored in Android
body: <p>I am using MediaCodec to encode video from the camera into h264. I used to have 30 fps and this is the output I was getting, but now I need to switch to 25fps and the MediaFormat line:</p>
  
  <pre><code>    format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE);
  </code></pre>
  
  <p>is not working: I always get 30fps regardless of this value (I even tried putting 5 fps and the video is still smooth).</p>
  
  <p>Is there anything else I need to do to achieve my desired fps value?</p>