Questions tagged [libgphoto2]

gPhoto is a program and library framework that lets users download pictures from their digital cameras. The libgphoto2 library gives you access to hundreds of models of digital cameras on several platforms.

gPhoto2 is a free, redistributable, ready to use set of digital camera software applications for Unix-like systems, written by a whole team of dedicated volunteers around the world. It supports more than 1800 cameras

gPhoto2 runs on a large range of UNIX-like operating system, including Linux, FreeBSD, NetBSD, MacOS X, etc. gPhoto is provided by major Linux distributions like Debian GNU/Linux, Ubuntu, Gentoo, Fedora, openSUSE, Mandriva, etc.

libgphoto2 is freely available and distributed under the terms of the GNU LGPL.; the other gphoto programs are freely available and distributed under the terms of the GNU GPL.

Newer libgphoto2 versions also support Media Transfer Protocol (MTP) based media players since their communications protocol is based on the Picture Transfer Protocol (PTP).

For a deeper view of the inner working of libgphoto2, please read the appropriate chapter in the gPhoto2 manual

72 questions
7
votes
0 answers

Raspbian gphoto2: use live view and capture-image on the same camera?

The problem: I am running gphoto2 on a raspberry pi 4 with raspbian os lite. I am using it as a photo booth together with a canon EOS 100d cannected to USB. The cameras live view is passed to a http address with ffmpeg and motion. That works great…
MonkeyKingFlo
  • 143
  • 2
  • 7
4
votes
1 answer

Gphoto2 Capture Video and Download

I have used gphoto in the past to capture images and download them directly to my computer instead of using the sd card in the camera. I am wondering if it is possible to do this for videos as well or to copy the file video file to the computer upon…
LoganRx
  • 362
  • 2
  • 13
4
votes
1 answer

Burst capture photos in gphoto2 on Linux

Not sure where this best belongs: photography, electronics, software, or here. I have a Canon PowerShot G9 camera and I am using gphoto2 on Linux to control it over USB. I need to take photos continuously and copy them to the computer…
Josh Vazquez
  • 300
  • 1
  • 9
3
votes
0 answers

gphoto2 pipe:: Invalid data found when processing input

So I have been following this tutorial https://medium.com/nerdery/dslr-webcam-setup-for-linux-9b6d1b79ae22 and when I got to the point to actually take a photo with the camera I have no issues but when I get to try to capture with it I get pipe::…
3
votes
0 answers

Run simple C/C++ examples for gphoto2

I would like to use the library gphoto2 to control my canon camera (take images, change settings etc). I have the gphoto library installed on my library using apt-get on Ubuntu and I have the basic command line commands working. I want to now use…
Lightsout
  • 3,454
  • 2
  • 36
  • 65
3
votes
2 answers

How to identify 2 of the same type camera gphoto2

Suppose I have 2 of the exact same type of camera, how would I properly use one as opposed to the other if I don't know which port they're plugged into? I know you can select a camera by name, but they both have the same name. I know you can select…
Obj3ctiv3_C_88
  • 1,478
  • 1
  • 17
  • 29
2
votes
2 answers

gphoto2 how to handle Out of Focus warning

Here is how I capture image with my camera import logging import gphoto2 as gp def main(): def callback(level, domain, string, data=None): print('Callback: level =', level, ', domain =', domain, ', string =', string) if data: …
phoxd
  • 1,546
  • 3
  • 12
  • 26
2
votes
1 answer

Can you capture image after few seconds?

Is there some parameter for gphoto2 command to take picture after x seconds? I tried to use -I 5 and -F 1, but it took picture immediately
2
votes
0 answers

GPhoto2 Java Take Photo

I used this lib github:gphoto2-jna to access my Nikon. I got the preview working (live preview and save the preview image to disk) but I got stuck in capturing a normal photo and save it to the disk. I think my problem is just a pointer thing, but…
2
votes
0 answers

Gphoto2 - Canon Change Settings for Movie Recording Quality from HD to 4K

I would like to change the settings of the Canon DSLR Camera from HD to 4K and vice-versa programmatically. I used gphoto2, libghoto2 to control the settings and capture photo and video. (I have physically switched the nob to Video mode on…
Olivia
  • 43
  • 6
2
votes
1 answer

node.js / gphoto2 - how to save file (jpg)

Im trying to build a web gui for a canon eos 7d using node.js (0.10.20), libgphoto2 (2.5.2.) and gphoto2 module for node on a Raspberry Pi (latest raspbian). Everything seems to work fine except for saving the files in node. im using the following…
zn4ke
  • 21
  • 2
2
votes
1 answer

Making framework private with install_name_tool being ignored

I have written a simple application using the GPhoto2 Framework, and this works so long as the framework is in the location where it was originally compiled. I would like to move this inside the app bundle, though, so it does not need separate…
Rebecka
  • 1,213
  • 8
  • 14
2
votes
2 answers

processing va_list argument in JNA callback function

How can I process a va_list argument with Java, having received it from the native library? I am using a C library that facilitates logging through a callback function. The library is libghoto2 and I am using a JNA wrapper libgphoto2-java to access…
derabbink
  • 2,419
  • 1
  • 22
  • 47
1
vote
0 answers

Sony camera PTP response halt condition detected (endpoint stalled) or control request not supported

I have a program on golang to communicate with the camera but its keeps response halt when try to send the command 0x9201 (SDIOConnect) with params (0x1,0x0,0x0) I use libgphoto2 and its works well but we I do it use go-usb with golang the response…
Rofie Sagara
  • 289
  • 5
  • 17
1
vote
0 answers

How to capture movie with Gphoto2 + ffmpeg and redirect serve to html embed

Iam trying to capture video from Panasonic DC-GH5 camera to serve this and access from browser withoud ffserver because ffserver is deprecated Iam using Ubuntu 20.04 #gphoto2 -v gphoto2 2.5.23 gcc, popt(m), exif, cdk, aa, jpeg,…
1
2 3 4 5