saki4510t / AudioVideoRecordingSample

Simultaneous audio and video recording sample using MediaCodec/MediaMuxer
Apache License 2.0
950 stars 291 forks source link

How can I change the video width and height. #19

Closed usmankhan495 closed 6 years ago

usmankhan495 commented 6 years ago

I want to change the video width and height.The default out put of video file is 720x1280. I want to change it to 1280x720.But If I change the width and height in below line of code it stretches the video. MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, 1280, 720);

setVideoSize() in CameraGLView Class call twice first time width=1280 and height=720 and second time width=720 and height=1280.