diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | build.sh | 6 |
3 files changed, 10 insertions, 1 deletions
@@ -3,4 +3,6 @@ sibs-build/ compile_commands.json tests/sibs-build/ tests/compile_commands.json + .clangd/ +gpu-screen-recorder-gtk @@ -7,7 +7,8 @@ where only the last few seconds are saved. Might now work when using a compositor such as picom when using the glx backend. ## Installation -gpu screen recorder gtk can be built using [sibs](https://git.dec05eba.com/sibs) or if you are running Arch Linux, then you can find it on aur under the name gpu-screen-recorder-gtk-git (`yay -S gpu-screen-recorder-gtk-git`). [gpu-screen-recorder](https://git.dec05eba.com/gpu-screen-recorder/) needs to be installed to use gpu screen recorder gtk.\ +Run `./build.sh` or if you are running Arch Linux, then you can find gpu screen recorder gtk on aur under the name gpu-screen-recorder-gtk-git (`yay -S gpu-screen-recorder-gtk-git`).\ +Dependencies needed when building using `build.sh`: `gtk3 libx11 libxrandr libpulse`.\ Recording monitors requires a gpu with NvFBC support (note: this is not required when recording a single window!). Normally only tesla and quadro gpus support this, but by using [nvidia-patch](https://github.com/keylase/nvidia-patch) or [nvlax](https://github.com/illnyang/nvlax) you can do this on all gpus that support nvenc as well (gpus as old as the nvidia 600 series), provided you are not using outdated gpu drivers. ## Screenshots diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..05603db --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh -e + +dependencies="gtk+-3.0 x11 xrandr libpulse" +includes="$(pkg-config --cflags $dependencies)" +libs="$(pkg-config --libs $dependencies)" +g++ -o gpu-screen-recorder-gtk -O2 src/main.cpp -s $includes $libs |