Use MediaCodec to record 720p video but fps of encoding video is too low
问题 I managed to write a video recording demo, my implementation is the same as ContinuousCaptureActivity of Grafika. In ContinuousCaptureActivity.java, The author create egl object in SurfaceCreated which run in UI thread and call drawFrame also in UI thread. He did 2 things in drawFrame, draw frame to screen and push data to encoder. See the code here: ContinuousCaptureActivity Because I set the encoding video size to 1280*720 which is large, the camera preview is not smooth and fps of target