gphoto / libgphoto2

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

Manual focus not implemented for Sony ILCE-7M4 (Alpha 7 IV) #985

Closed Ryther closed 3 months ago

Ryther commented 3 months ago

Describe the bug

Looks like that the Sony ILCE-7M4 does not have manual focus settings, but the camera's focus can be managed remotely with Sony's Remote Camera Control.

Name the camera Sony Alpha-A7 IV (PC Control)

libgphoto2 and gphoto2 version

gphoto2 2.5.28

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

To Reproduce gphoto2 --list-config reports:

/main/actions/movie
/main/actions/opcode
/main/settings/capturetarget
/main/status/serialnumber
/main/status/manufacturer
/main/status/cameramodel
/main/status/deviceversion
/main/status/vendorextension
/main/status/batterylevel
/main/imgsettings/imagesize
/main/imgsettings/iso
/main/imgsettings/colortemperature
/main/imgsettings/whitebalance
/main/capturesettings/zoom
/main/capturesettings/exposurecompensation
/main/capturesettings/flashmode
/main/capturesettings/f-number
/main/capturesettings/imagequality
/main/capturesettings/focusmode
/main/capturesettings/expprogram
/main/capturesettings/aspectratio
/main/capturesettings/capturemode
/main/capturesettings/exposuremetermode
/main/capturesettings/shutterspeed
/main/other/5005
/main/other/500a
/main/other/500b
/main/other/500c
/main/other/5010
/main/other/d200
/main/other/d201
/main/other/d20d
/main/other/d20f
/main/other/d211
/main/other/d213
/main/other/d217
/main/other/d221
/main/other/d21e
/main/other/d222
/main/other/d20e
/main/other/d218
/main/other/5013
/main/other/d203
/main/other/d21f
/main/other/5004
/main/other/5007
/main/other/500e
/main/other/d214
/main/other/d215
/main/other/5007
/main/other/5010
/main/other/d200
/main/other/d20d
/main/other/d21e

and gphoto2 --summary reports:

Camera summary:
Manufacturer: Sony Corporation
Model: ILCE-7M4
  Version: 3.00
  Serial Number: 00000000000000003285373006608469
Vendor Extension ID: 0x11 (1.0)
Vendor Extension Description: Sony PTP Extensions

Capture Formats:
Display Formats: Association/Directory, JPEG, ARW, MPEG, Unknown(b982), Unknown(b110)

Device Capabilities:
        File Download, No File Deletion, File Upload
        No Image Capture, No Open Capture, Sony Capture

Storage Devices Summary:

Device Property Summary:
White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2)
Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,32773,32772,32774,1] value: Manual Focus (1)
Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [32769,32770,32772,32773,32771,32774] value: 32771
Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [] value: Red-eye fill flash (5)
Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [] value: 0.0 stops (0)
DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [] value: 0
DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [1,31,17,18,19,20,21] value: 1
Shutter speed(0xd20d):(readwrite) (type=0x6) Range [73536 - 1966081, step 1] value: 0
Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 0
Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,3,2,4] value: 1
Focus status(0xd213):(readwrite) (type=0x2) Enumeration [] value: 1
Property 0xd217:(readwrite) (type=0x2) Enumeration [] value: 1
Property 0xd221:(readwrite) (type=0x2) Enumeration [] value: 1
ISO(0xd21e):(readwrite) (type=0x6) Enumeration [] value: 3200
Capture Target(0xd222):(readwrite) (type=0x4) Enumeration [1,17,16] value: 1
Property 0xd20e:(readwrite) (type=0x2) Enumeration [] value: 14
Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 55
Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32784,2,32789,32786,32772,32771,32773,32776,32777,32780,32781,32782,32783,33591,34103,35127,33623,34135,35159,33655,34167,35191,33553,34065,35089,33569,34081,33585,34097,33590,34102,35126,33622,34134,35158,33654,34166,35190,33552,34064,35088,33568,34080,33584,34096,32808,32792,32809,32793] value: Single Shot (1)
Image size(0xd203):(readwrite) (type=0x2) Enumeration [] value: 1
Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 1
Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [16,20,19,18,17,4,3,2,1] value: 16
F-Number(0x5007):(readwrite) (type=0x4) Range [400 - 2200, step 1] value: f/6.3 (630)
Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [] value: M (1)
Zoom(0xd214):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 80768000
Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0
Autofocus(0xd2c1): error 2002 on query.
Capture(0xd2c2): error 2002 on query.
Property 0xd2c3: error 2002 on query.
Property 0xd2c4: error 2002 on query.
Still Image(0xd2c7): error 2002 on query.
Movie(0xd2c8): error 2002 on query.
Property 0xd2c9: error 2002 on query.
F-Number(0x5007):(readwrite) (type=0x4) Range [400 - 2200, step 1] value: f/6.3 (630)
Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [] value: 0.0 stops (0)
DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [] value: 0
Shutter speed(0xd20d):(readwrite) (type=0x6) Range [73536 - 1966081, step 1] value: 0
ISO(0xd21e):(readwrite) (type=0x6) Enumeration [] value: 3200
Still Image(0xd2c7): error 2002 on query.
Property 0xd2cd: error 2002 on query.
Property 0xd2ce: error 2002 on query.
Property 0xd2cf: error 2002 on query.
Property 0xd2d0: error 2002 on query.

The latest version of the repository was built, since the camera has the infamous type 300 bug.

Thank you for all your hard work!

Regards, Edoardo

msmeissn commented 3 months ago

i checked the Sony SDK, Manual Focus is not supported on the ILCE 7M4.