gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.06k stars 327 forks source link

--trigger-capture delay before capture #663

Open danielsvane opened 3 years ago

danielsvane commented 3 years ago

Describe the bug

When using --trigger-capture on my Canon m200, it takes between 1.4 and 8 seconds for a capture. The log file shows a rather large delay around saving some settings and initializing camera: image The camera is in manual mode, manual focus.

Can I do anything to make the capture faster?

Name the camera Canon m200, displayed as "USB PTP Class Camera"

libgphoto2 and gphoto2 version gphoto2: 2.5.20 libgphoto2: 2.5.22 libgphoto2_port: 0.12.0

To Reproduce Attach a Canon m200 and run gphoto2 --trigger-capture debug.log

danielsvane commented 3 years ago

I somewhat solved this, even though I'm still not sure what causes the long delay when opening the connection.

To take a picture instantly I start a process with gphoto2 --capture-image -I -1. Calling kill -USR1 PID with the PID of the started process then takes the picture instantly. This is maybe the way it's intended.

You can close this issue if the startup time is normal.

msmeissn commented 3 years ago

the quoted 1.4s delay is really before we do anything relevant... is the harddisk access to ~/.gphoto/settings over remote fs or so? it likely is a write delay on this file.

msmeissn commented 3 years ago

likely solved?