-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lumix HTTP/Wifi protocol #409
Comments
This is something interesting to pursue :/ |
well, as a matter of fact i started creating a new camlib (called lumix.c) and attached here. however
Basically as you can guess, i am full of good will here but need guidance thanks robert |
Markus, I would really appreciate any help here. Thanks |
I tried inmtegrating your code into libgphoto2, but its already too big ... we should start very small from temlate, and get one initial command send first. Sorry that I have not much time currentky |
ok, so I added a bui8lding version it will take gphoto2 --port tcp:192.168.2.1 --camera "Panasonic LumixGSeries" --summary |
it is in the "lumix" branch , git checkout lumix , autoreconf -i -f ; ./configure .... ; make |
I think not much more than camera_init() will be called now. |
Thanks Marcus,
I will investigate over the coming days,
On Sunday, May 26, 2019, 9:52:28 PM GMT+2, Marcus Meissner <[email protected]> wrote:
I think not much more than camera_init() will be called now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Marcus, I was able to compile/debug the first stage and able to init and capture. How can i share my commits to the lumix branch? I am fairly new to github so not sure about the permissions/mechanics. |
i committed this lumix.c to the lumix branch under your author name. I am also still trying to organize both time and a Lumix vcamera ;) you know if a DC-TZ91 will be usable? |
thanks. I tried to find the list of Panasonic cameras supported by their image app.. but not found. however since it has wi-fi it is a good indicator that it will work. I also found on the google play image app some instructions and caveats on cameras and similar ones in the TZ series are mentioned. Now these are not m4/3 it seems so probably not supporting Bulb or M mode... Bulb for me is very important since i am doing all this for astrophotography. quick quiestion: is there a way to make -install only the lumix branch? i tried with the ONLY_THESE_CAMLIBS (or equiv) flag but still the install takes 2 minutes. i have given up on gdb and just print statements but the make process is quite time wasting. Lastly in tethered mode (USB) i see that GH5 is supported but GH5S is out and should also be working in exactly the same way (although resolution is different). I could test out a new release with GH5s/USB! thnaks |
Marcus, full list of features supported by camera is avail here: https://av.jpn.support.panasonic.com/support/global/cs/soft/image_app/dsc/android/android02.html#gfg
there is a complete C# implementation of all the features here: |
cd camlibs will only install the lumix driver, which should be shorter running. |
I have a Lumix DMC G7 and have been tracking this for some time with the hope of using it for video streaming.
However, after following this solution, I am able to authorise the camera and everything works (massive props to @peci1 and his project):
I am assuming that Following that I was able to start a stream using:
I had previous installed the prerequisites for streaming with ffmpeg, as very clearly explained in this blog post I built libphoto and gphoto2 following the instructions in the repos, which worked but are perhaps not too user friendly unless you're a developer. I found these notes to be very useful, combmined with various google searches to find the correct sources for the necessary libxml2 and llibcurl headers. For this you could try (depending on your system):
Initial installation of the latest version of gphoto2 through the Ubuntu ppa gave me an outdated version, but according to the answer to my question on ubuntu launchpad there is a ppa with version 2.5.24 (and seemingly other bleeding edge builds) available (subject to usual caution) maintained by Jasem Mutlaq: https://launchpad.net/~mutlaqja/+archive/ubuntu/libgphoto2 If I have some more time I will write this up a bit better, and ideally PR the necessary authorisation step and perhaps updates to the documentation, but in the meantime this may comment may be of use to some and many thanks to @msmeissn and @totoantibes (and of course @peci1) for the sustained efforts of the years - I'm a very happy Lumix camera owner :) |
I can confirm the findings of @cloudwheels. Tested on my Lumix GF-7 using libgphoto2 2.5.24 |
I can confirm the same for the GX9. |
I have added the req_access command to the lumix driver too now. |
i added it to git, thanks! |
Some other observations (I am testing with GX9):
This commit here addresses these issues on the GX-9 but it'd be nice to hear from others before proposing this change here. (I've built the fixes in my PPA https://launchpad.net/~willat8/+archive/ubuntu/gphoto for groovy). |
[lumix.txt](https://github.com/gphoto/libgphoto2/files/4673068/lumix.txt)
thanks,
1) the priority intention for this project for me was to capture RAW for astrophotography. Hence when I started the camlib i prioritized on RAW+Fine. there is no technical reason to force it to RAW+FINE but that makes sure we have all the available formats. If you can put another option in there to change the capture mode then please feel free.
2) i have started a new branch that I believe handles better the preview and movie capture from the original work done with Marcus. It is not yet on any git (other than my local repo on my RPi) so for simplicity sake I am including it here. there is some diff/Merge to be done with latest master branch on libgphoto.
robert
On Sunday, May 24, 2020, 03:58:26 AM GMT+2, William Wilhelm <[email protected]> wrote:
Some other observations (I am testing with GX9):
- Picture quality is changed to RAW+JPEG every camera_init. I'm not sure about the reasons for this.
- --capture-movie freezes after a variable amount of time, usually before or around 1 minute. I think this is due to the repeated switchToRecMode (camera); every camera_capture_preview() call
This commit here addresses these issues on the GX-9 but it'd be nice to hear from others before proposing this change here. (I've built the fixes in my PPA https://launchpad.net/~willat8/+archive/ubuntu/libgphoto2 for groovy).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
EDIT (issue left below for posterity): I needed to rebuild the v4l2 loopback module using my current kernel headers, so now getting output. However, only getting a resolution of 320x184 - how do I alter this?? Also I am now experiecign the freezing which @willat8 mentions above, and I'm pretty sure wasn't an issue before.
EDIT 2 - have built from source, so now have version @willat8 I've just come back to this afer some months and have the following error. Not exactly sure what is going on here, I'm just wondering if there's anything obvious before I start digging deep...
|
Hey @cloudwheels, using
I get a resolution of |
@willat8 thansk for taking time to read me convoluted comment! I think the freezing was possibly related to my wifi adapter. I'm still getting 320x184. My intital hunch was that the resolution is related to the config value Disappointingly, I'm sure I has a good resolution back in May. For the hours I spent, for my purposes (use as webcam) it's probably just easier to buy an elgato camlink 4k and be done with it :) Still, any ideas on whether this is a camera limitation or something I might be able to alter are very welcome. |
The lumix camlib is now built by default in Debian libgphoto2 2.5.26-1 (and hopefully Ubuntu soon) https://salsa.debian.org/debian-phototools-team/libgphoto2/-/merge_requests/3 |
Out of curiosity, what is the maximum liveview resolution supported by the Panasonic G9/GH5? It appears that the Lumix Webcam Software on Windows/Mac is able to output up to 1280x720 streams. |
I believe it is VGA as per the Panasonic App modes. the lumix webcam would be over USB not WIFI.
On Monday, October 26, 2020, 01:49:04 PM GMT+1, Raphaël Monat <[email protected]> wrote:
Out of curiosity, what is the maximum liveview resolution supported by the Panasonic G9/GH5? It appears that the Lumix Webcam Software on Windows/Mac is able to output up to 1280x720 streams.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hey,
|
Hi, I wanted to ask, especially @totoantibes Have you been succesful with running lumix GX9 with stellarmate OS? I am doing research, in order to be able start atrophotography, and GX9 is listed so far only as "experimental" on stellarmate OS help page. |
I have used gh5s on astroberry (not exactly stellarmate but essentially the same as it is ekos/kstars) with the usb integration from libgphoto camlib. TBH in kstars i was not able to include the libgphoto CLI options to connect over the ip method required by this camlib. Check if GX9 can [tether](lumix ascom driver ) over usb (i dont believe it has though), if so that may be an option if you want to stick to linux/stellarmate. but i am not sure that the usb camlib has been updated to detect the gx9 model... (you can try on a simple Rpi before committing to the stellarmateOS.) i recall asking Jaseem about the cli options for kstars call to libgphoto and the answer was that i needed to make a dive into the source code of ekos/kstars to add the option... a bridge too far for me tbh. If your goal is to do astro, then you can use my lumix ascom driver on windows with NINA (or any other app like APT) . this works very well too, HTH |
Quick report from Lumix G80 user. (so that I don't forget to contribute here... :) First |
Hi. I'm new to this world, with a Panasonic LUMIX DC-ZS70 (DC-TZ90), which has 802.11 b/g/n WiFi. The manual indicates the camera can connect in a number of different ways, including to a smartphone app (https://play.google.com/store/apps/details?id=com.panasonic.avc.cng.imageapp), to a PC (running e.g. PHOTOfunSTUDIO, or not), and various "web services" including "LUMIX CLUB." I'm looking for a way to transfer content without having to connect to the device via USB, and it seems like this may be it, but I've been unsuccessful w/ stock builds of gphoto2. Can someone school me about this device, and what I should be looking to for this ability? Is the Thanks! |
Hey, Thanks! |
Fill in fields below. If you don't know how, leave it free.
*Name of the camera
All Lumix G, GX, GH series. (I can test on G80 and GH4)
seems that only GH4, GX80 and GH5 have a usb thethered mode available. Many other Lumix do not offer PTP tethered camera capture/liveview etc. Only option is to use an HTTP protocol over Wifi. (or maybe BLE for newer cams) there are many commands available via this protocol such as shutter speed, iso, aperture, quality, focus, zoom. rec start/stop, capture and capture cancel. also the images are avail to download to in RAW, JPG and Thumbs. A VGA/QVGA live view data stream is also available.
There are various running examples of programs that do take advantage of this protocol and woudl be great to open Gphoto2/ligphoto2 to Lumix cameras. Unfortunately the HTTP/Wifi connectivity is a bit of an issue to plug into the camlib/port structure of libgphoto as i understand it from a very high level.
here is a list of github availalble programs that take advantage of this protocol
-https://github.com/palmdalian/python_lumix_control
-https://github.com/Ultrawipf/qtpanaremote (simple QT based app in C)
-https://github.com/totoantibes/LumixCameraAscomDriver (my own Ascom driver for astrophotography written in VB.NET) it does implement the picture download of the last capture over http/get with retry after parsing the XML of the available pics.
Use the Marketing name.
USB IDs
e.g. by running: lsusb
camera summary output
run
gphoto2 --summary > summary.txt
attach summary.txt here
camera configuration output
gphoto2 --list-all-config > list-all-config.txt
and attach list-all-config.txt here
test capture
test if capture perhaps already works:
gphoto2 --capture-image-and-download
gphoto2 --capture-preview
I am a keen astrophotographer and would really like to use the libgphoto lib to interface with astrophoto session SW like ekos/kstars to control the Lumix CAMs.
If you have no time/priority to dev this new family of cameras I woudl be keen to do it myself but some quidance/support would be needed prior to hacking something in this complex body of work
The text was updated successfully, but these errors were encountered: