Live Streaming and USB API From MacOS

This article was produced with AI content and tested by a human to confirm accuracy.

Human opinion: AI is amazingly accurate. I needed to point out 1 error, which it was able to correct.

The above screenshot is from VLC, connected to a THETA X with a USB cable. You can simply put the THETA X into live streaming mode with the buttons of the camera. Or, you can use the USB API to put the camera into live streaming mode.

gphoto2

gphoto2 is a command line tool that can be used on Mac, Windows, Linux, to control the camera with a USB cable.

For this test, I am using a USB-C to USB A adapter. You should probably plug a USB-C to USB-C cable into your MacBook. I am using a MacBook Air M1 in this test.

install with brew

brew install gphoto2

basic commands

summary

gphoto2 --summary                       
Camera summary:                                                                
Manufacturer: Ricoh Company, Ltd.
Model: RICOH THETA X
  Version: 2.63.0
  Serial Number: 14138352
Vendor Extension ID: 0x6 (1.10)
Vendor Extension Description: 

take picture

gphoto2 --trigger-capture

Takes picture. sounds goes off.

Get all files
gphoto2 --get-all-files

Quickly downloads all media from THETA X to local computer. This operation is fast.

This is an error from the AI:

gphoto2 --set-property=capturemode=0x8005 # wrong

This is correct

gphoto2 --set-config=5013=32773

For video mode:

gphoto2 --set-config=5013=32770

start video
gphoto2 --set-config movie=1

stop video
gphoto2 --set-config=/main/actions/opcode=0x1018,0xFFFFFFFF