gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
989 stars 316 forks source link

Sony A6000 Camera Unable to Take Videos/Photos After Taking Photo a Few Times #963

Open choi-joon opened 4 months ago

choi-joon commented 4 months ago

Describe the bug

I am trying to use a Sony A6000 camera as a webcam to stream videos on a Linux computer. By running gphoto2 --capture-image-and-download, I am able to take a photo on the camera a few times. However, afterwards, when I try to take another picture or take a video, the camera throws a PTP timeout error and is not able to take pictures nor videos (after 3-4 photos). My gphoto2 version is the most recent as I saw on another issue that a similar problem has been fixed in the most recent version, but it doesn't seem like it for me.Thank you in advance!

Name the camera Model Port

Sony Alpha-A6000 (Control) usb:001,018

libgphoto2 and gphoto2 version gphoto2 2.5.28

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 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline libgphoto2 2.5.31 standard camlibs (SKIPPING docupen lumix), 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 Steps to reproduce the behavior: gphoto2 --stdout --capture-movie --debug --debug-logfile=debug_video.log | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 (video) gphoto2 --capture-image-and-download (photo)

The corresponding debug logs are attached in debug_photo.log and debug_video.log. debug_photo.log debug_video.log