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:
format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE);
is not working: I always get 30fps regardless of this value (I even tried putting 5 fps and the video is still smooth).
Is there anything else I need to do to achieve my desired fps value?