/
gphoto2

gphoto2

gphoto2 is a command line camera control tool

see http://www.gphoto.org/ and http://www.gphoto.org/doc/manual/

and http://www.gphoto.org/doc/manual/ref-gphoto2-cli.html#cli-examples


installed on my laptop with macport

HUIT-FAS-MacBook-Stubbs:SciDean cstubbs$ gphoto2 --help

Usage: gphoto2 [OPTION...]


Common options

  -?, --help                                 Print complete help message on program usage

      --usage                                Print short message on program usage

      --debug                                Turn on debugging

      --debug-loglevel=STRING                Set debug level [error|debug|data|all]

      --debug-logfile=FILENAME               Name of file to write debug info to

  -q, --quiet                                Quiet output (default=verbose)

      --parsable                             Simple parsable output (implies quiet)

      --hook-script=FILENAME                 Hook script to call after downloads, captures, etc.


Miscellaneous options (unsorted)

      --stdout                               Send file to stdout

      --stdout-size                          Print filesize before data

      --auto-detect                          List auto-detected cameras

      --show-exif=STRING                     Show EXIF information of JPEG images

      --show-info=STRING                     Show image information, like width, height, and capture time

      --summary                              Show camera summary

      --manual                               Show camera driver manual

      --about                                About the camera driver manual

      --storage-info                         Show storage information

      --shell                                gPhoto shell


Get information on software and host system (not from the camera)

  -v, --version                              Display version and exit

      --list-cameras                         List supported camera models

      --list-ports                           List supported port devices

  -a, --abilities                            Display the camera/driver abilities in the libgphoto2 database


Specify the camera to use

      --port=FILENAME                        Specify device port

      --speed=SPEED                          Specify serial transfer speed

      --camera=MODEL                         Specify camera model

      --usbid=USBIDs                         (expert only) Override USB IDs


Camera and software configuration

      --list-config                          List configuration tree

      --list-all-config                      Dump full configuration tree

      --get-config=STRING                    Get configuration value

      --set-config=STRING                    Set configuration value or index in choices

      --set-config-index=STRING              Set configuration value index in choices

      --set-config-value=STRING              Set configuration value

      --reset                                Reset device port


Capture an image from or on the camera

      --keep                                 Keep images on camera after capturing

      --keep-raw                             Keep RAW images on camera after capturing

      --no-keep                              Remove images from camera after capturing

      --wait-event[=EVENT]                   Wait for event(s) from camera

      --wait-event-and-download[=EVENT]      Wait for event(s) from the camera and download new images

      --capture-preview                      Capture a quick preview

      --show-preview                         Show a quick preview as Ascii Art

  -B, --bulb=SECONDS                         Set bulb exposure time in seconds

  -F, --frames=COUNT                         Set number of frames to capture (default=infinite)

  -I, --interval=SECONDS                     Set capture interval in seconds

      --reset-interval                       Reset capture interval on signal (default=no)

      --capture-image                        Capture an image

      --trigger-capture                      Trigger capture of an image

      --capture-image-and-download           Capture an image and download it

      --capture-movie[=COUNT or SECONDS]     Capture a movie

      --capture-sound                        Capture an audio clip

      --capture-tethered[=EVENT]             Wait for shutter release on the camera and download


Downloading, uploading and manipulating files

  -l, --list-folders                         List folders in folder

  -L, --list-files                           List files in folder

  -m, --mkdir=DIRNAME                        Create a directory

  -r, --rmdir=DIRNAME                        Remove a directory

  -n, --num-files                            Display number of files

  -p, --get-file=RANGE                       Get files given in range

  -P, --get-all-files                        Get all files from folder

  -t, --get-thumbnail=RANGE                  Get thumbnails given in range

  -T, --get-all-thumbnails                   Get all thumbnails from folder

      --get-metadata=RANGE                   Get metadata given in range

      --get-all-metadata                     Get all metadata from folder

      --upload-metadata=STRING               Upload metadata for file

      --get-raw-data=RANGE                   Get raw data given in range

      --get-all-raw-data                     Get all raw data from folder

      --get-audio-data=RANGE                 Get audio data given in range

      --get-all-audio-data                   Get all audio data from folder

  -d, --delete-file=RANGE                    Delete files given in range

  -D, --delete-all-files                     Delete all files in folder (--no-recurse by default)

  -u, --upload-file=FILENAME                 Upload a file to camera

      --filename=FILENAME_PATTERN            Specify a filename or filename pattern

      --filenumber=NUMBER                    Specify the number a filename %%n will starts with (default 1)

  -f, --folder=FOLDER                        Specify camera folder (default="/")

  -R, --recurse                              Recursion (default for download)

      --no-recurse                           No recursion (default for deletion)

      --new                                  Process new files only

      --force-overwrite                      Overwrite files without asking

      --skip-existing                        Skip existing files


EVENT can be either COUNT, SECONDS, MILLISECONDS, or MATCHSTRING.


so let's try it. Connected camera to USB port on labtop with orange Tetherpro cable. 

HUIT-FAS-MacBook-Stubbs:SciDean cstubbs$ gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Canon EOS 6d Mark II           usb:020,001

woo hoo!

HUIT-FAS-MacBook-Stubbs:SciDean cstubbs$ gphoto2 --summary

Camera summary:                                                                

Manufacturer: Canon.Inc

Model: Canon EOS 6D Mark II

  Version: 3-1.0.5

  Serial Number: 71ec968cafa74a84aa5d9ea396fa33de

Vendor Extension ID: 0xb (1.0)

Vendor Extension Description: 


Capture Formats: JPEG

Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105)


Device Capabilities:

File Download, File Deletion, File Upload

No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2

Canon Wifi support


Storage Devices Summary:

store_00020001:

StorageDescription: SD

VolumeLabel: 

Storage Type: Removable RAM (memory card)

Filesystemtype: Digital Camera Layout (DCIM)

Access Capability: Read-Write

Maximum Capability: 255802212352 (243952 MB)

Free Space (Bytes): 243480133632 (232200 MB)

Free Space (Images): -1


Device Property Summary:

Property 0xd402:(read only) (type=0xffff) 'Canon EOS 6D Mark II'

Property 0xd407:(read only) (type=0x6) 1

Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'

Property 0xd303:(read only) (type=0x2) 1

Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 90% (90)

--------------------------------------------------------------

was able to trigger an image on Canon 6D but so far no luck with Sony RX10

Changed SONY USB setting to PC remote from storage, try again. 

Tried and failed- needed to take it off movie mode (HFR) and put in manual. 

that worked- I can take single images. 



     



Copyright © 2024 The President and Fellows of Harvard College * Accessibility * Support * Request Access * Terms of Use