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
0
votes
0 answers

gphoto2 --capture-image-and-download fails with Sony ILCE-7RM4A

I try to take photo, but it does not work I tried gio mount -s gphoto2, but it did not help Name the OS Ubuntu 18.04 Name the camera Manufacturer: Sony Corporation: Model: ILCE-7RM4A device version: 1.10 serial number:…
0
votes
0 answers

DSLR image capture 1 per second and video capture

I'm trying to learn to use gphoto2 to control a DSLR camera for image and video capture. I want the camera to take a photo every second, or minimum at a fixed rate but I can't work out how to do it. I have found that in the command line one can use…
Benjy
  • 19
  • 1
  • 7
0
votes
0 answers

Switch Sony aplha 7 mark iii from charging mode to Usb mode

I need to use my sony alpha 7 camera with a dummy battery. If the power button on the camera is set to ON and I switch off and on the dummy battery, the pc recongnized the camera in charging mode and I can't control it. Only by re-plugged the usb-c…
0
votes
0 answers

Why does it take so long to load libgphoto2 *.so-files on RaspPi

I'm making an app that grabs a picture from a RaspPi camera using OpenCV. But first time the app runs, I notice that it takes forever to load (or unload?) .so-files. I get many lines like these in debug…
Bjm
  • 113
  • 8
0
votes
0 answers

Is possible to use the camera controls when capturing a movie?

I am using my camera as a webcam and I was wondering if it is possible to change things like ISO using the camera controls or even CLI commands when running the following command without stopping "the streamming". I am running the following command…
Bruno Casarotti
  • 623
  • 8
  • 23
0
votes
0 answers

Cannot open direct import of RAW from camera with crtw2fits

I open a BULB image with gphoto2 but I cannot find the way to separate the bands of the RAW image. The code crtwo2fits could convert the images into FITS format but cr2.py flags the file as closed: from crtwo2fits import cr2 camera_file =…
0
votes
1 answer

Setting AutoFocus Area in Python Gphoto2

I am trying to set the autofocus area for my Nikon D7200 I retrieved the config object and saw this entry in it: { "idx": "6,6,0,0", "ro": 0, "name": "changeafarea", "label": "Set Nikon Autofocus area", …
Jacob Dallas
  • 47
  • 1
  • 8
0
votes
2 answers

Python opencv cv2.VideoCapture freeze

My code always freezes on me. I'm testing it on this code. import cv2 cap = cv2.VideoCapture('/dev/video0') # frozen ret, frame = cap.read() print(ret, frame) My configuration is raspberry pi Python 3.9.2 Canon 600D this command works…
Akrej
  • 31
  • 5
0
votes
0 answers

Raspberry Pi Motion on_motion_detected not running gphoto2 script

I'm trying to get Motion to trigger gphoto2 with on_motion_detected. I can get this event to run a bash script, I can get it to run a python script. If either of those calls gphoto2 it fails. Running the bash scrip or python script from the command…
John
  • 11
  • 2
0
votes
0 answers

How to control multiple DSLR CAMERAS with gphoto2 and python

I would like to control multiple cameras. I have tried with: gphoto2 (--camera: Nikon\ DSC\ 5300 --capture-image but with terminal of linux and it works. The problem comes when I want to write in a script in python. I always get an error -105:…
0
votes
1 answer

Compiled libgphoto2 and gphoto2, but gphoto2 shows older libgphoto2

I followed the basic directions (This reference gives how to deal with missing libraries: https://sourceforge.net/p/gphoto/mailman/message/33367636/) to compile the latest libgphoto2 and gphoto2 on a Raspberry Pi, but when I try seeing what is…
asylumax
  • 781
  • 1
  • 8
  • 34
0
votes
2 answers

gphoto2 in Python vs command line; not able to capture preview in Python

I've worked with gphoto2 (2.5.20, on a RPi) before, and have been able to do the basics from the command line: /usr/bin/gphoto2 --capture-image-and-download --filename=zzz.jpg --force-overwrite /usr/bin/gphoto2 --capture-preview --filename=zzz.jpg…
asylumax
  • 781
  • 1
  • 8
  • 34
0
votes
0 answers

Converting MJPEG to JPEG by reading byte inputs from Popen in Python

I'm using a windows build of gphoto2 to generate a byte stream. Take the byte stream and look for the jpeg headers (ff d8) and footer (ff d9) and display a single image from the stream. Whenever I pass the parsed byte string into imdecode it returns…
Ricky Wahl
  • 11
  • 2
0
votes
1 answer

How to unmount gphoto2 device as root

As a regular user I can see my mounted camera with gio mount, user@localhost $ gio mount -l Volume(0): NIKON DSC D3200 Type: GProxyVolume (GProxyVolumeMonitorGPhoto2) Mount(0): NIKON DSC D3200 -> gphoto2://%5Busb%3A002,007%5D/ Type:…
phoxd
  • 1,546
  • 3
  • 12
  • 26
0
votes
2 answers

GPhoto2 - get focal length and sensor size directly from the camera

Is it possible to get focal length and/or sensor size directly from the camera using GPhoto2? I've tried to look for it in camera object and in file info, but to no avail. I also know I can get/set some parameters (speed, aperture and so on) using…
elena
  • 91
  • 2
  • 12