User Tools

Site Tools


using_gphoto2_to_control_a_dslr_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
using_gphoto2_to_control_a_dslr_camera [2017/06/25 13:53] – [Topics] walkeradminusing_gphoto2_to_control_a_dslr_camera [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Remote Fire Camera via GPIO ====== +====== Using gphoto2 to Control a DSLR Camera ====== 
-<color darkorange>June 2017</color> +<color darkorange>Jun 2017</color> 
-\\  +----
-\\  +
-<color #ed1c24>This page is work in progress, this message will be deleted when this page is complete!</color> +
-\\  +
-\\ +
 {{:6d2mockup-728x403.jpg?400|}} {{:6d2mockup-728x403.jpg?400|}}
- 
 ---- ----
 ==== Introduction ==== ==== Introduction ====
Line 14: Line 9:
 \\  \\ 
 \\  \\ 
-Anyway, gphoto2 allows you to control your camera via the USB port, the amount of control you get varies between the make and model of camera that you are using.+Anyway, <color #22b14c>gphoto2</color> allows you to control your camera via the USB port, the amount of control you get varies between the make and model of camera that you are using.
 \\  \\ 
 \\  \\ 
-You can use gphoto2 to take photos (great for making your own intervalometer, which we will try here, but you can also use gphoto2 to pull the images from your camera, and store them on a storage device attached to the Raspberry Pi, this is what I am really interested in.+You can use <color #22b14c>gphoto2</color> to take photos (great for making your own intervalometer, which we will try here, but you can also use <color #22b14c>gphoto2</color> to pull the images from your camera, and store them on a storage device attached to the Raspberry Pi, this is what I am really interested in.
 \\  \\ 
 \\  \\ 
Line 40: Line 35:
 \\  \\ 
 \\  \\ 
-\\ +---- 
 ==== Topics ==== ==== Topics ====
   * [[Installing gphoto2]]\\    * [[Installing gphoto2]]\\ 
   * [[Running gphoto2]]\\    * [[Running gphoto2]]\\ 
-  * [[gphoto Auto Detect]] +  * [[gphoto2 Auto Detect]] 
-  * [[gphoto Support for My Camera]]+  * [[gphoto2 Support for My Camera]]
   * [[List Files on Camera]]   * [[List Files on Camera]]
   * [[Copy all files from SD Card]]   * [[Copy all files from SD Card]]
-  * [[gphoto ]] +  * [[Live Capture Setup]] 
-  * [[gphoto ]] +  * [[Live Capture]] 
-  * [[gphoto ]] +  * [[Tested Cameras]] 
-  * [[gphoto ]] +  * [[Use gphoto2 to Configure DSLR]] 
-  * [[gphoto ]]+  * [[Basic Intervalometer]]
 \\  \\ 
 \\  \\ 
----- 
- 
- 
----- 
- 
- 
- 
- 
- 
- 
- 
----- 
- 
----- 
- 
----- 
- 
- 
----- 
- 
----- 
-==== Live Capture ==== 
-<color #ed1c24>IMPORTANT!</color> 
-After failing to capture images, I discovered this little gem: gphoto2 is configured by default to capture files to your camera's RAM. You need to set it to capture to the SD Card.  
-\\  
-\\  
-Type in the following from the terminal. 
-\\  
-    gphoto2 --get-config capturetarget 
-\\  
-You will most likely get the following: 
-\\  
-\\  
-Label: Capture Target 
-Type: RADIO 
-<color #ed1c24>Current: Internal RAM</color> 
-Choice: 0 Internal RAM 
-Choice: 1 Memory card 
-\\  
-\\  
-Here we can see that the capture target is set to <color #ed1c24>Current: Internal RAM</color> and we want it to be <color #ed1c24>Memory Card</color> 
-\\  
-\\  
-Enter the following: 
-\\  
-    gphoto2 --set-config capturetarget=1 
-\\  
-Now when we check, we should get the following: 
-\\  
-Label: Capture Target 
-Type: RADIO 
-<color #ed1c24>Current: Memory card</color> 
-Choice: 0 Internal RAM 
-Choice: 1 Memory card 
-\\  
-\\  
-Now we are set to record captures to the <color #ed1c24>Memory Card</color> 
-\\  
-\\  
-Now, this depends on your camera, and whether gphoto2 supports it on your model. To get the capabilities of your camera, use the following command: 
-\\  
-    gphoto2 --summary 
-\\  
-Now on my 700D, I see the following: 
-\\  
-<file> 
-Camera summary: 
-Manufacturer: Canon Inc. 
-Model: Canon EOS 700D 
-  Version: 3-1.1.3 
-  Serial Number: 46ff2aa38fba41f88d84eccb8eba8ada 
-Vendor Extension ID: 0xb (1.0) 
- 
-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 Shutter Button 
- 
-Storage Devices Summary: 
-store_00020001: 
-        StorageDescription: SD 
-        VolumeLabel: None 
-        Storage Type: Removable RAM (memory card) 
-        Filesystemtype: Digital Camera Layout (DCIM) 
-        Access Capability: Read-Write 
-        Maximum Capability: 31678529536 (30211 MB) 
-        Free Space (Bytes): 31375130624 (29921 MB) 
-        Free Space (Images): -1 
- 
-Device Property Summary: 
-Property 0xd402:(read only) (type=0xffff) 'Canon EOS 700D' 
-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: 100% (100) 
-</file> 
-\\  
-Importantly, I see the following section: 
-\\  
-\\  
-<color #ed1c24>Device Capabilities:</color>\\  
-\\  
-File Download, File Deletion, File Upload\\  
-<color #ed1c24>No Image Capture</color>, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button\\  
-\\  
-So my 700D does not allow gphoto2 to capture files. There are two methods that you can use to try, and they are: 
-\\  
-    gphoto2 --capture-image 
-     
-    gphoto2 --capture-image-and-download 
-\\  
-<color #ed1c24>gphoto2 --capture-image</color> takes a photo and stores it on the SD card. 
-<color #ed1c24>gphoto2 --capture-image-and-download</color> takes a photo and stores it on the SD card and downloads it. 
-\\  
-\\  
-On some cameras the <color #ed1c24>takes a photo and stores it on the SD card</color> takes the image, but does not store it on the SD card (like on my 700D) so you can use <color #ed1c24>gphoto2 --capture-image-and-download</color> and the camera will take the photo and gphoto2 will download it, but it will still not be store on the SD card (does not work on my 700D) 
-\\  
-\\  
-So in summary, I have been able to download files from my camera(s) but not capture from them. So I can make a decent backup solution using gphoto2, but not an intervalometer. 
-\\  
-\\  
-Cameras tested so far: 
-\\  
-<file> 
-Canon EOS M (the original) 
-Canon EOS 550D 
-Canon EOS 700D 
-Canon EOS 5DMk2 
-</file> 
-\\  
-\\  
----- 
-==== gphoto2 Trigger Capture === 
using_gphoto2_to_control_a_dslr_camera.1498395222.txt.gz · Last modified: 2023/03/09 22:35 (external edit)