UGT icon indicating copy to clipboard operation
UGT copied to clipboard

input|camera - Unable to select Capture Card

Open SquarePixels opened this issue 4 years ago • 3 comments

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?

SquarePixels avatar May 11 '21 02:05 SquarePixels

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, &param.mDevices, &param.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:

SethRobinson avatar May 19 '21 07:05 SethRobinson

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.

image (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 (image of the Live Gamer 4K in device manager)

image (image of all devices detected in discord)

SquarePixels avatar May 19 '21 14:05 SquarePixels

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.

SethRobinson avatar May 23 '21 22:05 SethRobinson