Can't use dvi2usb with OpenCV on Linux

Hello community,

I try to use the dvi2usb grabber with OpenCv in C++ and Ubuntu.
For some reason I can’t get it:

cv::VideoCapture cap;

if(!cap.open("/dev/video4", cv::CAP_V4L2)){
    cout << "NOT POSSIBLE" << endl;
    return -1;
}

this works just fine for another cheap usb grabber and my webcam but not for the Epiphan.
I can get the Epiphan on OBS which uses V4L2 as well, but not with OpenCv.
I am grateful for all advises to fix this.
BR Michael

Hi Michael! I have the same problem with DVI2USB 3.0. Do you have some solution about this issue?

If not, I hope the support team of epiphan help us with this issue.

Thanks

Hi Jaruanob,
I could make it work with:
new cv::VideoCapture(deviceIndex, cv::CAP_GSTREAMER);
But not with V4L2. But you have do use the index, so 0,1,…
Afterwards I got rid of it, I am using now FFMPEG itself instead of cv::VideoCapture.
I hope this helps.
BR Michael