input|camera - Unable to select Capture Card
Seems the application can only select USB Cameras / Cature cards. Any way to support capture cards connected via PCI-E or even OBS / Xsplit Virtual Cameras?
I use an Elgato Game Capture HD60 PRO PCI-E card for captures without problems, so USB is not a requirement.
But you're right about it not picking up webcams...
The capture stuff is handled by escapi (here on github at https://github.com/jarikomppa/escapi ). After taking a quick look I see it's using:
hr = attributes->SetGUID(
MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE,
MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID
);
if (FAILED(hr)) return 0;
ChooseDeviceParam param = { 0 };
hr = MFEnumDeviceSources(attributes, ¶m.mDevices, ¶m.mCount);
Which looks right according to snippets I've seen. Set a breakpoint and yeah, it's only seeing the capture card and not the other devices. I tested with the latest version of Escapi (from its github) and same results. Not sure.
Edit: I opened an issue over at escapi:
Sorry, I should have been more specific in my issue. UGT seems to only detect the camera built into my Valve Index (Which I guess is the only physical "Webcam" I have connected to my PC.
(screenshot of the camera in device manager)
I also have an Avermedia Live Gamer 4K which was the device I wanted to use but I am unable to select it with input_camera_device_id as it appears only the eTronvideo is selectable.
(image of the Live Gamer 4K in device manager)
(image of all devices detected in discord)
I think the issue is the same, only full device drivers are recognized with Escapi (which is Media Foundation based), will have to get verification on this though.