gphoto / gphoto2 Goto Github PK
View Code? Open in Web Editor NEWThe gphoto2 commandline tool for accessing and controlling digital cameras.
License: GNU General Public License v2.0
The gphoto2 commandline tool for accessing and controlling digital cameras.
License: GNU General Public License v2.0
It seems that specifying the usb port doesn't work for two cameras of the same model. Is there any current work-around for this?
Specifically, it looks like this has just been left as an open problem on main.c#L2452
What would be the preferred way to get this fixed? It seems like gphoto2 assumes there will always only be one camera (with single port settings written to a flat file).
Thanks!
Running make check
gives
make check-TESTS
make[3]: Entering directory `/home/clb/gphoto2/tests'
make[4]: Entering directory `/home/clb/gphoto2/tests'
FAIL: testsuite
make[5]: Entering directory `/home/clb/gphoto2/tests'
Making all in data
make[6]: Entering directory `/home/clb/gphoto2/tests/data'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/clb/gphoto2/tests/data'
Making all in staging
make[6]: Entering directory `/home/clb/gphoto2/tests/staging'
Making all in subdir1
make[7]: Entering directory `/home/clb/gphoto2/tests/staging/subdir1'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/home/clb/gphoto2/tests/staging/subdir1'
Making all in subdir2
make[7]: Entering directory `/home/clb/gphoto2/tests/staging/subdir2'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/home/clb/gphoto2/tests/staging/subdir2'
make[7]: Entering directory `/home/clb/gphoto2/tests/staging'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/clb/gphoto2/tests/staging'
make[6]: Leaving directory `/home/clb/gphoto2/tests/staging'
make[6]: Entering directory `/home/clb/gphoto2/tests'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/clb/gphoto2/tests'
make[5]: Leaving directory `/home/clb/gphoto2/tests'
============================================================================
Testsuite summary for gphoto2 command line interface 2.5.9.1
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to [email protected]
============================================================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/home/clb/gphoto2/tests'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/home/clb/gphoto2/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/clb/gphoto2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/clb/gphoto2/tests'
make: *** [check-recursive] Error 1
with log file showing
*** Running "Thumbnail download" test
mv: cannot stat 'thumb_xexif.jpg': No such file or directory
Test test035 FAILED: post test command failure
*** Running "Thumbnail download for image w/o thumbnail" test
Test test036 FAILED: got exit 0, expected 1
*** Running "EXIF display" test
cmp: EOF on /home/clb/gphoto2/tests/log/test037.out
Test test037 FAILED: unexpected output
*** Running "EXIF display on image w/o EXIF" test
Test test038 FAILED: got exit 0, expected 1
*** Running "EXIF display on non-EXIF PNG" test
Test test039 FAILED: got exit 0, expected 1
*** Running "Get all thumbnails" test
Test test040 FAILED: got exit 0, expected 1
6 test(s) have FAILED
Hello,
did someone configure gphoto2 on Synology NAS via IPKG package? I know, the implementation there is pretty old, but should work with my old camera. I have problems to read data from the USB (but camera is recognized correctly)
Thanx for any info,
Jimicek
Firstly, thanks for all the great work!
The current version of gPhoto 2.5.10 does not permit transfer of RAW DNG or MLV images (created by ML silent photo module) across USB with a canon 700d in PTP. I can only get CR2 or JPG's to transfer. I can not unfortunately remove the SD card and insert into PC as this will be a remote timelapse camera setup. The camera can't be mounted in a USB mass storage mode, so I am stuck with PTP.
Is this possible?
Firstly, i would like to say thank you for this great effort to make this cool stuff, this is exactly what i need to play with my camera 👍
this component runs smoothly on iMac late 2013 (use Yosemite), but still got no luck when i try to run gphoto2 commands on my MacBook Pro Late 2013 (use OSX El Capitan). both computer use MacPorts to install gphoto2.
any help will be appreciated, thanks :)
below is log from my attempt to run gphoto2 --capture-image
on MBP
Hello, I am using Nikon d7000 with gphoto on Gentoo Linux. Several months ago it worked, but after upgrade gphoto2 can't discover the DSLR. What may be wrong?
$ uname -a
Linux gentoo 4.4.39-gentoo #1 SMP Wed Jan 18 08:29:43 MSK 2017 x86_64 Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz GenuineIntel GNU/Linux
$ gphoto2 --version
gphoto2 2.5.11
Copyright (c) 2000-2016 Lutz Mueller and others
gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.
This version of gphoto2 is using the following software versions and options:
gphoto2 2.5.11 x86_64-pc-linux-gnu-gcc, popt(m), exif, no cdk, no aa, no jpeg, readline
libgphoto2 2.5.11 INCOMPLETE CAMLIB SET (), x86_64-pc-linux-gnu-gcc, ltdl, EXIF
libgphoto2_port 0.12.0 x86_64-pc-linux-gnu-gcc, ltdl, USB, no serial
$ lsusb
...
Bus 003 Device 013: ID 04b0:0428 Nikon Corp. D7000
...
$ gphoto2 --auto-detect
Model Port
----------------------------------------------------------
$ gphoto2 --list-ports
Devices found: 2
Path Description
--------------------------------------------------------------
ptpip: PTP/IP Connection
usb: Universal Serial Bus
$ dmesg
...
[19881.579925] usb 3-8.4: new high-speed USB device number 13 using xhci_hcd
[19881.653456] usb 3-8.4: New USB device found, idVendor=04b0, idProduct=0428
[19881.653458] usb 3-8.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19881.653459] usb 3-8.4: Product: NIKON DSC D7000
[19881.653460] usb 3-8.4: Manufacturer: NIKON
[19881.653461] usb 3-8.4: SerialNumber: 000002053471
[20163.265262] usb 3-8.4: USB disconnect, device number 13
There is a strange line in the logfile
0.004825 gp_abilities_list_lookup_model [gphoto2-abilities-list.c:613](0): Could not find any driver for 'Nikon DSC D7000 (PTP mode)'
apple has the Lightning to USB Camera Adapter to connect camera.But,can gphotot2 support it?
after "sudo apt-get install gphoto2" the output from: "sudo apt-cache show gphoto2" shows the following:
Package: gphoto2
Version: 2.5.4-1
Architecture: armhf
Maintainer: Debian PhotoTools Maintainers [email protected]
Installed-Size: 802
Depends: libaa1 (>= 1.4p5), libc6 (>= 2.4), libcdk5, libexif12, libgphoto2-6 (>= 2.5.2), libgphoto2-port10 (>= 2.5.2), libjpeg8 (>= 8c), libncurses5 (>= 5.5-5~), libpopt0 (>= 1.14), libreadline6 (>= 6.0)
Suggests: gtkam, gthumb
Homepage: http://www.gphoto.org/proj/gphoto2/
Priority: extra
Section: utils
Filename: pool/main/g/gphoto2/gphoto2_2.5.4-1_armhf.deb
There is an alternative way to upgrade gphoto2: https://github.com/gonzalo/gphoto2-updater
is there any other automatic way or a possibility to use "sudo apt-get update && sudo apt-get upgrade"?
Hello,
I would like to report an issue which is seemingly linked to the update from gphoto2 2.5.9-1 to 2.5.10-1 and from libgphoto2 2.5.9-1 to 2.5.10-1.
I am using a Nikon DSC D3300 and the command '--get-config serialnumber' returns
Modèle Port
----------------------------------------------------------
Nikon DSC D3300 usb:001,010
Label: Numéro de série
Type: TEXT
Current: Aucune
In other words, it seems that gphoto is no longer able to read serial numbers.
The problem is the same when using Entangle.
Any idea?
Thanks in advance for your help!
Greetings
I'm running gphoto2 on a Rasberry Pi 2 with a Nikkon D8. I can capture images just fine but I get a "PTP Operation Not Supported" error when trying to set the f-number. From reading the options for the Nikkon D80 on the gphoto2 list of supported cameras I figured that such an operation is supported but I may have understood the description incorrectly. Cam someone confirm whether this operation is supported on this specific camera?
The following command runs without issues (as far as I can tell) the first time:
gphoto2 --debug --debug-logfile=logfile2.txt --capture-image-and-download
If I try again, I hear the camera take the photo and release the shutter, but there is no response from gphoto2.
More info
This is reproducible on 2 different Canon20D cameras consistently, I've re-installed raspbian and gphoto2 (dev, and stable) still no luck. The really strange thing is that this did work in the past, using the same camera and raspberry pi, under the indilib.org gphoto driver (it stopped working during an imaging session at which point I tried directly using the gphoto cli). I'm wondering if there is some weird state set on the camera's. I've factory reset both, no luck.
Attached logs
Log 1 (first image, no apparent issues)
https://gist.github.com/zfedoran/00ac5034d075464125637066923305fe
Log 2 (second image, takes image, does not download)
https://gist.github.com/zfedoran/64f165f553bb9b0caf8f9089c12ee065
Hi,
I am using Gphoto2 with a raspberry Pi to make a portable device for backing up photos from a camera.
I have a bash script that runs --autodetect to find teh camera.
It then creates a new folder on the backup media.
Then runs --get-all-files.sh .
Everything works fine if I use a USB stick as the backup media.
--autodetect just detects the camera & the photos are copied from the camera to the USB stick.
Problems arise when I use a portable HDD drive (with powered hub) as the backup media.
--auto-detect detects both the camera and the HDD:
(both as 'Mass Storage Camera' when camera is connected as USB Mode: PC)
or
( Camera as 'Camera Model Name' and HDD as 'Mass Storage Camera' when camera is connected as USB Mode: PTP)
& it eitherway it proceeds to copy photos from the HDD back to the HDD instead of from the camera to the HDD.
Even if I filter the --auto-detect to screen for just the camera, it detects just the camera OK but again copies the files from the HDD instead of the camera.
It's almost like it can't cope with 2 devices
gphoto2 v2.5.6
libgphoto2 v 2.5.4
libgphoto2_port 0.12.0
Fairly new to all this stuff - so any ideas pls.
I'm rather new to gphoto and I have an issue that I hope someone can help me troubleshoot. I have a Nikon S6200 which works in PTP mode and have wrote a script for a photo booth for a friends wedding. It seems after shooting approximately 15 photos the camera just quits responding. To make sure it wasn't an error somewhere else in the Photo booth program I wrote a script to only capture and downloads images one after another and about 15 photos in it snaps a picture and then just hangs there not downloading anything. Also the camera remains on so I know it hasn't automatically powered down. Any help diagnosing would be appreciated.
Hi!
I have install gphoto2 and now I was trying to deal with the python interface
I am trying to detect the camera but by using a simple code like this:
gp.check_result(gp.use_python_logging())
context = gp.gp_context_new()
camera = gp.check_result(gp.gp_camera_new())
gp.check_result(gp.gp_camera_init(camera, context))
I got an error message "Unknwon model[105]" when my camera is a Nikon D40, which is in the list
If I use the terminal interface with:
gphoto2 --auto-detect
the camera is correctly detected
Where is my mistake?
Thank you
Stefano
Hello!
I installed gphoto2 using this script: https://github.com/gonzalo/gphoto2-updater/ on my Raspberry Pi 3 (distro is the newest Rasbian).
I connected my Canon EOS 350D camera with the standard USB cable, and tried to --capture-image but I got the following message:
*** Error ***
An error occurred in the io-library ('I/O problem'): No error description available
ERROR: Could not capture image.
ERROR: Could not capture.*** Error ***
An error occurred in the io-library ('I/O problem'): No error description available
--auto-detect works:
Model Port
Canon Digital Rebel XT (normal mode) usb:001,004
--list-config does not:
*** Error ***
An error occurred in the io-library ('I/O problem'): No error description available
*** Error (-7: 'I/O problem') ***For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list [email protected], please run
gphoto2 as follows:env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --list-config
Please make sure there is sufficient quoting around the arguments.
I attached the logfile.
my-logfile.txt
(Camera is in normal mode because it does not support in PTP.)
Please help!
Hello gphoto team,
I just updated to gphoto2 2.5.11
But sadly the caturing time on my system rises from 2 seconds (v 2.5.10) to 5 seconds (v2.5.11 )
I have tested both calling gphoto directly:
gphoto2 --capture-image-and-download --no-keep --filename myfilename.jpg --force-overwrite
Or calling the capture from the gphoto shell:
capture-image-and-download
My system is:
Mac, OSX 10.10.5
Sony Alpha 7S
Camera Settings
"USB Connection“ : PC Remote
"USB LUN Setting“ : Single
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.11 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
Running gphoto2 with interval and capture-image-and-download options causes extra space usage on the hard drive. The space is freed up only after the process exits.
I found this by running gphoto2 on the root partition and --filename option set to a separate data partition. Available space decreased very quickly on the / partition until it was full. Exiting the gphoto2 process freed all the space on root partition that was being used.
Hi guys!
First of all, let me say a huge, major, incredible big THANK YOU for gphoto2.
What a great tool. 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
I use it with my Raspi B with the newes Raspian and it works fine. Well, almost.
So I aimed for something bigger, than just taking some pictures in a row. I wanted to take some fast motion of the rising sun every morning.
So I just created a cronjob, tested it, changed it to a point in time for the next morning and went to sleep.
The next morning, there were no pictures at all. 👎
Not what you may guess, I switched off the power down option of my Canon EOS 450 D!
Defently positiv! And it still was switched off the next morning and the camera was still alive. (Accu: 81%)
Let's try something simple.
gphoto2 --list-config
NO response from the raspi. I switched the camera off and on and did it again. The usual printout appeared on the screen. Hmmmm.
I changed the cronjob to about an hour into the future. - Worked!
I changed the cronjob to three hours - Did not work.
Any ideas?
Cheers
Thorsten
I run
gphoto2 --get-config /main/capturesettings/imagequality
and besides the correct output (i.e. different choices) I also get
*** Error ***
Property '/main/capturesettings/imagequality' not found.
(even though the property is clearly there).
running gphoto2 --list-all-config
produces the whole config without any problems.
(this is not specific to imagequality)
(gphoto-2.5.10, Sony A5000)
I don't know if this is the right place to ask this...
My Grandmother bought my daughter one of these for Christmas:
Discovery Kids Digital Camera and Video
http://amzn.com/B00G49INKA
I'm a Debian Linux user and I can't seem to get this camera to work and I was hoping for some guidance. I'm not sure if this camera is suppose to show up as a mass storage devices, MTP, or PTP. I brought it to work and it mounts as a regular drive on the Windows machine there.
On Linux I can see it with 'lsusb'
Bus 001 Device 003: ID 0d98:1007 Mars Semiconductor Corp. Discovery Kids Digital Camera
If I "gphoto2 --list-ports" I believe these ports listed are the camera:
usb:003,005 Universal Serial Bus
usb:003,004 Universal Serial Bus
usb:003,003 Universal Serial Bus
usbdiskdirect:/dev/sdb USB Mass Storage direct IO
usbscsi:/dev/sg2 USB Mass Storage raw SCSI
Most other gphoto2 commands give me this message:
*** Error ***
Could not detect any camera
*** Error (-105: 'Unknown model') ***
The device "/dev/sdb" has no partitions and can't be mounted itself and fdisk gets this error:
fdisk: cannot open /dev/sdb: Input/output error
after pluging in the camera dmesg show these messages repeated a number of times:
[ 1090.314634] sd 5:0:0:0: [sdb] FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 1090.314640] sd 5:0:0:0: [sdb] CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[ 1090.314643] blk_update_request: I/O error, dev sdb, sector 1
[ 1090.314646] Buffer I/O error on dev sdb, logical block 1, async page read
I also can "cat" of "dd" anything from /dev/sdb
Any direction on what to do would be great. It's not a big deal, but my daughter likes playing with this camera, and it only has 13MB of storage, so it fills up fast.
Thanks
Hi there,
I know this has been talked about in the mailing list but didn't see a bug posted here. Symptoms are various Sony cameras will take pictures in timelapse mode just fine for quite some time then stop capturing.
I've also experienced a timelapse set for say - a 20 second interval - will take no photos for 40 seconds then two photos in quick succession. Debug log shows "no object found during event polling. try the 0xffffc001 object id" when this happens.
Let me know if I can help with debugging.
I was randomly looking at gphoto2 code when I saw something very weird that I guess is testing code that was forgotten.
Look at the following line of main.c : save_file_to_file:
Line 543 in ae995fe
It looks like that for downloading files content, you are randomly choosing between libgphoto2 "fd" or "handler" method. If I suppose that both methods work correctly in all situations, that looks a little weird for me and could be cause of random non understandable issues?
This was introduced by the following change:
ae995fe#diff-58ad5a323f09c958fa9666f43f1cf7f7R543
Test 21 (Missing port option) failed.
On Sony A6000 "Bulb mode enabled" but "bulb not found in configuration tree" failure.
Hi Marcus,
First of all: Thank you for such a great tool! Please let me know how I can donate to the project.
A few days ago, I set up a webcam with a Canon 1200D and a Raspi at the restaurant of my daughter's boyfriend family (ladarsena.it/webcam). SInce a webcam doesn't need to adjust the focus, I use eosremoterelease=5 to capture the image immediately. I use exactly this command:
gphoto2 --force-overwrite --set-config imageformat=3 --set-config iso=0 --set-config eosremoterelease=5 --capture-image-and-download --filename image.jpg
Usually it works perfect, but once in a while I get an error. In the night the error persists, then I have to change "-capture-image-and-download" to "--wait-event-and-download=35s". This works until the next morning, then the same error occurs and I have to switch back to "-capture-image-and-download" to get it running.
Debug log attached. Any ideas?
Thanks
Peter
Running on
clb@giada:~/gphoto2$ uname -a
Linux giada 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
clb@giada:~/gphoto2$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
and a fairly clean distribution, apt-get installed autoconf
and autopoint
before the following:
clb@giada:~$ git clone https://github.com/gphoto/gphoto2.git
Cloning into 'gphoto2'...
remote: Counting objects: 5216, done.
remote: Total 5216 (delta 0), reused 0 (delta 0), pack-reused 5216
Receiving objects: 100% (5216/5216), 3.24 MiB | 1.45 MiB/s, done.
Resolving deltas: 100% (3933/3933), done.
Checking connectivity... done.
clb@giada:~$ cd gphoto2/
clb@giada:~/gphoto2$ autoreconf -is
Copying file ABOUT-NLS
Creating directory auto-aux
Copying file auto-aux/config.rpath
Creating directory auto-m4
Copying file auto-m4/codeset.m4
Copying file auto-m4/gettext.m4
Copying file auto-m4/glibc21.m4
Copying file auto-m4/iconv.m4
Copying file auto-m4/intdiv0.m4
Copying file auto-m4/intmax.m4
Copying file auto-m4/inttypes-pri.m4
Copying file auto-m4/inttypes.m4
Copying file auto-m4/inttypes_h.m4
Copying file auto-m4/isc-posix.m4
Copying file auto-m4/lcmessage.m4
Copying file auto-m4/lib-ld.m4
Copying file auto-m4/lib-link.m4
Copying file auto-m4/lib-prefix.m4
Copying file auto-m4/longdouble.m4
Copying file auto-m4/longlong.m4
Copying file auto-m4/nls.m4
Copying file auto-m4/po.m4
Copying file auto-m4/printf-posix.m4
Copying file auto-m4/progtest.m4
Copying file auto-m4/signed.m4
Copying file auto-m4/size_max.m4
Copying file auto-m4/stdint_h.m4
Copying file auto-m4/uintmax_t.m4
Copying file auto-m4/ulonglong.m4
Copying file auto-m4/wchar_t.m4
Copying file auto-m4/wint_t.m4
Copying file auto-m4/xsize.m4
Copying file auto-aux/mkinstalldirs
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/[email protected]
Copying file po/[email protected]
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
configure.ac:35: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:35: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
gphoto --capture-image
does not save an image to the camera's card. Instead it states "downloading....." but after finishing
neither the photo is saved to the camera's card not it resides on the host's file system
gphoto --capture-image --filename test.jpg
also fails
Test system: raspberry pi b / b+
Tested versions: gphoto 2.5.9 release, and gphoto 2.5.9.1
Tested cameras: nicon 1, canon eos 5d mark II and canon eos 5d mark III
I tested it with version 2.4.x successfully (with the nicon 1 (but had other bugs because of the lacking support of the nicon 1 with the 2.4.x version))
Hi,
first of all thanks for the nice work!
I have the following problem. When the shutter of my camera is closed, then gphoto2 --capture-preview works fine. When I call it a second time with an open shutter then the program hangs.
With the API I have a similar problem. If the shutter is closed before I start my program live view works fine (loop of capture_preview calls).
If I start the program with an open shutter it also hangs.
Here some debug info from gphoto2 --capture-preview --debug
0.138909 ptp_usb_sendreq (2): Sending PTP_OC 0x9201 (PTP_OC_NIKON_StartLiveView) request...
0.138916 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.139015 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 01 92-08 00 00 00 ............
0.139024 ptp_usb_getresp (2): Reading PTP_OC 0x9201 (PTP_OC_NIKON_StartLiveView) response...
0.139030 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.139270 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 19 20-08 00 00 00 ....... ....
0.139306 ptp_usb_getresp [usb.c:465] (0): PTP_OC 0x9201 receiving resp failed: PTP Device Busy (0x2019)
0.139315 ptp_usb_sendreq (2): Sending PTP_OC 0x90c8 (PTP_OC_NIKON_DeviceReady) request...
0.139320 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.139517 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 c8 90-09 00 00 00 ............
0.139526 ptp_usb_getresp (2): Reading PTP_OC 0x90c8 (PTP_OC_NIKON_DeviceReady) response...
0.139532 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.139642 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 01 20-09 00 00 00 ....... ....
0.159720 ptp_usb_sendreq (2): Sending PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) request...
0.159743 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.159909 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 03 92-0a 00 00 00 ............
0.159917 ptp_usb_getdata (2): Reading PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) data...
0.159920 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.160275 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 02 00 03 92-0a 00 00 00 ............
0.160286 ptp_usb_getresp (2): Reading PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) response...
0.160292 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.160515 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 0b a0-0a 00 00 00 ............
0.160527 ptp_usb_getresp [usb.c:465] (0): PTP_OC 0x9203 receiving resp failed: Not in Liveview (0xa00b)
0.160545 ptp_usb_sendreq (2): Sending PTP_OC 0x1016 (Set device property value) (0xd10b) request...
0.160551 gp_port_write (3): Writing 16 = 0x10 bytes to port...
0.160764 gp_port_write (3): Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000 10 00 00 00 01 00 16 10-0b 00 00 00 0b d1 00 00 ................
0.160772 ptp_usb_senddata (2): Sending PTP_OC 0x1016 (Set device property value) data...
0.160778 gp_port_write (3): Writing 13 = 0xd bytes to port...
0.160877 gp_port_write (3): Wrote 13 = 0xd bytes to port: (hexdump of 13 bytes)
0000 0d 00 00 00 02 00 16 10-0b 00 00 00 01 .............
0.160886 ptp_usb_getresp (2): Reading PTP_OC 0x1016 (Set device property value) response...
0.160891 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.161254 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 01 20-0b 00 00 00 ....... ....
0.161263 ptp_usb_sendreq (2): Sending PTP_OC 0x9201 (PTP_OC_NIKON_StartLiveView) request...
0.161269 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.161383 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 01 92-0c 00 00 00 ............
0.161392 ptp_usb_getresp (2): Reading PTP_OC 0x9201 (PTP_OC_NIKON_StartLiveView) response...
0.161397 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.161514 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 19 20-0c 00 00 00 ....... ....
0.161523 ptp_usb_getresp [usb.c:465] (0): PTP_OC 0x9201 receiving resp failed: PTP Device Busy (0x2019)
0.161531 ptp_usb_sendreq (2): Sending PTP_OC 0x90c8 (PTP_OC_NIKON_DeviceReady) request...
0.161534 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.161632 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 c8 90-0d 00 00 00 ............
0.161641 ptp_usb_getresp (2): Reading PTP_OC 0x90c8 (PTP_OC_NIKON_DeviceReady) response...
0.161646 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.161770 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 01 20-0d 00 00 00 ....... ....
0.182826 ptp_usb_sendreq (2): Sending PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) request...
0.182847 gp_port_write (3): Writing 12 = 0xc bytes to port...
0.183057 gp_port_write (3): Wrote 12 = 0xc bytes to port: (hexdump of 12 bytes)
0000 0c 00 00 00 01 00 03 92-0e 00 00 00 ............
0.183070 ptp_usb_getdata (2): Reading PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) data...
0.183076 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.183394 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 02 00 03 92-0e 00 00 00 ............
0.183404 ptp_usb_getresp (2): Reading PTP_OC 0x9203 (PTP_OC_NIKON_GetLiveViewImg) response...
0.183410 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
0.183643 gp_port_read (3): Read 12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000 0c 00 00 00 03 00 0b a0-0e 00 00 00 ............
0.183655 ptp_usb_getresp [usb.c:465] (0): PTP_OC 0x9203 receiving resp failed: Not in Liveview (0xa00b)
0.183665 ptp_usb_sendreq (2): Sending PTP_OC 0x1016 (Set device property value) (0xd10b) request...
0.183671 gp_port_write (3): Writing 16 = 0x10 bytes to port...
0.183761 gp_port_write (3): Wrote 16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000 10 00 00 00 01 00 16 10-0f 00 00 00 0b d1 00 00 ................
Thanks!
Hi there,
Thank you very much for such a great tool!
I often use the following command to configure my DSLR (Canon 350D):
gphoto2 --set-config-index /main/settings/iso=10 --set-config-index /main/settings/capturesizeclass=0 --set-config-index /main/settings/shootingmode=4 --set-config-index /main/settings/shutterspeed=16 --set-config-index /main/settings/aperture=12 --set-config-index /main/settings/focusmode=3 --set-config-index /main/settings/imageformat=8
The quoted setting values are just examples.
When I run this command from a Raspberry Pi 3 it takes about 35s to run! From my desktop PC (ubuntu) it takes substantially less time because it is a more powerful computer, but it is still quite a slow command. This tells me that the speed issue is not related to the camera (otherwise the command would require approximately the same time to run in either case).
I am surprised that a text based command like this can be so slow. For example, the time to download a RAW picture from the camera, which usually has a size around 8MB, is much much shorter, typically around 1s, also with the RasPi3.
Could this be a problem with the inner workings of gphoto2? How does gphoto2 process all the parameters I'm sending? Is there a better (faster) way of changing a bunch of settings at a time?
Note: currently using version 2.5.9-3 of gphoto2
Thanks in advance!
D
Hi,
I discovered a lag in gphoto2 2.5.6+:
Test-Setup:
Canon EOS 1100D on a i386 Ubuntu 16.04.1 (same results on amd64)
Camera Settings: M, AF OFF (also tried to turn on wich just adds some delay to both), JPEG S1.
Nikon D5300 on a same PC
Camera Settings: M, AF OFF, RAW.
~# time gphoto2 --force-overwrite --capture-image-and-download
Test-Results Canon:
gphoto2 2.5.5, libgphoto2 2.5.9, libgphoto2_port 0.12.0: 4.419s
gphoto2 2.5.6, libgphoto2 2.5.9, libgphoto2_port 0.12.0: 6.337s
Test-Results Nikon:
gphoto2 2.5.5, libgphoto2 2.5.9, libgphoto2_port 0.12.0: 3.480s
gphoto2 2.5.6, libgphoto2 2.5.9, libgphoto2_port 0.12.0: 4.415s
The delay also occurs when shooting in interval mode and triggering with SIGUSR1. I initially discovered the issue in comparison between 2.5.4 and 2.5.9/10.
Kind regards
Hi,
Im just getting started with installing ghpoto2 on a Linkit Smart DUO (http://www.seeedstudio.com/wiki/LinkIt_Smart_7688_Duo) which is essentially seeedstudio's version of the Arduino Yun running OpenWRT. I have installed all the dependencies without hassle,but since the DUO is a different architecture to the YUN, I am stuck having to compile from scratch.
In the docs online, the slide "Configure, Making, Installing" basically says "Write Me :-P"
Can someone please walk me through configuring, making, installing. I tried simply running $ ./configure.ac after using "$git clone" to download lipgphoto2 and gphoto2 sources. But no luck... "./configure.ac: line 1: syntax error: unexpected word (expecting ")")"
Thanks in advance!
I found some bugs using a Nikon D700 with latest stable 2.5.10:
Wrong label "x 200" in shutterspeed2[55], in real "x320" or "65535/65534"
Misalignment in dlighting; Label: Active D-Lighting
Choice: 0 Extra high > D700 shows High
Choice: 1 High > Normal
Choice: 2 Normal > Low
Choice: 3 Low > Off
Choice: 4 Off > Auto
Duplicate naming in returning file names from capture-image, e.g. _NIC9955.NEF:
gphoto2 --quiet --set-config burstnumber=2 --capture-image will return...
/store_00010001/DCIM/166ND700/_NIC9955.NEF
/store_00010001/DCIM/166ND700/_NIC9954.NEF
/store_00010001/DCIM/166ND700/_NIC9955.NEF
You have changed internally single calling and its now faster, but my application will called gp2 remotely, so I don't always need the whole enum with all choices.
Could you integrate a flag e.g. that gp2 cli is returning only the current value? For example instead of returning
Label: Shutter Speed 2
Type: RADIO
Current: 1/500
Choice: 0 1/8000
...
Choice: 56 Bulb
only a short form like
1/500
I assume an internal solution is more convenient and faster in opposite to have an extra call of awk or sed afterwards.
Built libgphoto2 and gphoto2 on the following system
clb@giada:~$ uname -a
Linux giada 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
clb@giada:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
and connected Sony A7R II camera via usb, and ran USB_DEBUG=1 gphoto2 --debug --capture-image --port usb:003,090
, which yielded the following log: http://pastebin.com/W6YyMnL4
In particular the errors:
0.343502 gp_port_write (3): Writing 16 = 0x10 bytes to port...
0.343738 gp_port_write (3): Wrote 0 = 0x0 out of 16 bytes to port: (empty hexdump of empty buffer)
0.343752 ptp_usb_sendreq [usb.c:106] (0): PTP_OC 0x1002 sending req failed: wrote only 0 of 16 bytes
0.344426 gp_context_error (0): PTP I/O Error
*** Error ***
PTP I/O Error
0.344442 gp_port_close (2): Closing port...
0.344496 gp_context_error (0): An error occurred in the io-library ('I/O problem'): No error description available
Any ideas?
The camera was set to the "PC Remote" usb mode, which was tested to work and remote capture on Windows when using the Sony Remote Capture program, and the camera screen was showing "Connecting..." and "USB" text on it.
I've been trying to use interval of 1s to capture images on a nikon camera. If I use the camera's internal interval capturing, it can take images every second with no problems. However, with gphoto2, the capturing would lag behind sometimes to as much as 2s intervals. Where do you think this delay is coming from, and would it be difficult to speed it up?
Hello, we have been testing the sony a6000 with libgphoto and Gphoto2 .
When we were using Gphoto2, --capture-image-and-download --interval=1 , the interval stop after 12-30 pictures for 35 seconds and then take a couple of pictures and then an other 35 sec wait and so on. We also tested with an other program using libgphoto and the same problem happen.
Well this may rather belong to libgphoto. Let me know and I'll move it.
This is on
uname -a
Linux mercury 3.4.39 #1 SMP PREEMPT Mon Oct 12 12:02:29 CEST 2015 armv7l armv7l armv7l GNU/Linux
Opensuse Tumbleweed up-to-date
gphoto-2.5.11-1.1.armv7hl
libgphoto2-6-2.5.12-1.1.armv7hl
My target is to capture in bulb mode with Nikon D3200 (latest Firmware, which is 1.04). I saw copy/paste issues in /camlibs/ptp2/cameras/nikon-d3200.txt also false information e.g. live view does work with D3200.
On the road here's what I hit:
Bulb mode capture (gphoto2 -B) does not work. From the debug log it seems to me that D3200 simply does not support this tethered. Anyway I attach a debug log from an attempted bulb capture.
Downloading files from the D3200 SD card while capturing in bulb mode. This is probably again an unsupported scenario by Nikon and I suspect that there is a rather serious bug in the Nikon firmware. While the bulb capture is active - using either an intervalometer or keeping the shutter release button pressed down - accessing the file system on the camera causes it to physically close the shutter. I do not think there is anything that can be done in gphoto2, this clearly seems to me a Nikon bug/an unpredictable result of an unsupported scenario - whatever we/they call it.
Capture with shutter speeds other than bulb (gphoto2 --capture-image-and-download -F 5 -I 4). This works no problems in both single capture and time lapse mode.
Summarizing
Here is log that displays while it the camera goes in and out of being busy
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
Saving file as capt0037.jpg
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN Camera Status 0
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d103 changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d103 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN Camera Status 1
UNKNOWN PTP Property d11b changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d11b changed
Saving file as capt0038.jpg
UNKNOWN Camera Status 0
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d102 changed
UNKNOWN PTP Property d1d3 changed
UNKNOWN PTP Property d1c0 changed
UNKNOWN PTP Property d103 changed
The 'busy' signal on the hud seems to coincide with the
UNKNOWN Camera Status 0
any help would be greatly appreciated. Thanks for the great product.
Hi!
I have got:
I use gphoto to get photos from my cam via Wi-Fi, command looks like:
gphoto2 --port ptpip:$ip --quiet --skip-existing --new --get-all-files --filename=$MEDIA_DIR/$FILENAME_FORMAT;
$FILENAME_FORMAT is %Y/%m/%d/%f.%C, so it creates new folder every day and it looks like '2016/05/11'
Issue: I've noted it creates new folder with wrong rights:
drwx------ 2 shura shura 4096 May 11 20:24 11/
i.e. it's 700, but by fact it should be 775 (my umask is 002)
Could you please fix it? My wife cannot access the photos!
Best regards,
Alexander
Hi there,
I tried to install gphoto2 only, from its directory. Steps I did:
(libgphoto2 is already installed)
"svn checkout svn://svn.code.sf.net/p/gphoto/code/trunk gphoto-code"
"cd gphoto-code/gphoto2"
The README in there tells me to run:
"autoreconf -is"
and I get the error:
"aclocal-1.15: error: couldn't open directory 'm4m': Datei oder Verzeichnis nicht gefunden (not found)
autoreconf-2.69: aclocal failed with exit status: 1"
What am I doing wrong?
Hi,
I have just updated to 2.5.10 for both gphoto2 and libgphoto2 but now find the --get-config serialnumber returns:
Label: Serial Number
Type: Text
Current: None
This for both a Nikon 610 and Nikon D50, this was working fine in the previous version I was using 2.5.5 and 2.5.5.1
any assistance would be great, I really don't want to go back to the old version if possible.
Thank you
Colin
Here is a strange one, I'm trying to capture photos straight from the Canon 80D, while shooting.
This is on a MacBook Pro Mac OS 10.12.1 with gphoto2 2.5.11 (libgphoto2_port 0.12.0)
Running this command:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile1.txt gphoto2 --capture-tethered
It works sometimes, before it stops with this error:
UNKNOWN unhandled EOS event StorageInfoChanged (size 12)
*** Error ***
PTP General Error
*** Error (-1: 'Unspecified error') ***
Often, it will show the error on the 1st shot, but if the subject is bright (not too dark) it usually will work.
For a while, I thought I had it figured it out. I thought it works only, if I set the shutter speed to faster than 1/400 of a second, because it always failed on me at 1/250 or slower.
Tonight however, I broke that rule too. Only when photographing a very bright subject at 1/800 it would work.
Anyways, if you want to look into this, here is the log file:
https://www.dropbox.com/s/eofiwg1tyvqy40u/my-logfile1.txt.zip?dl=0
Btw, I could NOT reproduce the error with --capture-image-and-download nor with --capture-preview
First of all, thanks for this fantastic tool.
is there an option, to change the camera settings like aperture or shutterspeed while tethered shooting ? When I do this on an terminal: gphoto2 --auto-detect --capture-tethered --hook-script=hook.sh --filename image.jpg
and on an other terminal i'll do this: gphoto2 --set-config aperture=8
gphoto cancel the tethered-shooting and get an error.
thanks,
kleinschmidt
Hi,
I installed the latest stable versions:
Capture & Save photo is working; but when I try to get or set the config it shows me this error.
$ gphoto2 --get-config capturetarget
gphoto2: symbol lookup error: gphoto2: undefined symbol: gp_camera_get_single_config
I`m trying to use only the gpoto2 CLI.
I'm researching about control Ricoh Theta S
camera over USB hub with gphoto2 library. I can get and download files from Ricoh Theta S
camera but when capture image
appeared error
gphoto2 --summary
Camera summary:
Manufacturer: Ricoh Company, Ltd.
Model: RICOH THETA S
Version: 01.11
Vendor Extension ID: 0x6 (1.10)
Capture Formats:
Display Formats: Association/Directory, JPEG, Firmware, MP4
Device Capabilities:
File Download, File Deletion, No File Upload
No Image Capture, No Open Capture, No vendor specific capture
Storage Devices Summary:
store_00010001:
StorageDescription: None
VolumeLabel: None
Storage Type: Builtin RAM
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 8060403712 (7687 MB)
Free Space (Bytes): 8055100416 (7681 MB)
Free Space (Images): 1617
Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100)
Date & Time(0x5011):(read only) (type=0xffff) '20161031T200941'
Perceived Device Type(0xd407):(read only) (type=0x6) 1
gphoto2 --capture-image
*** Error ***
Sorry, your camera does not support generic capture
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-6: 'Unsupported operation') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <[email protected]>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image
Please make sure there is sufficient quoting around the arguments.
Please help me.
According to release notes of new version 2.5.10, its recommended to use new single configuration set/get if possible. Are there any examples how we have to handle new syntax?
Best regards,
Nic
When capturing single image - no problems occur, when using timelapse (-I and -F options) - there are problems (always reproducible) with first image:
[root@localhost]# gphoto2 --debug --debug-logfile=logfile.txt --capture-image-and-download -I 3 -F 2 --force-overwrite
Time-lapse mode enabled (interval: 3s).
Capturing frame #1/2...
ERROR: Could not capture image.
ERROR: Could not capture.
not sleeping (57 seconds behind schedule)
Capturing frame #2/2...
New file is in location /capt0000.jpg on the camera
Saving file as capt0000.jpg
Deleting file /capt0000.jpg on the camera
gphoto info:
logfile.txt.gz
0.000087 main (2): gphoto2 2.5.10
0.000102 main (2): gphoto2 has been compiled with the following options:
0.000114 main (2): + gcc (C compiler used)
0.000125 main (2): + popt (mandatory, for handling command-line parameters)
0.000135 main (2): + exif (for displaying EXIF information)
0.000145 main (2): + no cdk (for accessing configuration options)
0.000155 main (2): + no aa (for displaying live previews)
0.000164 main (2): + jpeg (for displaying live previews in JPEG format)
0.000174 main (2): + readline (for easy navigation in the shell)
0.000190 main (2): libgphoto2 2.5.10
0.000203 main (2): libgphoto2 has been compiled with the following options:
0.000217 main (2): + all camlibs
0.000228 main (2): + gcc (C compiler used)
0.000238 main (2): + ltdl (for portable loading of camlibs)
0.000248 main (2): + EXIF (for special handling of EXIF files)
0.000262 main (2): libgphoto2_port 0.12.0
0.000275 main (2): libgphoto2_port has been compiled with the following options:
0.000286 main (2): + gcc (C compiler used)
0.000296 main (2): + ltdl (for portable loading of camlibs)
0.000325 main (2): + USB (libusb1, for USB cameras)
0.000339 main (2): + serial (for serial cameras)
0.000350 main (2): + no resmgr (serial port access and locking)
0.000360 main (2): + no ttylock (serial port locking)
0.000369 main (2): + lockdev (serial port locking)
0.000380 main (2): CAMLIBS env var not set, using compile-time default instead
0.000389 main (2): IOLIBS env var not set, using compile-time default instead
0.000399 main (2): invoked with following arguments:
0.000409 main (2): --debug
0.000419 main (2): --debug-logfile=logfile.txt
0.000429 main (2): --capture-image-and-download
0.000439 main (2): -I
0.000448 main (2): 3
0.000458 main (2): -F
0.000467 main (2): 2
0.000476 main (2): --force-overwrite
log file attached
Note: Applicable for gphoto2-2.5.9 and gphoto2-2.5.10, not tested with previous versions
I took a look at adding camera_trigger_capture() support to the Sony, based on sony_capture_camera(). It didn't go very well. Running gphoto-capture --trigger-capture in a loop on an Sony A7R would cause a shutter release every other time. I must be leaving the camera in a really weird state. Any thoughts on this?
--- libgphoto2-2.5.10.orig/camlibs/ptp2/library.c
+++ libgphoto2-2.5.10/camlibs/ptp2/library.c
@@ -3918,6 +3918,20 @@ camera_trigger_capture (Camera *camera,
GP_LOG_D ("Triggering capture to %s", buf);
+ if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) {
+ PTPPropertyValue propval;
+ propval.u16 = 1;
+ C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xD2C1, &propval, PTP_DTC_UINT16));
+ propval.u16 = 2;
+ C_PTP (ptp_sony_setdevicecontrolvalueb (params, PTP_DPC_SONY_StillImage, &propval, PTP_DTC_UINT16));
+ propval.u16 = 1;
+ C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xD2C2, &propval, PTP_DTC_UINT16));
+ propval.u16 = 1;
+ C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xD2C1, &propval, PTP_DTC_UINT16));
+ return GP_OK;
+ }
+
+
/* Nilon V and J seem to like that */
if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_NIKON) &&
!params->controlmode &&
Hi,
first of all I like to thank you for the great tool gphoto2.
I have a problem with my new cam. I connect my Sony a6300 with USB (MTP mode) from the terminal.app and gphoto2 on a Mac. I quit the process "PTPCamera" to prevent "Error (-53: 'Could not claim the USB device')" and type in
gphoto2 --list-files
It works and it shows me
There is no file in folder '/'.
There is no file in folder '/store_00010001'.
There is 1 file in folder '/store_00010001/2016-06-25'.
#1 C0001.MP4 rd 63615 KB 1920x1080 application/x-unknown
Thats fine! But after one command then the cam shuts off and I have to restart the cam to make a second command. Here is the version that I use and the debug protocol:
gphoto2 2.5.10 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.10 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
Is there a way for the hook script to know when an image is captured, not downloaded, while using --interval flag?
Hi, I want to use my Nikon D5300 via ptpip, this works fine on my laptop running Ubuntu and
gphoto2 2.5.9 gcc, popt(m), exif, no cdk, aa, jpeg, readline
libgphoto2 2.5.9 all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0 gcc, ltdl, no USB, serial without locking
But on my raspberry pi it will not work, tried from apt with version 2.5.4 and compiled to 2.5.10.
my exact command is gphoto2 --port ptpip:192.168.1.1 --capture-image
. The command gets called, but never ends. Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.