aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-28 16:27:58 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-28 16:27:58 +0100
commit177df561546b59a326edb8e76d9b79571a70a3cb (patch)
tree40f212965087fda75f1868f63b974ab46777be7f
parente75dcd03748e87c4a1558988128d996534b5c514 (diff)
Add gpu-screen-recorder.env example
-rw-r--r--README.md2
-rw-r--r--extra/gpu-screen-recorder.env9
2 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9589e2d..db95571 100644
--- a/README.md
+++ b/README.md
@@ -111,7 +111,7 @@ You can use these scripts to start replay at system startup if you add `scripts/
hotkey settings on your system and choose a hotkey to run the script `scripts/save-replay.sh`. Modify `scripts/start-replay.sh` if you want to use other replay options.
## Run replay on system startup
If you installed GPU Screen Recorder from AUR or from source and you are running a distro that uses systemd then you will have a systemd service installed that can be started with `systemctl enable --now --user gpu-screen-recorder`
-and it's configured with `$HOME/.config/gpu-screen-recorder.env` (create it if it doesn't exist). This systemd service runs GPU Screen Recorder on system startup.
+and it's configured with `$HOME/.config/gpu-screen-recorder.env` (create it if it doesn't exist). You can look at [extra/gpu-screen-recorder.env](https://git.dec05eba.com/gpu-screen-recorder/tree/extra/gpu-screen-recorder.env) to see an example. This systemd service runs GPU Screen Recorder on system startup.
You can see which variables that you can use in the `gpu-screen-recorder.env` file by looking at the `extra/gpu-screen-recorder.service` file.
You can use the `scripts/save-replay.sh` script to save a replay and by default the systemd service saves videos in `$HOME/Videos`.\
If you are using a NVIDIA GPU then it's recommended to set PreserveVideoMemoryAllocations=1 as mentioned in the section below.
diff --git a/extra/gpu-screen-recorder.env b/extra/gpu-screen-recorder.env
new file mode 100644
index 0000000..c4728cc
--- /dev/null
+++ b/extra/gpu-screen-recorder.env
@@ -0,0 +1,9 @@
+WINDOW=screen
+CONTAINER=mp4
+QUALITY=very_high
+CODEC=hevc
+AUDIO_CODEC=opus
+AUDIO_DEVICE=alsa_output.pci-0000_0a_00.4.iec958-stereo.monitor
+FRAMERATE=60
+REPLAYDURATION=60
+OUTPUTDIR=/run/media/dec05eba/SSD1TB/Videos/aaaa \ No newline at end of file