mark79 wrote:thanks James!
Is there any way to get the night or verylong exposure mode to automatically go up to 1 second at ISO 1600 without passing any shutter speed setting? (provided the timeout is long enough)
If its not currently possible, is this something that could be changed in raspistill or the camera firmware?
I think that would need a GPU change to the camera tuning (there are different sets of parameters for each of the exposure modes - I think I can force high ISO and long shutters in there, but need to check)
If you could check (whenever you have time), I'd greatly appreciate it! If there's a way to set or automatically allow any ISO higher than 1600, that'd be very much welcomed as well!
I have come up with a solution to read the EXIF data and adjust the parameters being passed to raspistill for every shot, though it's not as efficient (nor as simple) as if it were built into the exposure modes. If anyone is interested in this, you'll need to install exiftool and bc:
Code: Select all
apt-get install libimage-exiftool-perl
apt-get install bc
And run a script with a loop similar to this (this has been modified from the actual code I'm using to remove parts unnecessary for this example):
Code: Select all
while [ true ]; do
if [ "$lightValueTimesTen" -lt 15 ]; then
exposure="sports --shutter 1000000"
elif [ "$lightValueTimesTen" -lt 25 ]; then
exposure="sports --shutter 800000"
raspistill --exposure $exposure --output "$outputfile" --verbose --timeout $timeout
lightValue=`exiftool "$outputfile" -LightValue | sed "s/.*: //"`
lightValueTimesTen=`echo "$lightValue * 10" | bc -l | sed "s/\..*//"`
I do this in two steps to avoid the possibility of underexposure or overexposure in the transition times when the light is changing at dusk or dawn. The settings may not be the most optimal but are pretty close. Essentially, this allows for auto-exposure from minimum to maximum exposure on the Pi Camera Module when creating a time-lapse or running the camera as a live webcam. I only coded this last night after it was dark so won't have actual tests for both dawn and dusk until later this evening. Right now, this is running on one of my live time-lapse cameras, visible at: http://markmarano.com/live-time-lapse-w ... pi-camera/