bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.42k stars 1.57k forks source link

OpenCVFrameGrabber default search path #2061

Open PotatoPeeler3000 opened 12 months ago

PotatoPeeler3000 commented 12 months ago

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 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

saudet commented 11 months ago

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