Commit Graph

511 Commits

Author SHA1 Message Date
dec05eba
fbaa73bfc7 Prefix program arguments error with error: 2024-12-31 10:40:07 +01:00
dec05eba
2c51e8630d Exit with exit code 50 if invalid audio device. Exit with exit code 51 if invalid monitor 2024-12-26 15:21:47 +01:00
dec05eba
c1048a3d20 Make '-w screen' capture the first monitor on nvidia x11 as well to make it work like amd, intel and nvidia wayland. Keep screen-direct for all monitors, that is gsync compatible 2024-12-26 13:49:20 +01:00
dec05eba
a006261ade Fix --list-capture-options with card path not working on x11 nvidia because x11 nvidia doesn't use dri 2024-12-09 01:57:10 +01:00
dec05eba
d138a1fe73 Add card path to --info, add card path and vendor to --list-capture-options if known to speed up the command 2024-12-08 02:52:58 +01:00
dec05eba
c259a19b9d Refactor windowing from egl to window_x11/window_wayland, yolo 2024-12-08 02:17:41 +01:00
dec05eba
175ed79b06 Fix virtual sink not destroyed if gsr is forcefully killed (use pipewire to create the virtual sink instead of pulseaudio) 2024-12-06 12:53:44 +01:00
dec05eba
00b132c7b4 Remove incorrect references to -aa and -aai 2024-12-05 17:48:21 +01:00
dec05eba
51265d3536 --help improvement 2024-11-29 18:36:11 +01:00
dec05eba
0ae3c1f827 Repurpose '/' in audio argument to set the audio track name, not the recording node name in pulseaudio/pipewire. This also now allows setting audio track name when recording application audio 2024-11-28 11:42:39 +01:00
dec05eba
c2cd9c3473 Print --help to stdout instead of stderr 2024-11-28 10:42:23 +01:00
dec05eba
d472d8d41e Dont allow running the program as the root user 2024-11-24 22:52:12 +01:00
dec05eba
41b3136797 Only report monitors when /dev/dri/cardN is available (its not available on linux mint for some reason with prime setup) 2024-11-22 18:13:01 +01:00
dec05eba
8e94d6a696 Dont run any pipewire if audio server is not pipewire (fix freeze on linux mint 21.3 pulseaudio system in flatpak) 2024-11-22 17:36:23 +01:00
dec05eba
dcc1bf1e2a Remove GSR_APP_AUDIO macro use when not needed 2024-11-22 00:14:33 +01:00
dec05eba
cbf4cba5a9 Allow recording app audio with -a, deprecate -aa and -aai
Use -a "app:brave" instead of -aa "brave".
Use -a "app-inverse:brave" instead of -aai "brave".

This now allows merging audio devices and app audio into the same audio
track.
2024-11-20 19:09:42 +01:00
dec05eba
62ff649204 --info also verify pipewire connection for app audio 2024-11-17 13:16:42 +01:00
dec05eba
0ee68146a7 Disable application audio recording on pulseaudio 2024-11-17 01:12:12 +01:00
dec05eba
c2ae721dca --info: output if app audio is supported (if compiled with it and pipewire server) 2024-11-16 17:20:02 +01:00
dec05eba
c8fdf2f174 Fix build without app_audio build option 2024-11-11 00:18:10 +01:00
dec05eba
c11306c5fd Add --list-capture-options option 2024-11-11 00:06:29 +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
f1b4979365 Fix incorrect color format in x11 cursor (bgr instead of rgb) 2024-11-09 02:45:20 +01:00
dec05eba
0686b924de Prepare for pipewire audio routing 2024-11-08 18:40:33 +01:00
dec05eba
ab662f1ed5 Change libx264 preset to veryfast and tune to film 2024-11-07 16:34:24 +01:00
dec05eba
74d30f16ad Set buffer size 2024-11-05 17:49:49 +01:00
dec05eba
35390796cd usage 2024-11-05 09:31:32 +01:00
dec05eba
70b9e3d6ff Revert bitrate calculation 2024-11-05 09:23:39 +01:00
dec05eba
953953eac7 m 2024-11-05 01:45:15 +01:00
dec05eba
aac9b9cde7 Fix incorrect bitrate calculation for constant bitrate 2024-11-05 01:08:56 +01:00
dec05eba
258f690a89 Update issues link 2024-11-01 09:18:27 +01:00
dec05eba
05c74e5a77 Mention the new UI 2024-10-27 23:11:11 +01:00
dec05eba
112640282d Add option to change output resolution (-s) 2024-10-26 20:58:00 +02:00
dec05eba
768f1bd61e Fix shadow variable 2024-10-22 18:45:18 +02:00
dec05eba
7428f9ffee Allow recording virtual audio devices that have forward slash (/) in the name 2024-10-22 18:39:01 +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
eb602b9b53 4.2.2: AMD IS SHIT 2024-10-16 01:07:58 +02:00
dec05eba
19d77b8a96 Enable low latency encoding mode on amd (only available on amd since mesa version mesa 24.1.4) 2024-10-16 00:35:18 +02:00
dec05eba
a5895b775d appendum 2024-10-12 11:58:56 +02:00
dec05eba
2c4b077f43 Better frametimes when recording is too slow 2024-10-12 11:49:31 +02:00
dec05eba
9248663666 Better frame timing when frame encoding time overflows 2024-10-12 01:12:15 +02:00
dec05eba
fff68b8a18 More frame timing 2024-10-12 00:59:40 +02:00
dec05eba
037f5b3e5b Add back better frame timing for smoother video 2024-10-11 23:52:54 +02:00
dec05eba
935a7b892e Rename video encoder cuda to video encoder nvenc 2024-10-09 18:32:26 +02:00
dec05eba
0a8d176ab6 Usage 2024-10-07 23:28:20 +02:00
dec05eba
35c98148f3 usage 2024-10-07 23:26:31 +02:00
dec05eba
5d7933b0c9 Replace -bitrate with -q for constant bitrate (-bm cbr) 2024-10-07 22:30:11 +02:00
dec05eba
67bb47a355 More constant bitrate 2024-10-07 18:19:53 +02:00
dec05eba
ef6d265c85 Make -ab and -vb in kbps 2024-10-07 01:09:25 +02:00
dec05eba
d17bc3912d Add constant bitrate mode (-bm cbr with and -vb option) 2024-10-07 00:56:24 +02:00