WirePlumber requires the libcamera (https://git.libcamera.org/libcamera/libcamera.git/) library, which is missing from the official Gentoo overlay. Please add this library and a dependency to media-video/wireplumber. Aug 31 08:04:25 pc170am wireplumber[1807]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed? Aug 31 08:04:25 pc170am wireplumber[1807]: PipeWire's libcamera SPA missing or broken. libcamera not supported. Reproducible: Always
To disable plugin just comment it in /etc/wireplumber/main.lua.d/90-enable-all.lua: --libcamera_monitor.enable() This should be controlled by USE-flag IMO
libcamera has finally started tagging releases, so I'm happy to work on this now.
(In reply to Sam James from comment #2) > libcamera has finally started tagging releases, so I'm happy to work on this > now. Noticed libcamera releases too, 0.0.5 came just 8 weeks ago :)
Is V4L2 enough for webcams for now?
(In reply to Joakim Tjernlund from comment #3) > (In reply to Sam James from comment #2) > > libcamera has finally started tagging releases, so I'm happy to work on this > > now. > > Noticed libcamera releases too, 0.0.5 came just 8 weeks ago :) I asked them to make proper tarballs a few weeks ago and they're considering it.
Now there is v0.1.0 too. Did not see any tarballs in the git repo/page though.
(In reply to Joakim Tjernlund from comment #6) > Now there is v0.1.0 too. > Did not see any tarballs in the git repo/page though. The discussion took place because of 0.1.0 5 weeks ago.
https://git.zx2c4.com/cgit/ shows cgit can host archives. https://git.libcamera.org/libcamera/libcamera.git/ doesn't show any release archive.
Yes, thanks. I know and I've told upstream that already.
libcamera has an github repo that do have tarballs: https://github.com/kbingham/libcamera/tags Perhaps they prefer having the tar files there to lower network load on their repo?
They made clear that repo is unofficial. Please see the full dialogue at https://social.treehouse.systems/@libcamera@floss.social/110734917465197953.
Most open-source developers are jackasses who don't care about UI and UX. This is a serious UX issue. How difficult is it to upload release tarballs somewhere?
It seems that cgit could generate tarballs via its "snapshots" configuration setting, and it could then look like https://git.zx2c4.com/cgit/refs/tags. Maybe upstream would be amenable to doing that?
(In reply to Sam James from comment #11) > They made clear that repo is unofficial. Please see the full dialogue at > https://social.treehouse.systems/@libcamera@floss.social/110734917465197953. Maybe a shallow git clone from a tag could replace a tar file? Gentoo could have a libcamera-9999 regardless I suppose.
This is now the modern way to use the Raspberry Pi camera. I've started on an ebuild. I take it there isn't one already? Apart from the half-baked one from Google, that is.
(In reply to James Le Cuirot from comment #15) > This is now the modern way to use the Raspberry Pi camera. I've started on > an ebuild. I take it there isn't one already? Apart from the half-baked one > from Google, that is. I think you have better ones here: http://gpo.zugaina.org/media-libs/libcamera
https://gitlab.com/reagentoo/gentoo-overlay/-/tree/master/media-video/snapshot?ref_type=heads https://gitlab.gnome.org/GNOME/snapshot FYI: this soft requires pipewire+libcamera Are there any plans to include the library in the tree?
I just had an update today from them and we've found a way to make things work. Packaging it now.
libcamera-0.2.0 is out
Yes, boss, I said I'm working on it...
I found this Reddit post (https://www.reddit.com/r/linux/comments/1em8biv/psa_pipewire_has_been_halving_your_battery_life/) about disabling libcamera to fix high idle power consumption. Lo and behold, Gentoo does not even package libcamera nor its associated PipeWire plugin, so I am unaffected. libcamera 0.3 is out now. It's included in Debian 12, so it's been out for a while. The main git repo (https://git.libcamera.org/libcamera/libcamera.git) also now has tags. What are the major blockers right now to get this working? Is it just a matter of developer time and priorities? (Which is fine, maybe it's an opportunity for me to learn how to work this stuff :))
According to Sam, it's been difficult to package, but I don't know the details. It's admittedly dropped down my own priority list a bit.
GNU guix downloads libcamera from "v0.1.0" git tag of https://git.libcamera.org/libcamera/libcamera.git It even has base32 value of v0.1.0 tag.
I'm not Sam but from what I saw the build system has certain developer centric oddities that are not very compatible with distro goals. At the same time, I'm not sure it's worth not packaging libcamera over ebuild QA requirements, since in certain cases it might be the only way to use certain [exclusively?] on-board cameras. Ideally some interested contributor from distro side would work with the upstream to improve their build system. I think they'd be quite happy about that. If nothing has changed, they can be reached via some mailing list, where the patches for the build system can be sent in, too.
Libcamera is becoming the only open-source way to use cameras on many modern laptops that use IPU6 cameras, such as Lenovo Thinkpad X1 Carbon gen 12, several Dells, etx. Aternatives are proprietary drivers. So basically it is must to have for those who plan to use such a laptop for work. Fedora distributes libcamera, and overall spearheading the effort to make IPU6 cameras to work.
I did have a draft but I don't have any hardware supporting it, which makes motivation low (and inability to test for something like this makes me feel uneasy). Patches are very welcome though.
1. I'd say just release it and let someone with the actual hardware report any issues. Worst case it will be just as broken as before i.e. no laptop camera. ;) 2. I likewise have no such hardware to say for certain but it should be possible to run any webcam that has the generic UVC (USB Video Class) as its kernel driver (so most but not all webcams) via libcamera and perhaps you or a willing contributor can test it that way. The only gotcha might be that you need to double check that the UVC device is truly running via the camera backend rather than the PipeWire's own v4l2 backend. Presumably the backend used for the particular device should be reflected in the `pw-dump` output.
(In reply to Niklāvs Koļesņikovs from comment #27) > 1. I'd say just release it and let someone with the actual hardware report > any issues. Worst case it will be just as broken as before i.e. no laptop > camera. ;) > > 2. I likewise have no such hardware to say for certain but it should be > possible to run any webcam that has the generic UVC (USB Video Class) as its > kernel driver (so most but not all webcams) via libcamera and perhaps you or > a willing contributor can test it that way. The only gotcha might be that > you need to double check that the UVC device is truly running via the camera > backend rather than the PipeWire's own v4l2 backend. Presumably the backend > used for the particular device should be reflected in the `pw-dump` output. I would echo this opinion. The point is that there is no criterium to satisfy to say that libcamera "works well". There is a multitude of hardware, and it may work for some combination and not the other. In case of IPU6 cameras there is much flux throughout the pipeline starting with kernel support, and it would be good to have at least an easy install of one ingredient. So I would say, if it compiles, and kind of runs for UVC cameras, it would be useful to have it in portage for people trying to make other setups work.