gphoto2
gphoto2 copied to clipboard
Canon EOS 850D capture in sd but download empty file
HI, thanks for this awesome work! Describe the bug
--capture-image-and-download
, downloads empty file
but --capture-image
and then --get-file <number>
works fine
Name the camera Canon EOS 850D
gphoto2 --summary
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2
Canon Wifi support
libgphoto2 and gphoto2 version gphoto2 2.5.28 clang, popt(m), exif, no cdk, no aa, jpeg, readline libgphoto2 2.5.28 standard camlibs, clang, no ltdl, no EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1, clang, no ltdl, no EXIF, USB, serial without locking
To Reproduce have this camera model and exec those commands
This make me think, why --capture-image-and-download
doesn't work if I can do both actions one after the other?
And what is Canon EOS Capture listed with --summary
? how can I use that?
thank you
I think the problem comes from getting de path of the photo in camera.
gphoto2 --capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt0000.jpg
Deleting file /capt0000.jpg on the camera
The file in disk take that name and is empty
but if I do
gphoto2 --list-files
There is no file in folder '/'.
There is no file in folder '/store_00020001'.
There is no file in folder '/store_00020001/DCIM'.
There is 1 file in folder '/store_00020001/DCIM/100CANON'.
#1 IMG_0118.JPG rd 4926 KB image/jpeg 1645226172
There is no file in folder '/store_00020001/MISC'.
the real name is IMG_0118.JPG
so if I do
gphoto2 --get-file /store_00020001/DCIM/100CANON/IMG_0118.JPG
Saving file as IMG_0118.JPG
And photo is downloaded OK.
Maybe this helps to found and fix to make this model included
same issue on Canon EOS 650D :-(
can you get a debuglogfile of the failing capture? canons support 2 different capture targets, RAM (usually the /capt0000.jpg ones) and SD-CARD (the DCIM/.../IMG_ paths) but it should not create empty files.
no reply received, reopen if you can reproduce and provide a logfile