Skip to content

Instantly share code, notes, and snippets.

@bensie
Created November 9, 2012 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bensie/4049012 to your computer and use it in GitHub Desktop.
Save bensie/4049012 to your computer and use it in GitHub Desktop.
gphoto2-interval
james@ubuntu:~$ time gphoto2 --capture-image-and-download --force-overwrite --filename='foo.jpg' --frames=3 --interval=5
Time-lapse mode enabled (interval: 5s).
Capturing frame #1/3...
New file is in location /capt0000.jpg on the camera
Saving file as foo.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...
Waiting for next capture slot 3 seconds...
Capturing frame #2/3...
New file is in location /capt0001.jpg on the camera
Saving file as foo.jpg
Deleting file /capt0001.jpg on the camera
Deleting 'capt0001.jpg' from folder '/'...
Waiting for next capture slot 3 seconds...
Capturing frame #3/3...
New file is in location /capt0002.jpg on the camera
Saving file as foo.jpg
Deleting file /capt0002.jpg on the camera
Deleting 'capt0002.jpg' from folder '/'...
real 0m13.123s
user 0m0.076s
sys 0m0.096s
james@ubuntu:~$ time gphoto2 --capture-image-and-download --force-overwrite --filename='foo.jpg'
New file is in location /capt0000.jpg on the camera
Saving file as foo.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...
real 0m3.347s
user 0m0.008s
sys 0m0.060s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment