Access uvcvideo device in wine?

Questions about Wine on Linux
Locked
frmdstryr
Level 1
Level 1
Posts: 5
Joined: Mon Aug 19, 2024 4:30 pm

Access uvcvideo device in wine?

Post by frmdstryr »

Hi, I'm trying to run Creality Scan (https://www.creality.com/pages/download-cr-scan-otter) under wine. It installs ok and opens without any issues (appears to be an electron app). I can also open an imported project but the application is not able to detect the camera.

Under windows 10 & 11 the scanner shows up as 3 different camera devices without installing any drivers using the default usbvideo driver.

In linux it shows up as 3 different uvcvideo devices (that appear as /dev/videoX). I've tried adding udev rules but the application cannot find it under wine.

Code: Select all

[ 1083.436681] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 1083.449350] usb 2-2: New USB device found, idVendor=2bc5, idProduct=06da, bcdDevice= 0.01
[ 1083.449357] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=10
[ 1083.449359] usb 2-2: Product: CR-Scan Otter
[ 1083.449360] usb 2-2: Manufacturer: Creality
[ 1083.453304] hid-generic 0003:2BC5:06DA.0009: hiddev2,hidraw6: USB HID v1.11 Device [Creality CR-Scan Otter] on usb-0000:00:14.0-2/input6
[ 1083.632407] mc: Linux media interface: v0.10
[ 1083.647041] videodev: Linux video capture interface: v2.00
[ 1083.653657] uvcvideo 2-2:1.1: Unknown video format 20343159-0000-0010-8000-00aa00389b71
[ 1083.653667] usb 2-2: Found UVC 1.10 device CR-Scan Otter (2bc5:06da)
[ 1083.658739] usb 2-2: Found UVC 1.10 device CR-Scan Otter (2bc5:06da)
[ 1083.661376] usb 2-2: Found UVC 1.10 device CR-Scan Otter (2bc5:06da)
[ 1083.669807] usbcore: registered new interface driver uvcvideo
Is there any way to give the wine application access to the uvc device?
frmdstryr
Level 1
Level 1
Posts: 5
Joined: Mon Aug 19, 2024 4:30 pm

Re: Access uvcvideo device in wine?

Post by frmdstryr »

I enabled logging and see a few possibly related messages.

Code: Select all

0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
...
02a0:fixme:mfplat:MFEnumDeviceSources Not implemented for video capture devices.
02a0:fixme:mfplat:MFEnumDeviceSources Not implemented for video capture devices.
The query_id is the serial number.
frmdstryr
Level 1
Level 1
Posts: 5
Joined: Mon Aug 19, 2024 4:30 pm

Re: Access uvcvideo device in wine?

Post by frmdstryr »

I implemented an enum_video_capture_sources in dlls/mf/main.c and see it is able to enumerate all the video devices however the program is still not able to connect.

I think it is because register_avicap_devices does not set a proper DevicePath.
Last edited by frmdstryr on Wed Aug 28, 2024 9:05 am, edited 2 times in total.
Locked