In my application I need only a square portion of the camera image, and 60 fps. So I'm running a camera v2 in mode 6, which gives me 1280x720 pixels. I'd like to only get 720x720 pixels, but choose which ones (aligned left, middle, right or anywhere in between).
I've been playing with the camera component port format (format.es.video.width/height, format.es.video.crop.x/y/width/height), and with PARAMETER_INPUT_CROP. But I can never get a square image with a proper aspect ratio and control over the left/right cropping position.
Can someone tell me how to get cropping to work properly? If you'd rather give me raspivid command line option it's fine too, I can translate them to MMAL API calls myself.