bytedeco/javacv

OpenCVFrameGrabber default search path

Open

#2,061 opened on Jul 13, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide