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

Problems using USB Grabber (probably others too) and a possible solution #30

Open
MickaMickaMicka opened this issue Nov 13, 2015 · 0 comments

Comments

@MickaMickaMicka
Copy link

I had problems using USB analog-2-digital Grabber devices like Hauppauge WinTV USB Live2 Grabber. It worked on VLC and DirectShow GraphStudio but not on VideoInput (and OpenCV which uses VideoInput).

I had to change

hr = VD->pCaptureGraph->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, VD->pVideoInputFilter, VD->pGrabberF, VD->pDestFilter);

to

hr = VD->pCaptureGraph->RenderStream(&CAPTURE_MODE, &MEDIATYPE_Video, VD->pVideoInputFilter, VD->pGrabberF, VD->pDestFilter);

to get it working.

Probably this is a logical change because CAPTURE_MODE was set to PIN_CATEGORY_PREVIEW previously, if PIN_CATEGORY_PREVIEW is possible.
Please verify that the change is ok and update if that's true.

Best regards, Michael

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

1 participant