live_capture
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| live_capture [2017/06/25 12:57] – created walkeradmin | live_capture [2017/06/25 16:59] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Live Capture ====== | ====== Live Capture ====== | ||
| + | <color darkorange> | ||
| \\ | \\ | ||
| - | 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 # | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | <color # | ||
| + | ---- | ||
| + | <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 # | ||
| + | ---- | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | Now, this depends on your camera, and whether | ||
| \\ | \\ | ||
| gphoto2 --summary | gphoto2 --summary | ||
| Line 49: | Line 68: | ||
| <color # | <color # | ||
| \\ | \\ | ||
| - | 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 |
| \\ | \\ | ||
| + | gphoto2 --trigger-capture | ||
| + | | ||
| gphoto2 --capture-image | gphoto2 --capture-image | ||
| | | ||
| gphoto2 --capture-image-and-download | gphoto2 --capture-image-and-download | ||
| \\ | \\ | ||
| - | <color # | + | <color # |
| - | <color # | + | <color # |
| + | <color # | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | On some cameras | + | So if I list the files on my camera |
| \\ | \\ | ||
| + | gphoto2 --list-files | ||
| + | < | ||
| + | There is no file in folder '/' | ||
| + | There is no file in folder '/ | ||
| + | There is no file in folder '/ | ||
| + | There are 2 files in folder '/ | ||
| + | #1 | ||
| + | #2 | ||
| + | There is no file in folder '/ | ||
| + | </ | ||
| + | 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: | ||
| \\ | \\ | ||
| < | < | ||
| - | Canon EOS M (the original) | + | There is no file in folder '/' |
| - | Canon EOS 550D | + | There is no file in folder '/ |
| - | Canon EOS 700D | + | There is no file in folder '/ |
| - | Canon EOS 5DMk2 | + | There are 3 files in folder '/ |
| + | #1 | ||
| + | #2 | ||
| + | #3 | ||
| + | There is no file in folder '/ | ||
| </ | </ | ||
| + | We can see that a new imgage (IMG_5861.CR2) has appeared. So this works. | ||
| + | \\ | ||
| + | If we use the capture and download command: | ||
| + | \\ | ||
| + | | ||
| + | \\ | ||
| + | I get this output (in the Raspberry Pi terminal) | ||
| + | \\ | ||
| + | < | ||
| + | New file is in location / | ||
| + | Downloading ' | ||
| + | Saving file as IMG_5862.CR2 | ||
| + | Deleting file / | ||
| + | Deleting ' | ||
| + | </ | ||
| + | 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 | ||
| + | |||
| + | IMG_5862.CR2 | ||
| + | </ | ||
| + | And yes it is there, if we do another check of the camera memory card. | ||
| + | \\ | ||
| + | gphoto2 --list-files | ||
| + | < | ||
| + | There is no file in folder '/' | ||
| + | There is no file in folder '/ | ||
| + | There is no file in folder '/ | ||
| + | There are 3 files in folder '/ | ||
| + | #1 | ||
| + | #2 | ||
| + | #3 | ||
| + | There is no file in folder '/ | ||
| + | </ | ||
| + | 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: (external edit)
