Commit Graph

74 Commits

Author SHA1 Message Date
dec05eba
e6f1d47eef Test fix for monitor changing after power off/on 2025-03-07 19:29:19 +01:00
dec05eba
3a200a4c9f Workaround teamspeak crashing when recording app audio 2025-01-10 23:59:15 +01:00
dec05eba
01e3a7a8cd Use poll instead of select 2024-12-30 05:24:40 +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
4240f0e334 Add -aa and -aai options to record audio only from selected applications
Use the --list-application-audio option to list available applications
to record from.
2024-11-10 23:54:39 +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
62509a4b60 nixos fix: look for gsr-kms-server in PATH if not found in same directory as gpu-screen-recorder 2024-10-19 00:48:04 +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
e107adbc32 Show warning when amd driver adds black bars, set frame resolution after changing video codec context resolution 2024-07-24 01:29:30 +02:00
dec05eba
7d719a44c6 Fix hdr capture causing crash when in replay mode 2024-07-23 18:11:38 +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
463c1d61f0 Portal: make resizing not glitched, clear background on resize, proper handling of multithreaded plane fd 2024-07-17 20:54:37 +02:00
dec05eba
048b8d21ec Add support for desktop portal capture (-w portal) 2024-07-15 19:02:34 +02:00
dec05eba
c01eb53513 fix possible freeze on exit if exiting quickly after start 2024-05-13 21:22:29 +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
5e05bbbbcb Refactor xcomposite
Move common code between cuda/vaapi implementations
into xcomposite file.
This also fixes limited/full range colors on nvidia.
2024-03-09 15:36:45 +01:00
dec05eba
d0c221a233 Refactor kms_vaapi and kms_cuda
Also fixes color metadata, color range and hdr on nvidia wayland.
2024-03-08 11:34:36 +01:00
dec05eba
cad85fcf25 flatpak: launch kms server proxy instead of gsr-kms-server 2024-02-11 02:20:08 +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
94cbed9471 Nvidia: use default p4 preset instead of p5, might fix frame issues 2024-01-11 10:50:14 +01:00
dec05eba
0af35ae6df Create directory to output file if not exists 2024-01-02 05:38:29 +01:00
dec05eba
275d4d1b32 Avoid pkexec flatpak run if possible 2023-12-31 17:09:56 +01:00
dec05eba
8afc473441 Avoid pkexec with flatpak if possible 2023-12-31 17:07:28 +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
54b03eabbd Fix for opensuse: set unix domain socket mod 777
Fixes screen capture on opensuse amd/intel or nvidia wayland
2023-12-31 15:44:43 +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
8e66363352 flatpak: run gsr kms server on host if the file has root capacity 2023-11-30 18:44:45 +01:00
dec05eba
31e54bdc85 Allow both hevc and h265 (as alias) 2023-11-30 17:47:37 +01:00
dec05eba
f9e067b828 has perm should have higher priority than flatpak check 2023-11-29 21:40:24 +01:00
dec05eba
31e8ba837a Check getcap in flatpak too 2023-11-29 20:57:30 +01:00
dec05eba
11ba5d6027 Restore flatpak spawn gsr server command 2023-11-29 19:56:02 +01:00
dec05eba
7d718336bd Use correct arguments for flatpak spawn 2023-11-29 10:36:34 +01:00
dec05eba
29376f0b93 Run gpu screen recorder gtk as a proxy for gsr kms server when using flatpak 2023-11-29 01:08:08 +01:00
dec05eba
ba111dc73a sigkill kms server 2023-11-18 14:29:45 +01:00
dec05eba
64095e733a close socketpair before sigint 2023-11-18 14:20:48 +01:00
dec05eba
9e6f6f67d0 Kill kms server instead of sigint, fixes being stuck with pkexec 2023-11-18 14:15:54 +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