52 Commits

Author SHA1 Message Date
dec05eba
62e180903e Add support for camera (yuyv, mjpeg) and multiple capture sources 2025-12-23 18:57:43 +01:00
dec05eba
a10b882e82 Fix shit 2025-11-18 00:28:13 +01:00
dec05eba
92f4bd5f95 kms: fix incorrect capture region on intel when playing a fullscreen game with a lower resolution (on some wayland compositors) 2025-11-17 23:54:09 +01:00
dec05eba
b7c8334679 kms capture: fix incorrect rotation on wayland (kde plasma) when monitor is rotated when a window is fullscreen
Add support for drm plane rotation.
2025-07-29 21:57:26 +02:00
dec05eba
2c0c53b5b3 Revert "kms: remove unix domain socket and only use socketpair"
This reverts commit 46febed35e.
2025-07-06 17:53:34 +02:00
dec05eba
46febed35e kms: remove unix domain socket and only use socketpair 2025-07-06 17:27:46 +02:00
dec05eba
2b34c78459 Revert "temp test for cosmic"
This reverts commit 35222bafe2.
2025-05-15 19:48:25 +02:00
dec05eba
35222bafe2 temp test for cosmic 2025-05-15 19:17:04 +02:00
dec05eba
e3225bc628 Move dbus code to a separate process to allow gpu-screen-recorder to use cap_sys_nice for better recording performance on amd 2025-05-10 17:10:59 +02:00
dec05eba
01040796ee 5.3.7 2025-04-04 23:56:16 +02:00
dec05eba
4e614a18bc Remove unused code 2025-04-04 13:53:13 +02:00
dec05eba
fadf9b64de Test fix 2: crtc map update 2025-03-07 19:44:08 +01:00
dec05eba
e6f1d47eef Test fix for monitor changing after power off/on 2025-03-07 19:29:19 +01:00
David Rosca
954f9abe2a kms_server: Use MOD_INVALID when modifiers are not supported
Fixes VAAPI import on older AMD cards that doesn't support modifiers.
2024-12-28 10:39:25 +01:00
dec05eba
1aae305a36 Revert "Temp debug output"
This reverts commit 919c87768e.
2024-10-24 15:08:43 +02:00
dec05eba
919c87768e Temp debug output 2024-10-24 14:55:39 +02:00
dec05eba
1e6866236d Fix build 2024-10-12 01:47:11 +02:00
dec05eba
551f58fca1 Disable kms client check for now 2024-10-12 01:40:12 +02:00
dec05eba
28ba2e8f3e gsr-kms-server 'security': only allow gpu-screen-recorder to get framebuffer 2024-10-06 22:26:47 +02:00
dec05eba
eddb07ac40 Revert recent time framing and performance changes as it affects slower devices badly 2024-09-21 15:43:19 +02:00
dec05eba
1e39dc6286 Refactor kms capture 2024-08-16 23:20:04 +02:00
dec05eba
91485ba75d Fix kms capture getting stuck if more than 1 fd per plane 2024-07-23 17:28:03 +02:00
dec05eba
b5b4d6b2bd Fix portal capture on intel, support multiple planes in one egl image (might fix capture on intel iris) 2024-07-22 04:58:41 +02:00
dec05eba
f1eb893493 Proper strncpy null termination 2024-05-09 16:17:38 +02:00
dec05eba
1690381bb2 Ignore overlay planes for the future 2024-03-10 21:07:03 +01:00
dec05eba
017fd0a37d Add support for hdr capture on amd/intel
Nvidia support will be added in the future.
Note that hdr metadata is missing from the output file as
amd and intel both have bugged drivers that dont add hdr metadata
to the output file.
Need to find a workaround for this (patching the video bitstream?).

Add -cr limited|full, to set color range
2024-02-06 02:43:47 +01:00
dec05eba
c340cb0517 Revert "Reverse kms server connect direction to fix umask issue"
This reverts commit e844421f6d.
2023-12-31 16:57:14 +01:00
dec05eba
e844421f6d Reverse kms server connect direction to fix umask issue 2023-12-31 16:41:55 +01:00
dec05eba
852882bae3 Fix opus and flac audio sources, fix crash when live streaming without an audio source 2023-12-03 00:59:07 +01:00
dec05eba
2cbcde19f6 Properly send socketpair fd to kms server 2023-11-18 13:55:27 +01:00
dec05eba
290db495ff kms client/server: replace unix domain socket file with socketpair after connecting (fixes issue of .gsr-kms-socket files remaining in $HOME) 2023-11-12 10:55:02 +01:00
dec05eba
2a890a4b4d Dont include unused drm_fourcc.h, include missing unistd.h for _exit 2023-10-27 11:59:37 +02:00
dec05eba
e0b2f0c9c5 Dont forcefully set drm fourcc to argb8888, fixes kde wayland where default is 10bit colors 2023-10-22 19:45:01 +02:00
dec05eba
51154b71be Fix vram leak for reals 2023-10-22 04:56:34 +02:00
dec05eba
9710f8a2d4 Attempt to fix amd/intel driver bug vram leak, force cfr when livestreaming, replace std::filesystem with posix
create replay directory automatically, recursively
2023-10-21 22:46:33 +02:00
dec05eba
cf7b5e0904 Attempt to fix vram leak(?) 2023-10-08 22:25:07 +02:00
dec05eba
f89d23c2d0 Remove unused cursor code 2023-09-29 20:56:59 +02:00
dec05eba
d45597e104 Exit with exit code 10 if pkexec fails 2023-07-22 23:22:51 +02:00
dec05eba
9ca5b8ec3a Fix cursor offset in kms grab (amd/intel), disable wlroots capture until its fixed 2023-07-22 20:12:41 +02:00
dec05eba
60de2c47be Use correct offset for combined plane monitor capture 2023-07-22 04:12:02 +02:00
dec05eba
22a0a01553 AMD/Intel capture cursor 2023-07-22 02:57:38 +02:00
dec05eba
b2644a9881 Fix wayland capture on amd/intel 2023-07-18 03:21:16 +02:00
dec05eba
0a2806972f Experimental wayland support, test 1 2023-07-18 02:14:27 +02:00
dec05eba
7f2099b3ca Update readme 2023-06-18 20:48:36 +02:00
dec05eba
6cff1a49d2 Fix all warnings 2023-05-17 18:49:16 +02:00
dec05eba
715a3c612a Remove unecessary include 2023-05-14 01:29:47 +02:00
dec05eba
26571094aa kms_vaapi: fix regression, screen rotation not working when capturing screen 2023-05-12 05:03:12 +02:00
dec05eba
99dbbd07ab kms_vaapi: support multiple drm planes (fixes capture on some multi monitor systems) 2023-05-12 03:49:29 +02:00
dec05eba
e1c613666e kms_vaapi: add cursor capture for amd/intel monitor capture
Always find largest drm buf, to fix some cases
when there are multiple planes and we accidentally
capture a drm buf that isn't the target buf.
We always want the full SCREEN drm buf.
2023-04-22 02:13:11 +02:00
dec05eba
df2509c0aa Kms server timeout, move back kms unix domain socket to HOME because flatpak cant access it otherwise 2023-04-17 23:53:18 +02:00