Webcam support - some progress

Michael Neumann mneumann at ntecs.de
Tue May 6 14:16:56 PDT 2025


Hi,

I just ported the UVC / webcam driver for FreeBSD [1] to DragonFly [2].
With some patches from OpenBSD, chrome recognizes my webcam, but it
can't record yet. Likely, because I commented out kqueue/polling support
in the driver to make it build.

So that part is still missing. If anyone wants to fix this function
before I do, it is uvc_v4l2_poll in bus/u4b/uvc/uvc_v4l2.c.

To test, google "webcam test" and continue. Or try:
	
	ffmpeg -f v4l2 -i /dev/video0 -t 00:00:20 -vcodec libx264 record.mp4

As mentioned, it's not yet working :)

Regards,

  Michael

[1]: https://github.com/AlvinChen1028/freebsd-src/tree/feature-uvc
[2]: https://github.com/mneumann/DragonFlyBSD/commits/feature-uvc/


More information about the Users mailing list