Re: Lumix G-Series (especially G9)

Alexander Holzinger <[email protected]> Thu, 27 Apr 2023 16:08:38 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <CA+40DLBAwtkBx=koMwWf9exvC8okRJ58m1-yqYcTBqcg_Ewbvw@mail.gmail.com>
--===============4570115406166511157==
Content-Type: multipart/alternative; boundary="0000000000009d0fb105fa51e56c"

--0000000000009d0fb105fa51e56c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you Marcus.

With your changes and after you pointed me in the right direction for
updating gphoto2 the process with my G9 now is about 4 seconds faster.

Ressource for updating: https://github.com/gonzalo/gphoto2-updater
I removed the previous version with

> $ sudo apt-get remove gphoto2 libgphoto2-6 libgphoto2-dev libgphoto2-l10n
> libgphoto2-port12
>
and then updated gphoto2 to the dev branch with

> $ wget
> https://raw.githubusercontent.com/gonzalo/gphoto2-updater/master/gphoto2-=
updater.sh
> && wget
> https://raw.githubusercontent.com/gonzalo/gphoto2-updater/master/.env &&
> chmod +x gphoto2-updater.sh && sudo ./gphoto2-updater.sh
>

Now *--capture-image-and-dowload* takes a little over 8 seconds instead of
almost 13 seconds. It is still not great compared to less than 2 seconds
with a canon D7, but a huge improvement =E2=80=93 thanks again.

Is this duration limited by the camera or could it still be improved
somehow?
I would of course help as much as I could, but without some guidance I
won't get far.


Best wishes,
Alex






Am Mo., 24. Apr. 2023 um 11:08 Uhr schrieb Marcus Meissner <
[email protected]>:

> 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=3DFILEA=
DDED
>
> 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 =E2=80=93 it was too big.
> > > I uploaded the log file to google drive.
> > >
> > >
> https://drive.google.com/file/d/1keNkvvp57z5b5-0uPRESUL5ArPnWqbmG/view?us=
p=3Dshare_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 t=
he
> > > 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=3DC gphoto2 --debug
> > > --debug-logfile=3Dmy-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 th=
e
> > >> 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 =E2=80=93 first impression: it's quite a=
wesome!
> > >>> >
> > >>> > 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 co=
de
> > >>> 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
>
>

--0000000000009d0fb105fa51e56c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thank you Marcus.</div><div><br></div><div>With your =
changes and after you pointed me in the right direction for updating gphoto=
2 the process with my G9 now is about 4 seconds faster. <br></div><div><br>=
</div><div>Ressource for updating: <a href=3D"https://github.com/gonzalo/gp=
hoto2-updater">https://github.com/gonzalo/gphoto2-updater</a></div><div>I r=
emoved the previous version with</div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex"><div>$ sudo apt-get remove gphoto2 libgphoto2-6 libgphoto2-dev=
 libgphoto2-l10n libgphoto2-port12</div></blockquote><div>and then updated =
gphoto2 to the dev branch with<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex"><div>$ wget <a href=3D"https://raw.githubusercontent.com/gon=
zalo/gphoto2-updater/master/gphoto2-updater.sh">https://raw.githubuserconte=
nt.com/gonzalo/gphoto2-updater/master/gphoto2-updater.sh</a> &amp;&amp; wge=
t <a href=3D"https://raw.githubusercontent.com/gonzalo/gphoto2-updater/mast=
er/.env">https://raw.githubusercontent.com/gonzalo/gphoto2-updater/master/.=
env</a> &amp;&amp; chmod +x gphoto2-updater.sh &amp;&amp; sudo ./gphoto2-up=
dater.sh</div></blockquote><div><br></div><div>Now <i>--capture-image-and-d=
owload</i> takes a little over 8 seconds instead of almost 13 seconds. It i=
s still not great compared to less than 2 seconds with a canon D7, but a hu=
ge improvement =E2=80=93 thanks again.</div><div><br></div><div>Is this dur=
ation limited by the camera or could it still be improved somehow?</div><di=
v>I would of course help as much as I could, but without some guidance I wo=
n&#39;t get far.</div><div><br></div><div><br></div><div>Best wishes,</div>=
<div>Alex<br></div><div><br></div><div><br></div><div><br></div><div><br></=
div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">Am Mo., 24. Apr. 2023 um 11:08=C2=A0Uhr schrieb Marcus M=
eissner &lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt;:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
So it spends 2x3 seconds waiting for capturecomplete.<br>
<br>
I now synthesize a capture complete event in git, patch attached.<br>
<br>
You can also try<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 gphoto2 --trigger-capture --wait-event-and-down=
load-files=3DFILEADDED<br>
<br>
Ciao, Marcus<br>
On Sun, Apr 23, 2023 at 08:45:38PM +0200, Alexander Holzinger wrote:<br>
&gt; Hi again, has anybody an idea why it&#39;s taking gphoto2 about 13 sec=
onds to<br>
&gt; do the capture-image-and-download process with a lumix g9?<br>
&gt; Has anybody ever experienced such long durations for capturing and<br>
&gt; downloading an image with another camera?<br>
&gt; <br>
&gt; With the same setup but a canon eos d7 it only takes about 2 seconds.<=
br>
&gt; <br>
&gt; Best wishes<br>
&gt; Alex<br>
&gt; <br>
&gt; <br>
&gt; Am Di., 18. Apr. 2023 um 21:18 Uhr schrieb Alexander Holzinger &lt;<br=
>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">lxne.ozne@gma=
il.com</a>&gt;:<br>
&gt; <br>
&gt; &gt; The original email below didn&#39;t make it to the list because o=
f the<br>
&gt; &gt; attachment =E2=80=93 it was too big.<br>
&gt; &gt; I uploaded the log file to google drive.<br>
&gt; &gt;<br>
&gt; &gt; <a href=3D"https://drive.google.com/file/d/1keNkvvp57z5b5-0uPRESU=
L5ArPnWqbmG/view?usp=3Dshare_link" rel=3D"noreferrer" target=3D"_blank">htt=
ps://drive.google.com/file/d/1keNkvvp57z5b5-0uPRESUL5ArPnWqbmG/view?usp=3Ds=
hare_link</a><br>
&gt; &gt;<br>
&gt; &gt; ---------- Forwarded message ---------<br>
&gt; &gt; Date: Di., 18. Apr. 2023 um 21:11 Uhr<br>
&gt; &gt; Subject: Re: [Gphoto-user] Lumix G-Series (especially G9)<br>
&gt; &gt; To: Marcus Meissner &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;<br>
&gt; &gt; Cc: &lt;<a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Hi Marcus and all,<br>
&gt; &gt; I now have a G9 and tested it with gphoto2.<br>
&gt; &gt; Autodetect recognizes the G9 as a GH5.<br>
&gt; &gt;<br>
&gt; &gt; --capture-image-and-download works but the process takes about 13=
 seconds.<br>
&gt; &gt; With the 7D it only takes about 3 or 4 seconds.<br>
&gt; &gt; Do you have any idea if the process could be sped up?<br>
&gt; &gt;<br>
&gt; &gt; Actually the captured image gets written on the pi after about 6 =
seconds.<br>
&gt; &gt; But then the process takes another 6 to 7 seconds to delete the f=
ile on the<br>
&gt; &gt; camera or do something else. When I add --keep to the command it =
is the<br>
&gt; &gt; same. About 6 seconds to get the image on the raspberry and anoth=
er 6 to 7<br>
&gt; &gt; seconds doing something else.<br>
&gt; &gt;<br>
&gt; &gt; I attach the logfile for coming from *env LANG=3DC gphoto2 --debu=
g<br>
&gt; &gt; --debug-logfile=3Dmy-logfile.txt --capture-image-and-download*<br=
>
&gt; &gt;<br>
&gt; &gt; It would be really cool if the time could be minimized somehow.<b=
r>
&gt; &gt;<br>
&gt; &gt; Best wishes to all<br>
&gt; &gt; Alex<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Am Do., 22. Dez. 2022 um 17:46 Uhr schrieb Alexander Holzinger &l=
t;<br>
&gt; &gt; <a href=3D"mailto:[email protected]" target=3D"_blank">lxne.ozn=
[email protected]</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Thank you Marcus,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; if I get a G9 I will write about my findings.<br>
&gt; &gt;&gt; I tested a GH6 via USB. It gets detected and can take a photo=
 but the<br>
&gt; &gt;&gt; process freezes and is not downloading the picture.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ciao, Alex<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Am Mi., 21. Dez. 2022 um 15:17 Uhr schrieb Marcus Meissner &l=
t;<br>
&gt; &gt;&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">ma=
[email protected]</a>&gt;:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; On Wed, Dec 21, 2022 at 12:00:39PM +0100, Alexander Holzi=
nger wrote:<br>
&gt; &gt;&gt;&gt; &gt; Hi everybody,<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; I am quite new to gphoto =E2=80=93 first impression:=
 it&#39;s quite awesome!<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Testing it out with a Canon 7D everything worked per=
fectly.<br>
&gt; &gt;&gt;&gt; &gt; But I am planning on buying a Lumix G9.<br>
&gt; &gt;&gt;&gt; &gt; Unfortunately the Lumix G-Series is labeled as &#39;=
experimental&#39; and I<br>
&gt; &gt;&gt;&gt; &gt; couldn&#39;t find much information on it.<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Has anyone some experience with gphoto2 and the Lumi=
x G9?<br>
&gt; &gt;&gt;&gt; &gt; Does &#39;gphoto capture-image-and-download&#39; wor=
k?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; The Lumix I used for development did not do capture over =
USB, but only<br>
&gt; &gt;&gt;&gt; over WLAN.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I sadly do not remember if capture over USB works, I did =
add the code<br>
&gt; &gt;&gt;&gt; though.<br>
&gt; &gt;&gt;&gt; I think preview at least worked.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I dont have the camera available here though.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; ciao, Marcus<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
<br>
<br>
&gt; _______________________________________________<br>
&gt; Gphoto-user mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/gphoto-user" r=
el=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/lis=
tinfo/gphoto-user</a><br>
<br>
</blockquote></div>

--0000000000009d0fb105fa51e56c--


--===============4570115406166511157==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4570115406166511157==
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

--===============4570115406166511157==--