Save to PC instead of SD card

  • 78 Replies
  • 8160 Views
*

Offline DaveX

  • *
  • 44
Save to PC instead of SD card
« on: 10 / March / 2015, 09:35:43 »
Advertisements
I have a G9 tethered to my PC with CHDK on the G9 and running CHDK PTP on the PC, both downloaded in the last couple of days.  Everything is working well.  The only thing I haven't been able to get to work, at least so far, is to get shots stored as jpg's on the PC instead of the SD card.  I've set the destination in CHDK PTP to the folder on the PC, but the image only goes to the DCIM folder on the SD card.

*

Offline DaveX

  • *
  • 44
Re: Save to PC instead of SD card
« Reply #1 on: 10 / March / 2015, 16:25:20 »
Any help would be appreciated.

*

Offline reyalp

  • ******
  • 11394
Re: Save to PC instead of SD card
« Reply #2 on: 10 / March / 2015, 17:13:46 »
The G9 does not have CHDK remote capture support (filewrite hook) implemented. If you are willing to test, it's possible that someone here may be able to add it, although it may be a while before anyone has time.

Alternative, you could shoot, download and delete. The chdkptp 'shoot' cli command supports this with the -rm and -dl options (use help shoot for details)

The G9 may also support Canon's remote capture API. This is not supported by chdkptp, but may work with other applications such as gphoto2.
Don't forget what the H stands for.

*

Offline DaveX

  • *
  • 44
Re: Save to PC instead of SD card
« Reply #3 on: 10 / March / 2015, 17:19:58 »
The G9 does not have CHDK remote capture support (filewrite hook) implemented. If you are willing to test, it's possible that someone here may be able to add it, although it may be a while before anyone has time.

Alternative, you could shoot, download and delete. The chdkptp 'shoot' cli command supports this with the -rm and -dl options (use help shoot for details)

The G9 may also support Canon's remote capture API. This is not supported by chdkptp, but may work with other applications such as gphoto2.

I'd be happy to test any functionality that can be added.  I understand the time constraint concept.

I will try your suggestion with the cli, see how that works.

I have been using the G9 with Canon's RemoteCapture DC program, it works fine but is limited.  I don't know if it used the API you are talking about.

After doing more searching and playing with CHDKPTP, it turns out that I can do a remoteshoot with DNG files, but not JPG files.  CHDKPTP reports "ERROR: unsupported format".  Seems odd since it will write JPGs to the SD card.  I can live with this, but would prefer to download JPGs.

Is there any way to make the Shoot button on the Live tab execute a remote shoot function?  Or put the two Remote Shoot buttons on the User tab on the Live tab?


*

Offline reyalp

  • ******
  • 11394
Re: Save to PC instead of SD card
« Reply #4 on: 10 / March / 2015, 18:05:30 »
I have been using the G9 with Canon's RemoteCapture DC program, it works fine but is limited.  I don't know if it used the API you are talking about.
Yes.
Quote
After doing more searching and playing with CHDKPTP, it turns out that I can do a remoteshoot with DNG files, but not JPG files.  CHDKPTP reports "ERROR: unsupported format".  Seems odd since it will write JPGs to the SD card.  I can live with this, but would prefer to download JPGs.
Yes, this is the normal behavior. Since CHDK handles creating CHDK DNGs, we support remote capture for DNG on all cameras. However, not having the file write hook means the jpeg still gets saved on the SD card normally.

Quote
Is there any way to make the Shoot button on the Live tab execute a remote shoot function?  Or put the two Remote Shoot buttons on the User tab on the Live tab?
The code for this is all in the Lua files (gui.lua and gui_user.lua for these buttons), so if you have a bit of scripting ability you can modify it without needing to recompile chdkptp.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1303
Re: Save to PC instead of SD card
« Reply #5 on: 10 / March / 2015, 22:26:19 »
@DaveX, what is the firmware version of your G9?

*

Offline DaveX

  • *
  • 44
Re: Save to PC instead of SD card
« Reply #6 on: 11 / March / 2015, 05:39:35 »
I have two, one is a 100G, one is a 100H.

*

Offline nafraf

  • *****
  • 1303
Re: Save to PC instead of SD card
« Reply #7 on: 11 / March / 2015, 23:20:48 »
Test version for 100g. Please test and report.
« Last Edit: 13 / March / 2015, 00:06:56 by nafraf »


*

Offline DaveX

  • *
  • 44
Re: Save to PC instead of SD card
« Reply #8 on: 12 / March / 2015, 11:41:50 »
The JPG Remote Shoot button appears to work the same, in that it does not work, but the error message is a little different: "I/O errorERROR: unsupported format".

If there is anything else you would like me to check just let me know.

*

Offline DaveX

  • *
  • 44
Re: Save to PC instead of SD card
« Reply #9 on: 12 / March / 2015, 12:14:05 »
I did modify the gui.lua file to move the Destination and JPG Remote Shoot buttons to the Live tab and changed the function of the remote shoot button from rs to "shoot -dl -rm".  It works fine, the only issue is I don't know how to direct the download to a directory other than the CHDK PTP folder.  I would prefer they go to another folder, but it's not a big deal to move the images to another folder when I'm done for the day.

I've attached the modified gui.lua file in case anyone is interested.

Thanks for the help, I'm happy to continue testing if you'd like to try to make JPG Remote Shoot work on the G9.

 

Related Topics