l1npengtul / nokhwa

Cross Platform Rust Library for Powerful Webcam/Camera Capture
Apache License 2.0
502 stars 121 forks source link

Can't find any camera in windows 11 #102

Open ololoshka2871 opened 1 year ago

ololoshka2871 commented 1 year ago

I created a small application, that captures an image from an OBS virtual camera, processes it and sends it to my device via USB. Everything works fine in linux, but I decided to try to run it in Windows 11 and failed! The application cannot find any camera devices.

At first I decided that the problem is in my code and ran the "capture" example, but it also does not work. Is the problem related to MSMF in Windows 11?

Other applications interact with OBS Camera normally.

Rust: 1.67.0 nokwa: 0.10.3

Снимок экрана 2023-02-05 120908

l1npengtul commented 1 year ago

It is possible that OBS doesn't produce a MSMF device, I'll have a look on this later.

Scarjit commented 1 year ago

I have written a simple program to detect DirectShow and MF source (https://github.com/Scarjit/windows-camera-list), and it indeed lists OBS as DirectShow:

Image showing OBS as direct show device

l1npengtul commented 1 year ago

This is a wontfix - I do not have the support, time, or motivation to write another backend. If anyone is willing to write a DirectShow backend that would be nice, but atm any windows support outside of MSMF is not planned.