aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-08 01:51:54 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-08 02:00:52 +0200
commit6a92aaba7f5fa9c6c37027995b0d1ed50f206742 (patch)
tree4de96d7cc1319ab3a9a65799e8de38f6261c95df
parent75ed160122bc923731ae1d005d789608a4cdb2fb (diff)
Remove ubuntu specific install scripts
-rw-r--r--README.md15
-rw-r--r--TODO1
-rwxr-xr-xinstall_ubuntu_amd.sh14
-rwxr-xr-xinstall_ubuntu_intel.sh14
-rwxr-xr-xinstall_ubuntu_nvidia.sh15
5 files changed, 10 insertions, 49 deletions
diff --git a/README.md b/README.md
index 4bd2db3..460cece 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,12 @@ If you are using a variable refresh rate monitor then choose to record "screen-d
For screen capture to work with PRIME (laptops with a nvidia gpu), you must set the primary GPU to use your dedicated nvidia graphics card. You can do this by selecting "NVIDIA (Performance Mode) in nvidia settings:\
![](https://dec05eba.com/images/nvidia-settings-prime.png)\
and then rebooting your laptop.
-### TEMPORARY ISSUE ###
+### TEMPORARY ISSUE
screen-direct capture has been temporary disabled as it causes issues with stuttering. This might be a nvfbc bug.
+### AMD/Intel root permission
+When recording a window under AMD/Intel no special user permission is required, however when recording a monitor the program needs root permission (to access KMS).
+To make this safer, the part that needs root access has been moved to its own executable (to make it as small as possible) and a GUI sudo prompt is shown to run this executable as root. The executable is called "gsr-kms-server".
+However this doesn't work if you want to start replay at startup for example. To fix this, run: `sudo setcap cap_sys_admin+ep /usr/bin/gsr-kms-server` if you have installed GPU Screen Recorder.
# Performance
On a system with a i5 4690k CPU and a GTX 1080 GPU:\
@@ -28,16 +32,15 @@ Note! use at your own risk!
# Installation
If you are running an Arch Linux based distro, then you can find gpu screen recorder on aur under the name gpu-screen-recorder-git (`yay -S gpu-screen-recorder-git`).\
-If you are running an Ubuntu based distro then if you are using NVIDIA then run `sudo ./install_ubuntu_nvidia.sh`, if you are using AMD then run `sudo ./install_ubuntu_amd.sh` and if you are running intel then run `sudo ./install_ubuntu_intel.sh`.\
-But it's recommended that you use the flatpak version of gpu-screen-recorder if you use an older version of ubuntu as the ffmpeg version will be old and wont support the best quality options.\
If you are running another distro then you can run `sudo ./install.sh`, but you need to manually install the dependencies, as described below.\
-You can also install gpu screen recorder ([the gtk gui version](https://git.dec05eba.com/gpu-screen-recorder-gtk/)) from [flathub](https://flathub.org/apps/details/com.dec05eba.gpu_screen_recorder).
+You can also install gpu screen recorder ([the gtk gui version](https://git.dec05eba.com/gpu-screen-recorder-gtk/)) from [flathub](https://flathub.org/apps/details/com.dec05eba.gpu_screen_recorder), which is the easiest method
+to install GPU Screen Recorder on non-arch based distros.
# Dependencies
## AMD
-`libglvnd (which provides libgl and libegl), mesa, ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter), libx11, libxcomposite, libxrandr, libpulse, libva, libva-mesa-driver, libdrm, libcap`.
+`libglvnd (which provides libgl and libegl), mesa, ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter), libx11, libxcomposite, libxrandr, libpulse, libva, libva-mesa-driver, libdrm, libcap, polkit (for pkexec)`.
## Intel
-`libglvnd (which provides libgl and libegl), mesa, ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter), libx11, libxcomposite, libxrandr, libpulse, libva, libva-intel-driver, libdrm, libcap`.
+`libglvnd (which provides libgl and libegl), mesa, ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter), libx11, libxcomposite, libxrandr, libpulse, libva, libva-intel-driver, libdrm, libcap, polkit (for pkexec)`.
## NVIDIA
`libglvnd (which provides libgl and libegl), ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter), libx11, libxcomposite, libxrandr, libpulse, cuda (libnvidia-compute), nvenc (libnvidia-encode), libva, libdrm, libcap`. Additionally, you need to have `nvfbc (libnvidia-fbc1)` installed when using nvfbc and `xnvctrl (libxnvctrl0)` when using the `-oc` option.
diff --git a/TODO b/TODO
index bcd913a..5552b56 100644
--- a/TODO
+++ b/TODO
@@ -44,3 +44,4 @@ Better configure vaapi. The file size is too large.
Better colors for vaapi. It looks a bit off when recording vscode for example.
Clear vaapi surface (for focused window).
+Support -h and --help. -h should only show the first line and --help the full help. On error, only show that -h.
diff --git a/install_ubuntu_amd.sh b/install_ubuntu_amd.sh
deleted file mode 100755
index 8404b49..0000000
--- a/install_ubuntu_amd.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-script_dir=$(dirname "$0")
-cd "$script_dir"
-
-[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
-
-set -e
-apt-get -y install build-essential\
- libswresample-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev\
- libglvnd-dev libx11-dev libxcomposite-dev libxrandr-dev\
- libpulse-dev libva2 libegl-mesa0 mesa-va-drivers libdrm-dev libcap-dev
-
-./install.sh
diff --git a/install_ubuntu_intel.sh b/install_ubuntu_intel.sh
deleted file mode 100755
index f01e354..0000000
--- a/install_ubuntu_intel.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-script_dir=$(dirname "$0")
-cd "$script_dir"
-
-[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
-
-set -e
-apt-get -y install build-essential\
- libswresample-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev\
- libglvnd-dev libx11-dev libxcomposite-dev libxrandr-dev\
- libpulse-dev libva2 libegl-mesa0 intel-media-va-driver libdrm-dev libcap-dev
-
-./install.sh
diff --git a/install_ubuntu_nvidia.sh b/install_ubuntu_nvidia.sh
deleted file mode 100755
index 1eeb7f5..0000000
--- a/install_ubuntu_nvidia.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-script_dir=$(dirname "$0")
-cd "$script_dir"
-
-[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
-
-set -e
-apt-get -y install build-essential\
- libswresample-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev\
- libglvnd-dev libx11-dev libxcomposite-dev libxrandr-dev\
- libpulse-dev libva2 libxnvctrl0 libnvidia-compute libnvidia-encode libnvidia-fbc1\
- libdrm-dev libcap-dev
-
-./install.sh