javacv icon indicating copy to clipboard operation
javacv copied to clipboard

OpenCVFrameGrabber default search path

Open PotatoPeeler3000 opened this issue 1 year ago • 1 comments

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

PotatoPeeler3000 avatar Jul 13 '23 22:07 PotatoPeeler3000

Please try to use FFmpegFrameGrabber instead. FFmpeg usually has better support for video capture than OpenCV.

saudet avatar Jul 20 '23 00:07 saudet