I'm working with a decklink capture card and when running:
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0) this works great on Windows.
But when running the same thing:
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0) it fails on Ubuntu.
The error I get is [ WARN:0@0.196] global /__w/javacpp-presets/javacpp-presets/opencv/cppbuild/linux-x86_64/opencv-4.6.0/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can't open camera by index and this makes sense as the decklink capture devices are not stored there. They are stored in dev/blackmagic/io0 so I'm wondering if there is a way to pick where the OpenCVFrameGrabber searches for the video input?
Hello,
I'm working with a decklink capture card and when running:
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0)
this works great on Windows.But when running the same thing:
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0)
it fails on Ubuntu.The error I get is
[ WARN:0@0.196] global /__w/javacpp-presets/javacpp-presets/opencv/cppbuild/linux-x86_64/opencv-4.6.0/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
and this makes sense as the decklink capture devices are not stored there. They are stored indev/blackmagic/io0
so I'm wondering if there is a way to pick where the OpenCVFrameGrabber searches for the video input?Please let me know if there is anything I can do.
Thanks, Nick