mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Add gpu-screen-recorder.env example
This commit is contained in:
@@ -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.
|
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
|
## 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`
|
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 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`.\
|
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.
|
If you are using a NVIDIA GPU then it's recommended to set PreserveVideoMemoryAllocations=1 as mentioned in the section below.
|
||||||
|
|||||||
9
extra/gpu-screen-recorder.env
Normal file
9
extra/gpu-screen-recorder.env
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user