https://www.onlinemictest.com/webcam-test/ says "We can't find your camera" The V4L device otherwise works in Firefox, qTox, mplayer. Version 80.0.3987.132 (Official Build) (64-bit)
Although I've only tried this with www/qutebrowser (which uses www/qt5-webengine), not www/chromium, this might still be relevant (almost the same code, after all): The following two patches essentially #ifdef out video capture code: - patch-src_3rdparty_chromium_media_capture_video_linux_video__capture__device__factory__linux.cc - patch-src_3rdparty_chromium_media_capture_video_linux_video__capture__device__linux.cc With those patches, VideoCaptureDeviceFactoryLinux::HasUsableFormats always returns false, so capable devices are not even detected. I've removed those #ifdefs in www/qt5-webengine, and I've been using Facebook Messenger and Jitsi from qutebrowser for a few days now on a HardenedBSD 13.0-CURRENT laptop. That said, I don't know if those patches fix some problem that just luckily don't occur on my box, or they were just left there accidentally. I've tried git --follow and internet searches, but wasn't able to find the reason they exist.
As far as I can tell, they were introduced for no documented reason in r416521.
I'm preparing a patch: https://reviews.freebsd.org/D24330
A commit references this bug: Author: cem Date: Wed Apr 8 00:22:47 UTC 2020 New revision: 531050 URL: https://svnweb.freebsd.org/changeset/ports/531050 Log: www/chromium: Un-remove v4l video capture support This support was removed in r416521. The revision message did not document the removal nor justify patching out a major port feature. This restores that support. The earlier revision should probably be audited for other patches which (a) add update burden to this already huge port and (b) remove expected functionality. PR: 245250 Submitted by: Tamas Szakaly <sghctoma AT gmail.com> Reported by: yuri@ Approved by: jrm Differential Revision: https://reviews.freebsd.org/D24330 Changes: head/www/chromium/Makefile head/www/chromium/files/patch-media_capture_video_linux_video__capture__device__factory__linux.cc head/www/chromium/files/patch-media_capture_video_linux_video__capture__device__linux.cc
There is progress (it gets detected), but I am getting green flicker, for which I have opened https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245505
MARKED AS SPAM
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=17b8c1ab3fdb1951f6bb63df8ea9c79db1cdd655 commit 17b8c1ab3fdb1951f6bb63df8ea9c79db1cdd655 Author: Robert Nagy <rnagy@FreeBSD.org> AuthorDate: 2023-05-02 13:18:02 +0000 Commit: Robert Nagy <rnagy@FreeBSD.org> CommitDate: 2023-05-02 13:20:29 +0000 www/{*chromium,iridium}: unbreak webcam support do not observ for video capture device configuration as it seems to hang the video capture process PR: 245250 Approved by: rene (mentor, implicit) www/chromium/Makefile | 2 +- ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- www/iridium/Makefile | 1 + ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- www/ungoogled-chromium/Makefile | 2 +- ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- 6 files changed, 930 insertions(+), 44 deletions(-)
A commit in branch 2023Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=aca39076bc80e378f1f9d95d61fa1d4631118eaa commit aca39076bc80e378f1f9d95d61fa1d4631118eaa Author: Robert Nagy <rnagy@FreeBSD.org> AuthorDate: 2023-05-02 13:18:02 +0000 Commit: Robert Nagy <rnagy@FreeBSD.org> CommitDate: 2023-05-02 13:21:29 +0000 www/{*chromium,iridium}: unbreak webcam support do not observ for video capture device configuration as it seems to hang the video capture process PR: 245250 Approved by: rene (mentor, implicit) (cherry picked from commit 17b8c1ab3fdb1951f6bb63df8ea9c79db1cdd655) www/chromium/Makefile | 1 + ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- www/iridium/Makefile | 1 + ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- www/ungoogled-chromium/Makefile | 1 + ..._capture_video_linux_v4l2__capture__delegate.cc | 323 ++++++++++++++++++++- 6 files changed, 930 insertions(+), 42 deletions(-)
I get this error with today's ports in poudriere (13.2/amd64) ../../media/capture/video/linux/v4l2_capture_delegate.cc:220:27: error: out-of-line definition of 'IsSpecialControl' does not match any declaration in 'media::V4L2CaptureDelegate' bool V4L2CaptureDelegate::IsSpecialControl(int control_id) { ^~~~~~~~~~~~~~~~ ../../media/capture/video/linux/v4l2_capture_delegate.cc:242:27: error: out-of-line definition of 'IsBlockedControl' does not match any declaration in 'media::V4L2CaptureDelegate' bool V4L2CaptureDelegate::IsBlockedControl(int control_id) { ^~~~~~~~~~~~~~~~ 2 errors generated.
Created attachment 241938 [details] fix build after 17b8c1ab3fdb1951f6bb63df8ea9c79db1cdd655 The attached patch fixes the build for me. I haven't tested if it fixes the original problem.
(In reply to Stefan Ehmann from comment #11) slippy$ git apply --check /tmp/bug-245250-fixbuild.diff error: patch failed: www/chromium/files/patch-media_capture_video_linux_v4l2__capture__delegate.cc:86 error: www/chromium/files/patch-media_capture_video_linux_v4l2__capture__delegate.cc: patch does not apply slippy$
(In reply to Cy Schubert from comment #12) There has been an update since I posted the patch. Now builds for me. commit 3a9105aba46ced9c83c639b68492cbc60a04f255 Author: Robert Nagy <rnagy@FreeBSD.org> Date: Tue May 2 09:31:57 2023 +0200 www/chromium: update to 113.0.5672.63 Approved by: rene (mentor, implicit) Security: https://vuxml.freebsd.org/freebsd/246174d3-e979-11ed-8290-a8a1599412c6.html