gphoto / gphoto2

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

Burst captures not working for Sony A7M4 #657

Open andrewyguo opened 3 days ago

andrewyguo commented 3 days ago

Describe the bug

After reading https://github.com/gphoto/libgphoto2/issues/968, I tried to run:

gphoto2 --trigger-capture --trigger-capture --trigger-capture

However, only one capture was taken. I believe the other 2 commands were ignored by the camera. This was the recommended way to try to get multiple captures.

My camera is set to Hi+ continuous shooting mode. It is also in Manual Focus mode.

When I hold down the physical shutter button, I should be able to get 6+ FPS at this mode shooting uncompressed RAW.

Name the camera Sony A7M4

$ gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Sony Alpha-A7 IV (PC Control)  usb:002,012     

libgphoto2 and gphoto2 version

$ gphoto2 --version 
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, no jpeg, no readline
libgphoto2      2.5.30         standard camlibs (SKIPPING lumix), gcc, no ltdl, EXIF
libgphoto2_port 0.12.1         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

To Reproduce

Run:

$ gphoto2 --trigger-capture --trigger-capture --trigger-capture

Only one image is captured when there should be 3.

Additional

Is there a way to take advantage of the burst capture mode on my camera? I have a related issue here describing my workflow in python. I would love to be able to take faster bursts.

jim-easterbrook commented 2 days ago

After reading gphoto/libgphoto2#968, I tried to run:

gphoto2 --trigger-capture --trigger-capture --trigger-capture

However, only one capture was taken. I believe the other 2 commands were ignored by the camera. This was the recommended way to try to get multiple captures.

Did you try it with --wait-event-and-download=20s at the end, as shown in https://github.com/gphoto/libgphoto2/issues/968

andrewyguo commented 2 days ago

I did. I am getting a similar result. Only one capture is being taken.

$ ~/.local/bin/gphoto2 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=20s
Waiting for 20 seconds for events from camera. Press Ctrl-C to abort.          
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Event c206, Param1 00000000
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
Saving file as capt0000.arw                                                    
CAPTURECOMPLETE
UNKNOWN PTP Event c201, Param1 ffffc001
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Event c202, Param1 ffffc001
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"
UNKNOWN PTP Property 0000 changed, "PTP Property 0x0000" to "Unknown type 0x0000"