Using gPhoto2 to Download From Cameras - page 2
Simple and Fast
If you are working with a video camera, the options are somewhat different. Then, you use --capture-image, --capture-movie, or --capture-sound to download files already stored on the camera. However, if the camera is running, you can use --frames count to specify the number of frames frames to download, and --interval seconds to specify the number of frames between each capture.
No matter what your camera's capacities are, you may need to add --folder folder to specify a folder on the camera. You also have the option of running gPhoto2 without any feedback by adding the option --quiet, or with as much information as possible using --verbose. For most people, the default feedback is usually adequate for keeping track of what is happening.
Another option is to specify the path and name of everything that is downloaded. By default gPhoto2 downloads to the current working directory, preserving the names given to files by the camera. However, you can change this option for a single file using --filename filename.
By contrast, for multiple files, you might want to create a naming convention. For example, --filename filename%n will use the base file name followed by a number for each download.
If all these options seem too complicated to remember, you can opt to run gphoto2 --shell. This command opens an interactive shell which brings you much closer than any option to normal file management. Once you start the gPhoto2 shell, you can use the commands ls to list the contents of the camera's memory and cd to change to another directory on the camera, while lcd changes your working directory on the local hard drive. To download from the shell, you can use get, get-thumbnail, and get-raw, followed by the files. When you are finished downloading, exit closes the shell.
Limits and workarounds
All these commands take a while to learn, but the gPhoto2 developers have made some effort to make them logical and consistent. Besides, you can always summon up whatever works from your command line history using the up key. In addition, gphoto2 --help is available as a crib, and the gPhoto2 man page is unusually clearly worded for that help genre and includes several basic examples of using the command. The chances are you won't need to learn many options anyway.
Graphical camera applications do have the advantage of offering you previews of what you are downloading. But this lack in gPhoto2 should rarely be a problem if you are constantly downloading files, and you can simplify file maintenance by running gphoto2 --delete-file range or gphoto2 --rmdir name to tidy the camera after downloading, or by using the --new option while downloading to your usual storage folder. Otherwise, with a little practice, gPhoto2 can quickly become your most efficient way of downloading from your camera.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: Linux Mint Olivia, Fedora 19's Cat and Ubuntu's Mission Accomplished Moment
- 2Linux Top 3: Linux 3.10 Goes Long, Linux 3.11 Advances as LXDE Merges
- 3Why Linux is Super (Computing)
- 4Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 5Linux 3.10 Improves Multi-tasking and SSD Caching