Bloodevil / sony_camera_api

sony camera remote api
http://developer.sony.com/develop/cameras/
MIT License
244 stars 60 forks source link

'BULB' shooting #52

Open mungewell opened 6 years ago

mungewell commented 6 years ago

My A5000 offers 'BULB' as a shutter speed, but I have be unable to get this to function via the Remote API. Camera will take a 'BULB' picture with the 'Smart Remote' app running, whilst I hold the shutter button down.

I extended 'pysony.py' with

diff --git a/src/pysony.py b/src/pysony.py
index 9dac7a9..ea79f9e 100755
--- a/src/pysony.py
+++ b/src/pysony.py
@@ -1066,3 +1066,8 @@ class SonyAPI():
     def getSupportedWirelessFlashSetting(self):
         return self._cmd(method="getSupportedWirelessFlashSetting")

+    def startBulbShooting(self):
+        return self._cmd(method="startBulbShooting")
+
+    def stopBulbShooting(self):
+        return self._cmd(method="stopBulbShooting")

And am using the attached example script. Anyone got suggestions, this doesn't seem to be documented in the latest API, but I've seen comments that it is (/was) supported in '2.20' bulb_test.py.txt

mungewell commented 6 years ago

Turns out you need to set ISO (ie. not 'Auto') to something before you can shoot 'BULB'. https://github.com/mungewell/sony_camera_api/commit/7503fecefd119e47f91fe8696443e975fc562902

Works on A5000, but not on my (hacked) HX60.