-
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
Raspiyuv always taking two pictures #640
Comments
Why have you set -t to -1? What are you trying to achieve with that? |
My excuses, this is a paste error. The used value was -t 1. |
What about camera buffer callbacks - they are the ones that save the image, and you may get more than one of those depending on how much data needs to be saved. But it all ends up in the same file. |
In the end we get indeed one file, but the time to make the file takes twice as long as we would expect (based on the shutter time). When we put the preview on we can also see that the previews before both callbacks are different. Therefore we get the impression there are 2 images captured instead of one. |
It seems to still be doing an AGC/AWB pass on the first frame, which sets it up to take the actual image. Perhaps. |
All the raspicam apps start preview by default. If as frame has been requested, then it will be completed, therefore you get one preview frame and one capture frame. The preview frame is also used to collect some stats for AE and AWB to work with. If you have fixed all parameters, then raspistill gained a mode to drop immediately into burst mode (so no preview). It looks like we missed out the equivalent change to RaspiStillYUV.c, but exactly the same change should be applicable there. |
I can indeed confirm it is working well with raspistill in combination with the burst mode. |
…res. Adds the equivalent to "Add option to start in burst mode if AE settings are manual" patch to RaspiStillYUV so it too can drop straight into capture mode. See raspberrypi#640
I needed to create a PR for userland, so have tacked this patch in as well. #645 |
…res. Adds the equivalent to "Add option to start in burst mode if AE settings are manual" patch to RaspiStillYUV so it too can drop straight into capture mode. See #640
Has this issue been resolved and it can be closed? |
It seems to be the raspiyuv command is always taking 2 pictures. Therefore the needed time is twice as big as expected.
E.g. when executing next command:
raspiyuv -drc off -mm matrix -rgb -set -st -ex off -n -ss 50000000 -md 3 -t 1 -dg 2.0 -ag 2.0 -awb off -awbg 2.0,2.0 -o ~/output.raw
There are 2 camera control callbacks:
Camera control callback cmd=0x48435045mmal: Exposure now 49999693, analog gain 512/256, digital gain 512/256
mmal: AWB R=512/256, B=512/256
Camera control callback cmd=0x48435045mmal: Exposure now 49999693, analog gain 512/256, digital gain 512/256
Time needed is almost 2 minutes what is actually more than twice the defined shutter time.
System Information
Raspberry Pi Zero W Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Used camera: IMX477
The text was updated successfully, but these errors were encountered: