gphoto start
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=GPhoto2=
=GPhoto2=


libgphoto2 is a portable library which gives access to [http://www.gphoto.org/proj/libgphoto2/support.php hundreds of digital cameras]. It can be used in any software that wants to control digital cameras settings or simply take some pictures with them. A list of projects using it is available [http://www.gphoto.org/proj/ here].
'''libgphoto2''' is a portable library which gives access to [http://www.gphoto.org/proj/libgphoto2/support.php hundreds of digital cameras]. It can be used in any software that wants to control digital cameras settings or simply take some pictures with them. A list of projects using it is available [http://www.gphoto.org/proj/ here].


There is a command line interface to libgphoto2, named '''gphoto2'''. It can be used to verify what settings are available through the USB link of your camera but also to take pictures or make a simple intervalometer in shell programming. Pictures can be taken in the internal memory of the camera or transferred right away on the computer.
There is a command line interface to libgphoto2, named '''gphoto2'''. It can be used to verify what settings are available through the USB link of your camera but also to take pictures or make a simple intervalometer in shell programming. Pictures can be taken in the internal memory of the camera or transferred right away on the computer.


''Coming soon: list of main commands and settings for astronomy.''
To use gphoto2 and software based on the libgphoto2 library, you will need to fix the rights of the USB device created for the camera. A simple way to do it is to change the group of the device to a group in which you are, for example:
 
<pre>
# chgrp optical /dev/bus/usb/*
# chgrp optical /dev/bus/usb/*/*
</pre>
 
 
Another way, active permanently, is to create a udev rule for these device files that specifies write rights for a specific group, here the <code>usb</code> group, in which you have to add yourself.
 
<pre>
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" GROUP="usb"
</pre>
 
==Using Gphoto2 CLI==
 
A [[Gphoto2 data|special page]] has been created for documentation of the list of properties that can be modified by gphoto2 and the values allowed for some of them.
 
The utility also allows picture to be taken and stored onboard the camera or downloaded to the computer. The computer can then replace the intervallometer and can be operated remotely without ever touching it, avoiding to lose the focus when mounted on a telescope.
 
==Using a digital camera as webcam for planetary imaging==
 
The project [http://sourceforge.net/projects/eos-movrec/ EOS Camera Movie Record] ([https://aur.archlinux.org/packages.php?ID=62838 AUR package]), using Gphoto2, allows the live view of a Canon EOS to be captured and used as a webcam. This proves to be a nice alternative to webcam imaging. See some results for this capture method [http://sweiller.free.fr/Canon40D/Canon40D-webcam.htm here].
 
Tested with an EOS 1000D, it works fine. I just don't know how to specify what part of the image is used for the 5x magnified capture. If the program says "no auto camera found", it probably means that you don't have the rights to access the USB device, see above.

Latest revision as of 01:32, 18 September 2012

GPhoto2

libgphoto2 is a portable library which gives access to hundreds of digital cameras. It can be used in any software that wants to control digital cameras settings or simply take some pictures with them. A list of projects using it is available here.

There is a command line interface to libgphoto2, named gphoto2. It can be used to verify what settings are available through the USB link of your camera but also to take pictures or make a simple intervalometer in shell programming. Pictures can be taken in the internal memory of the camera or transferred right away on the computer.

To use gphoto2 and software based on the libgphoto2 library, you will need to fix the rights of the USB device created for the camera. A simple way to do it is to change the group of the device to a group in which you are, for example:

# chgrp optical /dev/bus/usb/*
# chgrp optical /dev/bus/usb/*/*


Another way, active permanently, is to create a udev rule for these device files that specifies write rights for a specific group, here the usb group, in which you have to add yourself.

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" GROUP="usb"

Using Gphoto2 CLI

A special page has been created for documentation of the list of properties that can be modified by gphoto2 and the values allowed for some of them.

The utility also allows picture to be taken and stored onboard the camera or downloaded to the computer. The computer can then replace the intervallometer and can be operated remotely without ever touching it, avoiding to lose the focus when mounted on a telescope.

Using a digital camera as webcam for planetary imaging

The project EOS Camera Movie Record (AUR package), using Gphoto2, allows the live view of a Canon EOS to be captured and used as a webcam. This proves to be a nice alternative to webcam imaging. See some results for this capture method here.

Tested with an EOS 1000D, it works fine. I just don't know how to specify what part of the image is used for the 5x magnified capture. If the program says "no auto camera found", it probably means that you don't have the rights to access the USB device, see above.