gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
721 stars 116 forks source link

Canon EOS 5DS Long Capture Time #184

Open sepehrhm opened 5 years ago

sepehrhm commented 5 years ago

I am using the gphoto2 cli with this configuration:

$ gphoto2 --version
gphoto2 2.5.17

Copyright (c) 2000-2018 Lutz Mueller and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.17         gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2      2.5.18         all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, USB, serial without locking

I am having an issue with my Canon 5DS, that I have not seen with any other Canon cameras. Capturing (and downloading) and image takes a long time. I cannot definitely reproduce this, as it happens randomly. However, after connecting the camera this issue always happens for the first shot.

Here are the timings of the command, measured by the Bash time utility:

$ time gphoto2 --capture-image-and-download --force-overwrite --filename image.jpg

*** Error ***
Canon EOS Full-Press failed (0x02ff: PTP I/O Error)
ERROR: Could not capture image.
ERROR: Could not capture.
New file is in location /capt0000.jpg on the camera
Saving file as image.jpg
Deleting file /capt0000.jpg on the camera

real    0m21.099s
user    0m0.036s
sys 0m0.063s

I don't understand if there was an error, then why was a shot taken? Here is the timings for the same command, ran immediately after the previous one:

time gphoto2 --capture-image-and-download --force-overwrite --filename image.jpg
New file is in location /capt0000.jpg on the camera
Saving file as image.jpg

Deleting file /capt0000.jpg on the camera

real    0m1.891s
user    0m0.026s
sys 0m0.042s

It takes 20 seconds less to complete, with no errors. Your help is appreciated! For further information, I have attached the debug dump of the first command. log-first-shot.txt

sepehrhm commented 5 years ago

An update: deleting the ~/.gphoto/settings file seems to resolve this. I am not sure what is the relevance here.

msmeissn commented 5 years ago

The 20seconds are the timeout of the capture command where the error is shown... hmm. I have not seen this before.

The settings file only has relevance for the capturetarget, as it is taken from there.

msmeissn commented 5 years ago

is this also happening on your camera when you press the shutter manually? do you use mirror up or some non-standard setting?