Menu

#117 [libgphoto2] cannot leave preview mode

open
nobody
None
5
2014-10-06
2014-09-29
Jones
No

Using a Canon 6D and libgphoto2, I am trying to switch between capture and preview mode. That would be the equivalent of gphoto2 --set-config eosviewfinder=1 and gphoto2 --set-config eosviewfinder=0, both of which are working smoothly (as long as I don't run the autofocus manually as described here).

However, using libgphoto2, I can only go to preview mode (setting eosviewfinder to "1"), but I cannot go back to capture mode (setting eosviewfinder to "0" does not give any error but just doesn't do anything).

I am using the same code as in the focus example (here), but with "eosviewfinder" instead of "autofocusdrive".

Am I missing something?

Discussion

  • Marcus Meissner

    Marcus Meissner - 2014-09-29

    can you attach the code you use here perhaps? that will make it easier to reproduce this for me.

     
  • Jones

    Jones - 2014-09-29

    Thanks for the answer. I uploaded a minimal example here. I am coding in C++.

    Actually, I used focus.c to make the function toggleConfig. It works with "autofocusdrive" (even though it lets the camera in an unstable state) and it also works with "eosviewfinder=1" (using `setPreviewMode(true));

    Running this code, you should hear that it goes to preview mode (setPreviewMode(true)) but it never goes back to capture mode (setPreviewMode(false)).

     
  • Jones

    Jones - 2014-10-06

    Could you reproduce my problem using the code I linked?

     

Log in to post a comment.