Fwd: How to properly set aperture, iso and shutterspeed?

Jochen Keil <[email protected]> Thu, 22 Oct 2020 14:27:46 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <CALrkWEDdjOjtg-HPbub6PoCek2bN8h0OcbuTK6G=E9BNA5WytA@mail.gmail.com>
Sorry, accidentally replied to Jim in private.

---------- Forwarded message ---------
From: Jochen Keil <[email protected]>
Date: Thu, Oct 22, 2020 at 2:14 PM
Subject: Re: [Gphoto-user] How to properly set aperture, iso and
shutterspeed?
To: Jim Easterbrook <[email protected]>


Hi Jim,

On Thu, Oct 22, 2020 at 2:03 PM Jim Easterbrook <[email protected]>
wrote:

> On 22/10/2020 12:20, Jochen Keil wrote:
> >
> > Actually, for 'f-number' it's floats only. But for 'shutterspeed' and
> > 'iso' it's a string (const char *). I've added a full code example below.
> >
> >      > Is there an easy way to set shutterspeed and f-number to the next
> >     value
> >      > or do I have to somehow figure out what 10/10 means and translate
> >     it to
> >      > 1? I think I could use a static table for that but that seems to
> be
> >      > laborious and error-prone.
> >
> >     The Python Fraction type is probably the easiest way to convert the
> >     strings '10/10' and '1' to the same result.
> >
> >
> > So, did I get it right, there is no easy way to step through camera
> > settings, not even using the native C interface?
>
> As the f-number is a float it's not clear what the steps would be. I
> assume some cameras allow values not in the usual f/2, f/2.8, f/4, f/5.6
> sequence. I suppose you could set values then read back the actual value
> to find out what steps your camera uses.
>

Well, I was dreaming of some kind of camera functionality, where the camera
would set the next value itself. This would make it much easier to build a
universal interface for any supported camera instead of just mine. Looks
like I have to take the hard route though.


-- 
> Jim Easterbrook                 <http://www.jim-easterbrook.me.uk/>
>
>
> _______________________________________________
> Gphoto-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gphoto-user
>

_______________________________________________
Gphoto-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-user