Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input|camera - Unable to select Capture Card #28

Open
SquarePixels opened this issue May 11, 2021 · 3 comments
Open

input|camera - Unable to select Capture Card #28

SquarePixels opened this issue May 11, 2021 · 3 comments

Comments

@SquarePixels
Copy link

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?

@SethRobinson
Copy link
Owner

SethRobinson commented May 19, 2021

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:

@SquarePixels
Copy link
Author

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)

@SethRobinson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants