The USB 058f:3861 device that I have is a portable dental camera, but it probably doesn't have to be. This C program https://gist.github.com/maxlapshin/1253534#file-capture_raw_frames-c fails to get or set the video format for this device: both VIDIOC_S_FMT and VIDIOC_G_FMT fail with "error 22, Invalid argument". Video format setting and retrieval should work for any camera. Here is some info about this device in Linux: https://linux-hardware.org/index.php?id=usb:058f-3861 Version: 5.17.1.2 FreeBSD 13.1
bugmeister would like to thank Hans Petter for his years of ports maintenance and his work on FreeBSD in general. May he rest in peace. An in-memoriam can be read at https://lists.freebsd.org/archives/freebsd-announce/2023-July/000076.html With hat: bugmeister