gphoto / gphoto2

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

Canon EOS 5D Mark IV: ERROR: Could not capture image. #143

Open francophongvu opened 6 years ago

francophongvu commented 6 years ago

Hi,

My gphoto2 version :

gphoto2 2.5.17 gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline libgphoto2 2.5.18 all camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb usbdiskdirect usbscsi, gcc, ltdl, USB, serial without locking

I tried to capture photo with command: gphoto2 --set-config capturetarget=0 --capture-image-and-download

I received the error:

ERROR: Could not capture image.                                                
ERROR: Could not capture.

Please help to advice me.

msmeissn commented 6 years ago

can you capture debug output? add --debug --debug-logfile=logfile.txt to the commandline

francophongvu commented 6 years ago

Hi, Sorry for late reply, I followed your instruction to write debug log for capturing photo. Kindly attach the logfile here for your ref.

I tried to read all log, but little understanding, could you please to advice me. Thanks a lot logfile.txt

msmeissn commented 6 years ago

hgmm, so we trigger the capture after getting focus, but for some reason no feedback appears. some stuff is happening 30 seconds later, but no object is added. does this happen always? is the shutterspeed 30 seconds, or is this just an artefact?

sepehrhm commented 5 years ago

This is happening for me too - it has nothing to do with the shutterspeed by the way. It always struggles to capture an image, and I am using 2.5.22 release (from yesterday).

Is this the new way Canon cameras are programmed?

wvreeven commented 4 years ago

What works for me is to always do this sequence of commands:

gphoto2 --reset; gphoto2 --set-config /main/imgsettings/imageformat=32; gphoto2 --set-config /main/actions/eosremoterelease=5; gphoto2 --set-config /main/actions/cancelautofocus=0; gphoto2 --auto-detect --capture-image-and-download

Only then gphoto2 2.5.23.1 (downloaded and compiled from the GitHub sources today along with libgphoto2 2.5.25.1) will work for me. If I leave any command out either capturing an image will hang and I need to press CTRL-C or I get this error

*** Error ***
Canon EOS Full-Press failed (0x2019: PTP Device Busy)
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-110: 'I/O in progress') ***

If I try this with the gphoto2 and libgphoto2 versions that come with Raspbian Buster (2.5.11-1 and 2.5.12-1) this doesn't work.

wvreeven commented 4 years ago

Actually, I switched off and back on the camera and now it is not working anymore. It occasionally reports

*** Error ***
Canon EOS Capture failed to release: Perhaps no focus?
ERROR: Could not capture image.
ERROR: Could not capture.

and at other times it simply hangs. After a while it reports

ERROR: Could not capture image.
ERROR: Could not capture.
alikurmus commented 2 years ago

I have been getting the same error while trying to capture pictures with gphoto2 and Canon 5d Mark IV: Error

Canon EOS Full-Press failed (0x2019: PTP Device Busy)

ERROR: Could not capture image.

ERROR: Could not capture.

Error (-110: 'I/O in progress')

There is an option called mirror lockup. It is usually used to avoid blur when using telephoto lenses because they end up shaking the camera despite tripods. When I disabled the mirror lockup, I stopped getting that error.

My whole process of debugging the error is here: https://wiki.harvard.edu/confluence/display/hufasstubbsgroup/Ali+Kurmus+-+Strobed+Internal+DIMM

It starts under July 26th.