Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Image gets stretched to 16:9 ratio after updating from 1.5.0 to 1.5.1 #714

Open
Te-eMster opened this issue Sep 12, 2024 · 2 comments

Comments

@Te-eMster
Copy link

Describe the bug
I have a Raspberry Cam v3 on a Raspberry Zero 2W working as a camera node for a Frigate Server.
Since the area I am surveilling is rather wide, I used to use a resolution of 1536x320. It worked fine that rpicam-apps just "cropped" the image and cut off the top, but the image still didn't look "stretched".
However, after the update from 1.5.0 to 1.5.1 the image seems to be re-sized to 16:9 aspect ratio, resulting in a very stretched looking image.
Is there a way to set this back to just "cropping" the image?

@naushir
Copy link
Collaborator

naushir commented Sep 13, 2024

Do you know the exact command line that is used in Frigate?
We have found a small bug in the crop code, a fix has been posted at raspberrypi/libcamera@91ccff1. Are you able to build a custom version of libcamera and test this change?

@Te-eMster
Copy link
Author

The command used is:
rpicam-vid -t 0 --framerate 20 --width 1536 --height 320 --inline --autofocus-mode manual --lens-position 0.5 -n -o -

Unfortunately I don't know how to build a custom version of libcamera and deploy it to my device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants