I have custom full screen camera in landscape mode. Device size is 1024 x 600.
Supported Preview Size List
width x height
176 x 144
320 x 240
352 x 288
528 x 432
640 x 480
1024 x 576
1024 x 768
Supported Video Size List
width x height
176 x 144
320 x 240
352 x 288
640 x 480
720 x 480
1280 x 720
Without setPreviewSize my preview is compressed from top and bottom and longer from left and right.
My preview getOptimalPreviewSize return 1024 x 576 size, and the near video size is 1280 x 720
So, after setting video size and start recording video
mediaRecorder.setVideoSize(1280, 720);
in surface view changes (in this case zoomed).
I wonder, how to resolve sizes difference problem and before and after recording always see same preview?