WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 64 bit gphoto2 thread  (Read 7510 times)

aus9

  • Guest
64 bit gphoto2 thread
« on: September 27, 2018, 03:04:43 AM »
this is a drift off topic from this libgphoto2 update request thread
http://forum.tinycorelinux.net/index.php/topic,22236.msg139261.html#msg139261

I have built and just tested....but testing may need more work....a command line tool to interact with libgphoto2
I could not find gphoto2 in our repo so forgive me, it there is a better package.

Based on the manual here
http://www.gphoto.org/doc/manual/using-gphoto2.html

here are some code snippets.

Code: [Select]
gphoto2 --get-all-files
Saving file as DSCF1456.JPG                                                   
Saving file as DSCF1457.JPG                                                   
Saving file as DSCF1458.JPG                                                   
Saving file as DSCF1459.JPG                                                   
Saving file as DSCF1460.JPG                                                   
Saving file as DSCF1461.JPG

Before I grabbed them I did some tests such as

Code: [Select]
     gphoto2 --list-ports
Devices found: 9
Path                             Description
--------------------------------------------------------------
ptpip:                           PTP/IP Connection               
serial:/dev/ttyS0                Serial Port 0                   
serial:/dev/ttyS1                Serial Port 1                   
serial:/dev/ttyS2                Serial Port 2                   
serial:/dev/ttyS3                Serial Port 3                   
serial:                          Serial Port Device             
usb:001,004                      Universal Serial Bus           
usbdiskdirect:/dev/sdc           USB Mass Storage direct IO     
usbscsi:/dev/sg3                 USB Mass Storage raw SCSI       
tc@box:~$ gphoto2 --auto-detect
Model                          Port                                           
----------------------------------------------------------
tc@box:~$ gphoto2 --auto-detect
Model                          Port                                           
----------------------------------------------------------
USB PTP Class Camera           usb:001,007     
tc@box:~$ gphoto2 --summary
Camera summary:                                                               
Manufacturer: FUJIFILM
Model: FinePix T500
  Version: Digital Camera FinePix T500 Ver1.00
  Serial Number: 592D323135333313092722C53UK03103
Vendor Extension ID: 0x6 (1.0)
Vendor Extension Description: fujifilm.co.jp: 1.0;

Capture Formats:
Display Formats: JPEG, JFIF, Unknown(b002)
Supported MTP Object Properties:
JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth
JFIF/3808: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name
Unknown(b002)/b002: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc08/DateCreated dc87/Width dc88/Height dcd3/ImageBitDepth

Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, No vendor specific capture

Storage Devices Summary:
store_00010001:
StorageDescription: External Memory
VolumeLabel: 000000000000000000000000000000000000000000000000
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read Only with Object deletion
Maximum Capability: 15468593152 (14752 MB)
Free Space (Bytes): 15455354880 (14739 MB)
Free Space (Images): 3804

Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [0 - 3, step 1] value: 3% (3)
Property 0xd303:(read only) (type=0x2) 1
Perceived Device Type(0xd407):(read only) (type=0x6) 1
Session Initiator Info(0xd406):(readwrite) (type=0xffff) ''

tc@box:~$ gphoto2 --list-files
There is no file in folder '/'.                                               
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.
There are 6 files in folder '/store_00010001/DCIM/101_FUJI'.
#1     DSCF1456.JPG               rd  1119 KB 1920x1080 image/jpeg
#2     DSCF1457.JPG               rd   731 KB 1920x1080 image/jpeg
#3     DSCF1458.JPG               rd   808 KB 1920x1080 image/jpeg
#4     DSCF1459.JPG               rd   779 KB 1920x1080 image/jpeg
#5     DSCF1460.JPG               rd   829 KB 1920x1080 image/jpeg
#6     DSCF1461.JPG               rd  1538 KB 4608x3440 image/jpeg   

the first fail for auto detect...showing above.....I had to power cycle the camera YMMV   

                                       

Offline cbookou

  • Newbie
  • *
  • Posts: 10
Re: 64 bit gphoto2 thread
« Reply #1 on: November 16, 2018, 04:33:34 PM »
maybe I'm missing something, but how would I get ahold of this commandline tool? Not seeing it in the 9.X repo.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: 64 bit gphoto2 thread
« Reply #2 on: November 16, 2018, 05:38:56 PM »
Hi cbookou
It's possible the extension was never submitted to the repo.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: 64 bit gphoto2 thread
« Reply #3 on: November 16, 2018, 10:03:56 PM »
gphoto2 now posted

Offline cbookou

  • Newbie
  • *
  • Posts: 10
Re: 64 bit gphoto2 thread
« Reply #4 on: November 26, 2018, 08:14:38 PM »
Thanks again!

Offline isidroco

  • Newbie
  • *
  • Posts: 2
Re: 64 bit gphoto2 thread
« Reply #5 on: January 22, 2020, 02:32:29 PM »
Hi, I'm new in linux. Just installed tinycore and managed to install libgphoto2.tcz from cloud Apps.  How can I get Terminal to accept Gphoto2 commands?  I'm stuck here.  Excuse me if asking a newbie question, but couldn't find any further instructions. Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: 64 bit gphoto2 thread
« Reply #6 on: January 22, 2020, 04:55:21 PM »
Hi isidroco
Welcome to the forum. You need to install  gphoto2.tcz.  You installed  libgphoto2.tcz  which is a dependency of  gphoto2.tcz.
Currently  gphoto2.tcz  is only in the 64 bit version of Tinycore.