gphoto / gphoto2

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

Sony ZV-E10 "Sorry, your camera does not support generic capture" #617

Open DoctorSage opened 9 months ago

DoctorSage commented 9 months ago

Hi! Thanks for gphoto!

I am trying to use it to control a Sony ZV-E10 camera on a raspberry pi, following this guide: https://pimylifeup.com/raspberry-pi-dslr-camera-control/.

"detect" finds a "PTP class camera", but cannot capture image. "summary" insists that device capabilities do not include image capture. It seems that the "USB modes" for the ZV-E10 are just "MTP" and "mass media", so it is currently in MTP. I cannot find a PTP option. I saw in another answer that you suggest version 2.5.31 for this camera, and I apparently only have 2.5.28. I got the software from the command line with "git clone https://github.com/gphoto/gphoto2.git", so I am not sure why I got an older version of the software

Outputs of "capture-image" "version" "auto-detect" and "summary" given below.

Thanks for the help!

The main issue is that "--capture-image" returns: Error
Sorry, your camera does not support generic capture ERROR: Could not capture image. ERROR: Could not capture. Error (-6: 'Unsupported operation')

For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list gphoto-devel@lists.sourceforge.net, please run gphoto2 as follows:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image

Please make sure there is sufficient quoting around the arguments.


"--version" returns: gphoto2 2.5.28.1

Copyright (c) 2000-2021 Marcus Meissner 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.28.1 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline libgphoto2 2.5.27 standard camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, EXIF, USB, serial without locking


"--auto-detect" returns: Model Port

USB PTP Class Camera usb:001,021

"--summary" returns: Camera summary:
Manufacturer: Sony Corporation Model: ZV-E10 Version: 1.0 Serial Number: 00000000000000003285281006136498 Vendor Extension ID: 0x11 (1.0) Vendor Extension Description:

Capture Formats: Display Formats: Association/Directory, MPEG, JPEG, Unknown(b982), Unknown(b301), Undefined Type, ARW, Unknown(b310), MS Wave

Device Capabilities: File Download, No File Deletion, No File Upload No Image Capture, No Open Capture, No vendor specific capture

Storage Devices Summary: store_00010001: StorageDescription: Storage Media VolumeLabel: Storage Type: Removable RAM (memory card) Filesystemtype: Generic Hierarchical Access Capability: Read-Only Maximum Capability: 0 (0 MB) Free Space (Bytes): 0 (0 MB) Free Space (Images): -1

Device Property Summary: Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) Property 0xd402:(read only) (type=0xffff) 'ZV-E10' Property 0xd406:(readwrite) (type=0xffff) '' Property 0xd407:(read only) (type=0x6) 1 Property 0xd303:(read only) (type=0x2) 1

DoctorSage commented 9 months ago

I was able to partly fix it. Camera didn't have "PC Control" set to On. My bad. But I still have a problem when I use "capture-image". The camera successfully takes the photo, but I get the error messages:

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

Similarly, when I use capture-image-and-download, the camera takes the photo but I get the same error message. I cannot find the saved image anywhere on my computer (computer = raspberry Pi).

msmeissn commented 9 months ago

Please use 2.5.29 or newer libgphoto2 (perhaps 2.5.30), as ZV E10 was added in 2.5.29.