[英]Android: Crop video while recording using MediaCodec and MediaMuxer
I am trying to record the video using GLSurfaceView and audio from the AudioRecord. 我正在尝试使用GLSurfaceView和AudioRecord的音频录制视频。 In MediaMuxer I am sending both audio and video data when onFrameAvailable called. 在MediaMuxer中,我在调用onFrameAvailable时发送音频和视频数据。 I set the camera preview size of 1280 * 720 and preview on the full screen. 我将相机预览尺寸设置为1280 * 720并在全屏幕上预览。 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. 我有问题将帧裁剪为600 * 600.任何人都可以帮我在编码之前裁剪视频帧到MediaCodec和MediaMuxer。
I am taking help from the Grafika android demo code 我正在从Grafika android演示代码中获取帮助
You need to solve to problems: 你需要解决问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.