pixeltris / SonyAlphaUSB

Control Sony Alpha cameras using the USB connection (Windows)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SonyAlphaUSB

This (WIP) project aims to control Sony Alpha cameras via the USB connection on Windows. Sony A7 III is the only camera which has been tested so far.

This can be used to control the following:

  • Simulating shutter button half/full press to capture photos (which get transfered to the PC)
  • Starting / stopping a video recording
  • Modify f-number, ISO, shutter speed, AEL, FEL, focus area, focus area spot, EV, flash, output image file format (jpeg/raw), output image size, picture effect, DRO/HDR, aspect ratio, focus mode, focus distance, focus magnifier, shooting mode, white balance (color temp, AB, GM), drive mode, flash mode, metering mode. TODO: zoom (have yet to get a power zoom lense to test)

How it works

The Windows Image Acquisition (WIA) API is used to control the camera via USB in the exact same way that the Sony Imaging Edge software does. Under the hood this should be PTP which is what gphoto2 uses. See Sony's opcodes here or here

Disclaimer

Sony doesn't provide an official API for interacting with the USB protocol. Using this code is done at your own risk. Requests should be sent to the camera in a timely manner to avoid any issues.

About

Control Sony Alpha cameras using the USB connection (Windows)


Languages

Language:C# 73.2%Language:C++ 26.8%