I just played through the android camera tutorial . the problem is orientation. the recorded videos are in the wrong orientation if I start in portrait mode. In my case, I changed the preview layout a bit - now it has a wrong / arbitrary aspect, but the recorded videos also have the same (wrong) aspect ratio !?
Why and how are previews and actual recordings related? is there any way to separate it: the recorded video should only record what the camera provides.
So, how to create a camera application that ignores the orientation when recording (or uses the orientation only for saving in metadata), but reflects it in the preview (do nothing - the portrait becomes a landscape, turning the phone). are there any examples of camera applications with proper rotation processing?
source
share