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

Added some options to burst capture mode (see below) #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

TheCapsLock
Copy link

I added the following options:

  • captureTarget: allows one to select wether pictures are saved in
    internal memory or on storage card. Internal memory can be too small
    to store capture pictures resulting on PTP errors preventing us to do
    more captures
  • forceOverwrite: allows overwriting existing files if any (without this
    and with existing pictures on disk the next captures was failing
    because gphoto2 requested a user input in interactive shell asking if it
    is allowed to overwrite existing files)
  • burstMode: allow using fast or slow burst mode instead of slow mode
    only

CapsLock added 4 commits November 22, 2021 11:34
I added the following options:

- captureTarget: allows one to select wether pictures are saved in
  internal memory or on storage card. Internal memory can be too small
to store capture pictures resulting on PTP errors preventing us to do
more captures
- forceOverwrite: allows overwriting existing files if any (without this
  and with existing pictures on disk the next captures was failing
because gphoto2 requested a user input in interactive shell asking if it
is allowed to overwrite existing files)
- burstMode: allow using fast or slow burst mode instead of slow mode
  only
using --wait-event=1s makes gphoto2 terminate after exactly one second
regardless if processing is finished.

An alternative way is to use string match on CAPTURECOMPLETE action as
stated on manpages and
https://github.com/gphoto/gphoto2/blob/eab149c6d71c406e2d0ce74028e200b71ceb0601/gphoto2/actions.c#L1228
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

Successfully merging this pull request may close these issues.

1 participant