umlaeute / v4l2loopback

v4l2-loopback device
GNU General Public License v2.0
3.73k stars 531 forks source link

can't increase Read/Write buffers from 2 to 4 #572

Closed Katze719 closed 9 months ago

Katze719 commented 9 months ago

Im trying to increase the Read and Write buffers v4l2-ctl --all

...
Streaming Parameters Video Capture:
        Frames per second: 30.000 (30/1)
        Read buffers     : 2
Streaming Parameters Video Output:
        Frames per second: 30.000 (30/1)
        Write buffers    : 2

i tried to increase the #define V4L2LOOPBACK_DEFAULT_MAX_BUFFERS 2 to 4, recompiled it, installed it, loaded the module, but the read/write buffers do not seem to increase.

am i missing something?

here is what i did

Katze719 commented 9 months ago

nvm, im just fcking lost, just learned about MODULE_PARM_DESC

solution was just to use: modprobe v4l2loopback max_buffers=4