User Tools

Site Tools


live_capture

Differences

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

Link to this comparison view

Next revision
Previous revision
live_capture [2017/06/25 13:57] – created walkeradminlive_capture [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Live Capture ====== ====== Live Capture ======
 +<color darkorange>Jun 2017</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:+\\  
 +---- 
 +\\  
 +<color #ed1c24>WARNING!!!!</color> If you came to this page without looking at the [[live_capture_setup|Live Capture Setup]] page, then shame on you! You will probably find that capture does not work properly because you didn't do something very important, mentioned in the [[live_capture_setup|Live Capture Setup]] page :) 
 +\\  
 +\\  
 +\\  
 +\\  
 +<color #ed1c24>Plese read this next section, it's quite important.</color> 
 +---- 
 +<color #ff7f27>It seems</color> <color #22b14c>gphoto2</color> <color #ff7f27>has an issue if the shutter speed is slow. So using a shutter speed of say 1/250, then I can capture and download a file. If I use a shutter speed of say 3s, then I can capture, but download simply won't happen.</color> 
 +\\  
 +\\  
 +On the 700D, 1/6 seems to be the cut off, if you go to 1/4, then you lose the ability to capture and download in a single command. You can of course capture, execute a wait equivalent to the shutter speed (plus a bit for writing to the card) then do a download using the <color #ed1c24>--skip-existing</color> so you only download files that have not already been backed up. 
 +---- 
 + 
 +\\  
 +\\  
 +Now, this depends on your camera, and whether <color #22b14c>gphoto2</color> supports it on your model. To get the capabilities of your camera, use the following command:
 \\  \\ 
     gphoto2 --summary     gphoto2 --summary
Line 49: Line 68:
 <color #ed1c24>No Image Capture</color>, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button\\  <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:+So my 700D does not allow gphoto2 to capture files. There are several methods that you can use to try, and they are:
 \\  \\ 
 +    gphoto2 --trigger-capture
 +    
     gphoto2 --capture-image     gphoto2 --capture-image
          
     gphoto2 --capture-image-and-download     gphoto2 --capture-image-and-download
 \\  \\ 
-<color #ed1c24>gphoto2 --capture-image</color> takes a photo and stores it on the SD card. +<color #ed1c24>gphoto2 --trigger-capture</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.+<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 if I list the files on my camera memory card:
 \\  \\ 
 +    gphoto2 --list-files
 +<file>
 +There is no file in folder '/'.
 +There is no file in folder '/store_00020001'.
 +There is no file in folder '/store_00020001/DCIM'.
 +There are 2 files in folder '/store_00020001/DCIM/100CANON'.
 +#1     IMG_5859.CR2               rd 20815 KB image/x-canon-cr2
 +#2     IMG_5860.CR2               rd 27070 KB image/x-canon-cr2
 +There is no file in folder '/store_00020001/MISC'.
 +</file>
 +We can see that there are two photos here (IMG_5859.CR2 and IMG_5860.CR2).
 \\  \\ 
-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. 
 \\  \\ 
 +If we use the following command:
 \\  \\ 
-Cameras tested so far:+    gphoto2 --capture-image 
 +\\  
 +We can now again check the camera memory card:
 \\  \\ 
 <file> <file>
-Canon EOS M (the original) +There is no file in folder '/'. 
-Canon EOS 550D +There is no file in folder '/store_00020001'. 
-Canon EOS 700D +There is no file in folder '/store_00020001/DCIM'. 
-Canon EOS 5DMk2+There are 3 files in folder '/store_00020001/DCIM/100CANON'
 +#1     IMG_5859.CR2               rd 20815 KB image/x-canon-cr2 
 +#2     IMG_5860.CR2               rd 27070 KB image/x-canon-cr2 
 +#3     IMG_5861.CR2               rd 25884 KB image/x-canon-cr2 
 +There is no file in folder '/store_00020001/MISC'.
 </file> </file>
 +We can see that a new imgage (IMG_5861.CR2) has appeared. So this works.
 +\\ 
 +If we use the capture and download command:
 +\\ 
 +     gphoto2 --capture-image-and-download
 +\\ 
 +I get this output (in the Raspberry Pi terminal)
 +\\ 
 +<file>
 +New file is in location /store_00020001/DCIM/100CANON/IMG_5862.CR2 on the camera
 +Downloading 'IMG_5862.CR2' from folder '/store_00020001/DCIM/100CANON'...
 +Saving file as IMG_5862.CR2
 +Deleting file /store_00020001/DCIM/100CANON/IMG_5862.CR2 on the camera
 +Deleting 'IMG_5862.CR2' from folder '/store_00020001/DCIM/100CANON'...
 +</file>
 +So this indicates that the camera captured and image called IMG_5862.CR2 and downloaded it to the Raspberry Pi, then deleted it.
 +\\ 
 +\\ 
 +A simple 'ls' will check the Raspberry Pi folder (remember it will be downloaded to your current directory)
 +\\ 
 +<file>
 +ls
 +
 +IMG_5862.CR2
 +</file>
 +And yes it is there, if we do another check of the camera memory card.
 +\\ 
 +    gphoto2 --list-files
 +<file>
 +There is no file in folder '/'.
 +There is no file in folder '/store_00020001'.
 +There is no file in folder '/store_00020001/DCIM'.
 +There are 3 files in folder '/store_00020001/DCIM/100CANON'.
 +#1     IMG_5859.CR2               rd 20815 KB image/x-canon-cr2
 +#2     IMG_5860.CR2               rd 27070 KB image/x-canon-cr2
 +#3     IMG_5861.CR2               rd 25884 KB image/x-canon-cr2
 +There is no file in folder '/store_00020001/MISC'.
 +</file>
 +We can see that the captured image was indeed deleted (which if I am honest, is not what i would want).
 +\\ 
 +\\ 
 +If you wish to download and keep the files (this took a couple of attempts for me) then you can use the following syntax:
 +\\ 
 +    gphoto2 --capture-image-and-download --keep
 +\\ 
 +And to go back to just downloading the files, you can use:
 +\\ 
 +    gphoto2 --capture-image-and-download --no-keep
 \\  \\ 
 \\  \\ 
live_capture.1498395422.txt.gz · Last modified: 2023/03/09 22:35 (external edit)