diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | extra/gpu-screen-recorder.env | 9 |
2 files changed, 10 insertions, 1 deletions
@@ -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 |