FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
638 stars 99 forks source link

RX100M7 - PTP Invalid Object Handle #721

Closed Tobe2d closed 3 years ago

Tobe2d commented 3 years ago

Hi, First of all thank you so much for such a plugin, I am really enjoying Octolapse using Pi Cam V2. however recently I decided to use my Sony RX100m7 to start making high quality timelapse videos. I did follow the amazing step by step video tutorial on youtube https://www.youtube.com/watch?v=WKJwO4vfmkk and I got everything working up to the step of taking a snapshot.

I am getting this error:

pi@octopi:~/scripts $ /home/pi/scripts/take-snapshot.sh 1 1 "" "/home/pi/scripts" "" "/home/pi/scripts/test.jpg" Model Port

USB PTP Class Camera usb:001,007

Error
PTP Invalid Object Handle ERROR: Could not capture image. ERROR: Could not capture. The snapshot was not found in the expected directory: '/home/pi/scripts/test.jpg'.

I looked online and I could not find much recourses about the Sony Rx100 accept the this one line on http://gphoto.org/proj/libgphoto2/support.php:

Sony DSC-RX100M7 (PC Control) | Image Capture, Trigger Capture, Liveview, Configuration

Once I hit the command: sudo gphoto2 --auto-detect --capture-image the camera does take image and it fail downloading it to the Pi. I am running it on Pi 3B+

Is there anything am I missing or you can point to me?

Tobe2d commented 3 years ago

I managed to get it to work now combining your tutorials and this link: https://maskaravivek.medium.com/how-to-control-and-capture-images-from-dslr-using-raspberry-pi-fdfa9d600ec1

hope this will help others ;-)