Open mondy opened 3 years ago
Is there any progress on this issue? Does the mediadevices module work properly? Is it under development? Can I use any webcam? Are there any restrictions on the specifications of the available webcams?
Most of the contributors of this repository are using Linux, so I guess anyone is working on it.
I tried examples/http
on the commit 070ab924f92a577612841242995aa750897c0e4a (current master) cross compiled by Go 1.16.2 and x86_64-w64-mingw32-gcc 10.3.1.
It works on Windows 11 build 22000.co_release.210604-1628 with a USB camera.
Windows version of pkg/driver/camera
is based on DirectShow. The camera should be compatible with DirectShow.
I confirmed Intel RealSense R200 works on the above condition too.
I got a new USB camera. And fix enumlate windows camera.
I forked it and fixed it here. A few fix. I do not understand DirectShow.
Look at the commit.
The first fix is to forget to increment the index. This is a general bug that does not involve DirectShow, so it should not be a problem.
The second fix is to fail if the captureFilter is nullptr. Fixed an error that occurred when trying to access captureFilter in the getPin function. I don't know if this fix is correct because I don't understand DirectShow.
I have only confirmed that the program that outputs the image above works.
In the meantime, I have identified the bug and forked it to report it. Please let me know if you would like me to pull request for you.
If you still have the occasion to open a PR for this, it would be awesome !
Your environment.
What did you do?
Run the following code. Set
PION_LOG_DEBUG=all
What did you expect?
The camera should be captured and output to
frame.jpg
.What happened?
When the camera is connected, the following will be output.
When the camera is not connected, the following will be output.
What does exit status 3221226356 mean?