umlaeute / v4l2loopback

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

resolution 2048x1 does not work #573

Closed Katze719 closed 5 months ago

Katze719 commented 5 months ago

i can not set the resolution to 2048x1 i guess this is due to hardcoded macros:

#define V4L2LOOPBACK_SIZE_MIN_WIDTH 48
#define V4L2LOOPBACK_SIZE_MIN_HEIGHT 32

what is the reason behind not letting the user pick resolutions smaller than 48x32?

umlaeute commented 5 months ago

the reason is a simple sanity check :-)

if changing the minimum width/height to 1 works for you (or better MIN_WIDTH=2, MIN_HEIGHT=1), we could change that.

Katze719 commented 5 months ago

I'd love to, that would be perfect

umlaeute commented 5 months ago

what i meant is: can you confirm that it is actually working for you if you make these changes?

Katze719 commented 5 months ago

if i compile it myself it works with ffmpeg as producer, tried 1x1 with 8-bit greyscale

Katze719 commented 5 months ago

just confirmed, works on aarch64 and x86_64