-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't save non-corrupted image files with imx477 camera #636
Comments
Please update your system, and retest.
|
At present the fixes for imx477 are only in apt for Pi4. For Pi0-3 you need to use Please also confirm that you are NOT using the 64bit kernel or OS. 64bit kernel with 32bit userspace should be OK, but MMAL is not currently supported with 64bit userspace. |
I'm using Archlinux ARM actually. So I am guessing I need to change userspace to 32bit...? I am using Pi 4B by the way. |
okay... thanks! |
I just followed your instructions: (1) I cloned userland, (2) reverted those two commits, (3) and ran
are still corrupted... |
Since you are not using a Raspberry PI OS, I doubt there is much else we can suggest. We know our official OS (32bit) works. I suggest moving to that. |
Okay, thanks! But does Raspberry PI OS (32bit) work with the Pi 4B 8GB RAM version? |
Yes, it works fine. A single process can only use 3GB of RAM, but that is rarely a restriction. Multiple processes can use the full 8GB. |
I see. Thank you so much. I am going to try Raspberry PI OS (32bit). |
Can you upload a few of the corrupted images so we can inspect them? |
I was about to dd the old image... Hang on a sec... |
Thanks - that looks like 640 bytes of rubbish, followed by a JFIF header, then mostly 5MB of random memory content (Quake I save file, |
I just tried running
and voila:
The image below is after conversion from ppm to png with Do you understand why it seems to work with raspicam but not with the other raspi* commands? |
Presumably that raspicam package has been built against a 32bit version of the MMAL library, which will work. If raspivid etc have been built as 64bit, and therefore linking against a 64bit MMAL, it won't work. |
I have build userland base on 4a57ea4 raspistill -o output_filename.jpg -v the image was captured ok ,and I can view it use fim output_filename.jpg. |
No matter what I try, I can't for the life of me to get image files that are not corrupted. I tried different encodings: jpg, png, gif and bmp, and the saved files are always corrupted.
Note that I can see the image preview which looks fine, and I can also see live streaming just fine, but every single export results in a corrupted image, no matter the file format. I tried to open the image files with programs like
sxiv
,gpicview
,chromium
, etc.. but to no avail.The text was updated successfully, but these errors were encountered: