I am trying to record the video using GLSurfaceView and audio from the AudioRecord. In MediaMuxer I am sending both audio and video data when onFrameAvailable called. I set the camera preview size of 1280 * 720 and preview on the full screen. I am having problem to crop the frame to 600 * 600. Can anybody help me to crop the video frame before encoding to MediaCodec and MediaMuxer.
I am taking help from the Grafika android demo code