سؤال

I try to record video using DirectShow (AMCAP demo), but it shows "Sorry, you have no video capture hardware. Video capture will not function properly".

My camera is Guppy, and I installed Vimba 1.2.1. I can get the images using Vimba. The system is Windows 7. I think the driver is installed, but the code cannot find the device.

Can anyone help me about this issue?

// enumerate all video capture devices
ICreateDevEnum *pCreateDevEnum=0;
hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER,
                      IID_ICreateDevEnum, (void**)&pCreateDevEnum);
if(hr != NOERROR)
{
    ErrMsg(TEXT("Error Creating Device Enumerator"));
    return;
}

IEnumMoniker *pEm=0;
hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEm, 0);
if(hr != NOERROR)
{
    ErrMsg(TEXT("Sorry, you have no video capture hardware.\r\n\r\n")
           TEXT("Video capture will not function properly."));
    goto EnumAudio;
}
هل كانت مفيدة؟

المحلول

The camera appears to be not supported via DirectShow. Or, you are expected to configure it appropriately before it appears on the list of devices. The description on the referenced web page suggests that vendor offers product specific SDK rather than integration into Windows API.

This classifies the issue as fitting/compatibility rather than programming question. Contact camera vendor for details.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top