setVideoSize时,5.0以后,宽高必须是摄像头支持的大小,官方说明 Sets the width and height of the video to be captured. Must be called * after setVideoSource(). Call this after setOutFormat() but before * prepare().
所以你必须要先获取到摄像头支持的分辨率
CamcorderProfile mProfile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
mediarecorder.setVideoSize(mProfile.videoFrameWidth, mProfile.videoFrameHeight);
---------------end