Add region capture with -w region -region WxH+X+Y

This commit is contained in:
dec05eba
2025-03-13 00:18:28 +01:00
parent f23308444a
commit 92492db788
10 changed files with 298 additions and 140 deletions

8
TODO
View File

@@ -244,3 +244,11 @@ Find out how nvidia-smi fixes nvenc not working on opensuse and do that ourselve
Pulseaudio code: add "running" variable to loops to allow stopping the running code when quitting.
Scale screenshot frame libswscale or implement lanczos shader for improved scaline for video as well.
Support high quality scaling with -s by using lanczos.
Support spanning multiple monitors with region capture. This would also allow the user to record multiple monitors at the same time, the same way screen-direct works on nvidia x11.
Use x11 grab (or shmgetimage https://stackoverflow.com/questions/43442675/how-to-use-xshmgetimage-and-xshmputimage) instead of nvfbc for fullscreen screenshot on nvidia x11. Right now you cant record and take a screenshot because nvidia driver limitation that only allows one nvfbc session at a time system-wide.
When webcam support is added also support v4l2loopback? this is done by using avdevice_register_all(); and -c v4l2 -o /dev/video0; but it needs to output raw data as well instead of h264 and possibly yuv420p. Maybe add a -k yuv420p option to do that.