javacv
javacv copied to clipboard
OpenCVFrameGrabber default search path
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:[email protected]] 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?
Please let me know if there is anything I can do.
Thanks, Nick
Please try to use FFmpegFrameGrabber instead. FFmpeg usually has better support for video capture than OpenCV.