Re: Lumix G-Series (especially G9)
Marcus Meissner <[email protected]> Mon, 24 Apr 2023 11:08:13 +0200
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <ZEZG_aqOtizhZwlv@jenny> |
--tvSFqWmoPYuZvc2j Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi, So it spends 2x3 seconds waiting for capturecomplete. I now synthesize a capture complete event in git, patch attached. You can also try gphoto2 --trigger-capture --wait-event-and-download-files=FILEADDED Ciao, Marcus On Sun, Apr 23, 2023 at 08:45:38PM +0200, Alexander Holzinger wrote: > Hi again, has anybody an idea why it's taking gphoto2 about 13 seconds to > do the capture-image-and-download process with a lumix g9? > Has anybody ever experienced such long durations for capturing and > downloading an image with another camera? > > With the same setup but a canon eos d7 it only takes about 2 seconds. > > Best wishes > Alex > > > Am Di., 18. Apr. 2023 um 21:18 Uhr schrieb Alexander Holzinger < > [email protected]>: > > > The original email below didn't make it to the list because of the > > attachment – it was too big. > > I uploaded the log file to google drive. > > > > https://drive.google.com/file/d/1keNkvvp57z5b5-0uPRESUL5ArPnWqbmG/view?usp=share_link > > > > ---------- Forwarded message --------- > > Date: Di., 18. Apr. 2023 um 21:11 Uhr > > Subject: Re: [Gphoto-user] Lumix G-Series (especially G9) > > To: Marcus Meissner <[email protected]> > > Cc: <[email protected]> > > > > > > Hi Marcus and all, > > I now have a G9 and tested it with gphoto2. > > Autodetect recognizes the G9 as a GH5. > > > > --capture-image-and-download works but the process takes about 13 seconds. > > With the 7D it only takes about 3 or 4 seconds. > > Do you have any idea if the process could be sped up? > > > > Actually the captured image gets written on the pi after about 6 seconds. > > But then the process takes another 6 to 7 seconds to delete the file on the > > camera or do something else. When I add --keep to the command it is the > > same. About 6 seconds to get the image on the raspberry and another 6 to 7 > > seconds doing something else. > > > > I attach the logfile for coming from *env LANG=C gphoto2 --debug > > --debug-logfile=my-logfile.txt --capture-image-and-download* > > > > It would be really cool if the time could be minimized somehow. > > > > Best wishes to all > > Alex > > > > > > Am Do., 22. Dez. 2022 um 17:46 Uhr schrieb Alexander Holzinger < > > [email protected]>: > > > >> Thank you Marcus, > >> > >> if I get a G9 I will write about my findings. > >> I tested a GH6 via USB. It gets detected and can take a photo but the > >> process freezes and is not downloading the picture. > >> > >> ciao, Alex > >> > >> Am Mi., 21. Dez. 2022 um 15:17 Uhr schrieb Marcus Meissner < > >> [email protected]>: > >> > >>> On Wed, Dec 21, 2022 at 12:00:39PM +0100, Alexander Holzinger wrote: > >>> > Hi everybody, > >>> > > >>> > > >>> > I am quite new to gphoto – first impression: it's quite awesome! > >>> > > >>> > Testing it out with a Canon 7D everything worked perfectly. > >>> > But I am planning on buying a Lumix G9. > >>> > Unfortunately the Lumix G-Series is labeled as 'experimental' and I > >>> > couldn't find much information on it. > >>> > > >>> > Has anyone some experience with gphoto2 and the Lumix G9? > >>> > Does 'gphoto capture-image-and-download' work? > >>> > >>> The Lumix I used for development did not do capture over USB, but only > >>> over WLAN. > >>> > >>> I sadly do not remember if capture over USB works, I did add the code > >>> though. > >>> I think preview at least worked. > >>> > >>> I dont have the camera available here though. > >>> > >>> ciao, Marcus > >>> > >> > _______________________________________________ > Gphoto-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gphoto-user --tvSFqWmoPYuZvc2j Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="0001-synthesize-a-capturecomplete-event-for-panasonic-cam.patch" From 893122bf80c57ccaff77a9641a330f44d2e5b86a Mon Sep 17 00:00:00 2001 From: Marcus Meissner <[email protected]> Date: Mon, 24 Apr 2023 11:03:11 +0200 Subject: [PATCH] synthesize a capturecomplete event for panasonic cameras, as they dont send on on their own --- camlibs/ptp2/library.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 1db4ee04a..fd5c7f1a4 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -5458,6 +5458,11 @@ downloadfile: path->name[0]='\0'; path->folder[0]='\0'; + /* Synthesize a capture complete event to avoid waits. */ + event.Code = PTP_EC_CaptureComplete; + event.Nparam = 0; + ptp_add_event (params, &event); + if (newobject != 0) /* NOTE: association add handled */ return add_object_to_fs_and_path (camera, newobject, path, context); return GP_ERROR; -- 2.40.0 --tvSFqWmoPYuZvc2j Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="0001-allow-trigger-capture-for-panasonic.patch" From 0d2b455ced25d56db734e6d180d56545be2def38 Mon Sep 17 00:00:00 2001 From: Marcus Meissner <[email protected]> Date: Mon, 24 Apr 2023 11:06:58 +0200 Subject: [PATCH] allow trigger capture for panasonic --- camlibs/ptp2/library.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index fd5c7f1a4..85806f41a 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -3021,6 +3021,11 @@ camera_abilities (CameraAbilitiesList *list) (strstr(models[i].model,"EOS") || strstr(models[i].model,"Rebel")) ) a.operations |= GP_OPERATION_TRIGGER_CAPTURE; + + /* Enable for Panasonic */ + if (models[i].usb_vendor == 0x04da) + a.operations |= GP_OPERATION_TRIGGER_CAPTURE; + /* Sony Alpha are also trigger capture capable */ if ( models[i].usb_vendor == 0x54c) a.operations |= GP_OPERATION_TRIGGER_CAPTURE; -- 2.40.0 --tvSFqWmoPYuZvc2j Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --tvSFqWmoPYuZvc2j Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gphoto-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gphoto-user --tvSFqWmoPYuZvc2j--