rgriebl / brickstore

An offline BrickLink inventory management tool.
https://www.brickstore.dev/
GNU General Public License v3.0
121 stars 26 forks source link

Item Scanner does not recognise virtual webcams #710

Open quotingmc opened 1 year ago

quotingmc commented 1 year ago

Firstly the new item scanner is amazing, a game-changing addition!

While the scanner seems to detect traditional webcams correctly, it does not seem able to spot virtual webcams such as those output via software. For example, I'd like to use software such as NVIDIA Boradcast or Logi Capture to set digital zoom, vertically flip the image, set auto-exposure etc. These software then produce their own output other programs can utilise.

Below you can see Discord detecting these sources while Brickstore only spots the webcam itself. Hopefully such sources can be detected and supported.

image

rgriebl commented 1 year ago

Qt (the library BrickStore is built upon) uses the modern Windows Media Foundation API to access the cameras, while the tools you are using still depend on the old, deprecated (by Microsoft itself) DirectShow API. Nobody seems to have built a bridge between these 2 worlds, so right now you are stuck on either side of "API divide": in BrickStore's case on the WMF side... thanks Microsoft!

quotingmc commented 1 year ago

Qt (the library BrickStore is built upon) uses the modern Windows Media Foundation API to access the cameras, while the tools you are using still depend on the old, deprecated (by Microsoft itself) DirectShow API. Nobody seems to have built a bridge between these 2 worlds, so right now you are stuck on either side of "API divide": in BrickStore's case on the WMF side... thanks Microsoft!

That's annoying! Classic Microsoft with their splintered frameworks. Hopefully down the line the tools update to Windows Media Foundation. Thanks for the reply

ABagino commented 1 year ago

Would like to kindly and quickly follow up on this! Is there a workaround for the above issue that was mentioned?

To thicken the plot.... I have connected my phone's camera using DroidCam - Windows and all other programs can detect the camera, and then can use the camera perfectly fine.

However, BrickStore can detect the camera, but when selected, it displays a blank screen.... Another thing, if you open up the Item Scanner Window with the Camera set on "Integrated Camera", and then switch to "DroidCam", the window holds the last frame of the Integrated Camera and freezes. DroidCam

If anyone knows a workaround/solution, it would be greatly appreciated. Otherwise, hope it helps! Thank you!

tronertrent commented 8 months ago

Hi there, did you ever figure this out or any other virtual webcams to use, would love to use my phone for this

rgriebl commented 8 months ago

https://iriun.com/ is free and works perfectly fine for me on Windows (tested with an iPhone, but they claim to support Android as well)