I have a camera module v2, which supports 1080p@30.

Following this answer, I am streaming it with gstreamer using:

gst-launch-1.0 -e v4l2src do-timestamp=true ! video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! rtph264pay config-interval=1 ! gdppay ! udpsink sync=false host= port=5000

and receive it on my computer with:

gst-launch-1.0 -v udpsrc port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false

And this seems fine:

video frame in 640x480

Now if I change the resolution to 1920x1080 (instead of 640x480), I am expecting to see the same image, but in a better resolution. Instead I get a cropped image (or rather a zoomed image):

enter image description here

Am I doing something wrong?

1 Answer 1


You're not doing anything wrong. The Raspberry Pi camera uses a cropped portion of the sensor to handle 1080p30 video, so that's why it appears zoomed in. Alternatively you could do 720p or 960p (1280x960). 720p would give you slightly less crop vertically and zero crop horizontally, and 960p would give you the whole sensor resolution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.