Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7400

Graphics, sound and multimedia • Recompiling libv4l2 for OBS

$
0
0
Raspberry Pi OS has issues running OBS with USB inputs (e.g. USB capture cards sold in Amazon) where the inputs dropdown fails to render any options when the V4L2 source settings panel is open.

Running OBS from shell shows the error when OBS trying to create ALL the input devices listed under /dev, because libv4l2 is built with only 16 deivces by default.

Code:

Using mplane plugin for capture outputUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesqt.qpa.wayland: Wayland does not support QWindow::requestActivate()Using mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devicesUsing mplane plugin for capture outputlibv4l2: error attempting to open more than 16 video devices...
Following the steps at https://forums.developer.nvidia.com/t/m ... ices/54326, I tried to recompile pboettch/v4l2-utils with 64 devices and I got this error:

Code:

control/libv4lcontrol.c: In function 'v3lcontrol_get_usb_info':control/libv4lcontrol.c:392:43: error: called object 'minor' is not a function or function pointer  392 |                       c == '\n' && minor == minor(st.st_rdev)      |                                    ^~~~~control/libv4lcontrol.c:365:16: note: declared here  365 |           int i, minor;

Is it an incorrect toolchain that I am using, or is it something else?

Statistics: Posted by vicary — Sun May 19, 2024 4:08 pm — Replies 0 — Views 16



Viewing all articles
Browse latest Browse all 7400

Trending Articles