Menu

#109 Process Output

open
nobody
None
5
2014-05-08
2014-04-15
brianwong3
No

Is it possible to process the output of gphoto2 with the hook-script, since it returns a bit of useful data as well as the file name of the image that was added?

since there is no such thing as the FILEADDED ACTION, the best method is to process the output to extract the latest info we have.

That aside, tried file upload on the EOS1100D, didnt work, keep getting a Exception on PTP Access Denied...

Discussion

  • Marcus Meissner

    Marcus Meissner - 2014-04-16

    it is currently not possible to get the output in the hook action. would be a nice feature though

    file upload to cameras very rarely works, they usually just support download.

     
  • brianwong3

    brianwong3 - 2014-04-16

    Thanks Marcus for the quick response, really appreciate it.

    Realized that what I might want is a bit unrealistic, and was redirected to implementing libghoto2 as a library instead. Was looking at some sample codes available online (though I suspect that its way before version 2.5).

    From the initial sample codes ( http://sepharads.blogspot.com/2011/11/camera-tethered-capturing-using.html ) and also from the examples folder, I should be able to specifically keep track of only 'GP_EVENT_FILE_ADDED' event. Though, my first try of compiling has some errors.

    Just want to ask, for me to compile the examples in the gphoto2 folder, I would just need that folder and gcc right??

    Sorry if the questions sounds silly, I don't have any experience in Linux.

     
  • brianwong3

    brianwong3 - 2014-04-17

    Managed to use one of the examples and also found one of your posts on building executables with gphoto2..

    Adapted the example to fit my usage...though having some issues on setting the config values using <set_config_value_string(camera,"capturetarget","Memory card",context);="">. I keep getting a PTP I/O error.

     
  • Marcus Meissner

    Marcus Meissner - 2014-05-08

    for setting the latter
    is gphoto2 --set-config capturetarget="Memory card"
    working?

     

Log in to post a comment.