jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
362 stars 59 forks source link

gp_camera_capture_preview locks the mirror #53

Closed dmitryelj closed 6 years ago

dmitryelj commented 6 years ago

Hi Jim,

Small question, maybe you know the answer.

I'm testing gp_camera_capture_preview to get the stream, it works fine, but even after camera.exit() mirror is staying locked in open position. Do you know good solution to fix that?

One hacky way, I've found, is to initialise the camera second time:

camera.exit(context)
time.sleep(0.5)
context = gp.Context()
camera = gp.Camera()
camera.init(context)
time.sleep(0.5)
camera.exit(context)

It releases the mirror, and user can use the camera further. Its definitely should be a better way? Even the "gphoto2 --capture-movie=100" command having the same 'bug'.

And a second question, btw - there is absolutely no way to change mjpeg preview image size?

Thanks a lot.

jim-easterbrook commented 6 years ago

I have no idea about either question. You might get an answer from the gphoto2 users mailing list, as someone there might have the same model of camera and might have tried something similar.

dmitryelj commented 6 years ago

Thanks, I'll ask there.

jim-easterbrook commented 5 years ago

See #71 for a way to set / unset mirror lock-up on Canon cameras.