l1npengtul / nokhwa

Cross Platform Rust Library for Powerful Webcam/Camera Capture
Apache License 2.0
509 stars 131 forks source link

Unable to access capture card on windows #154

Open BuyMyMojo opened 11 months ago

BuyMyMojo commented 11 months ago

The specific capture card id the AVerMedia Live Gamer 4K

When I run the threaded decode example with the index set to my capture card I get the error OpenDeviceError("1", "The data specified for the media type is invalid, inconsistent, or not supported by this object. (0xC00D36B4)") No matter what I set the requested format to the same error appears.

"camera" details: CameraInfo { human_name: "AVerMedia HD Capture GC573 1", description: "MediaFoundation Camera", misc: "\\\\?\\pci#ven_1461&dev_0054&subsys_57301461&rev_00#0000000101000a3500#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\{adef4cb5-1401-4177-84ee-fe8b26c13a5b}", index: Index(1) }

BuyMyMojo commented 11 months ago

I just tried with my USB live gamer extreme 2, a 1080p 60 card, and same error. but it works with my C922 webcam. Any chance on getting this to support the outputs of these capture devices too?