aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-05 23:39:17 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-05 23:39:17 +0200
commit239f2010f5b91117ecd485ac20c541a1e8ecd434 (patch)
treeee053a466bbe3499f0b7df17fd792d16ffb8a9de /extra
parentcb782763f03b146df43344992a82007ad616c8b9 (diff)
Fix systemd service file
Diffstat (limited to 'extra')
-rw-r--r--extra/gpu-screen-recorder.env4
-rw-r--r--extra/gpu-screen-recorder.service5
2 files changed, 5 insertions, 4 deletions
diff --git a/extra/gpu-screen-recorder.env b/extra/gpu-screen-recorder.env
index e542992..8ce1edb 100644
--- a/extra/gpu-screen-recorder.env
+++ b/extra/gpu-screen-recorder.env
@@ -3,8 +3,8 @@ CONTAINER=mp4
QUALITY=very_high
CODEC=h264
AUDIO_CODEC=opus
-AUDIO_DEVICE=alsa_output.pci-0000_0a_00.4.iec958-stereo.monitor
-SECONDARY_AUDIO_DEVICE=alsa_input.some-mic.mono-fallback
+AUDIO_DEVICE=default_output
+SECONDARY_AUDIO_DEVICE=default_input
FRAMERATE=60
REPLAYDURATION=60
OUTPUTDIR=/run/media/dec05eba/SSD1TB/Videos/aaaa
diff --git a/extra/gpu-screen-recorder.service b/extra/gpu-screen-recorder.service
index aa1d702..d0912ec 100644
--- a/extra/gpu-screen-recorder.service
+++ b/extra/gpu-screen-recorder.service
@@ -8,7 +8,7 @@ Environment=CONTAINER=mp4
Environment=QUALITY=very_high
Environment=CODEC=auto
Environment=AUDIO_CODEC=opus
-Environment=AUDIO_DEVICE=
+Environment=AUDIO_DEVICE=default_output
Environment=SECONDARY_AUDIO_DEVICE=
Environment=FRAMERATE=60
Environment=REPLAYDURATION=30
@@ -18,7 +18,8 @@ Environment=COLOR_RANGE=limited
Environment=KEYINT=2
Environment=ENCODER=gpu
Environment=RESTORE_PORTAL_SESSION=yes
-ExecStart=/bin/sh -c 'AUDIO="${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w "$WINDOW" -c "$CONTAINER" -q "$QUALITY" -k "$CODEC" -ac "$AUDIO_CODEC" -a "$AUDIO" -a "$SECONDARY_AUDIO_DEVICE" -f "$FRAMERATE" -r "$REPLAYDURATION" -o "$OUTPUTDIR" -df "$MAKEFOLDERS" $ADDITIONAL_ARGS -cr "$COLOR_RANGE" -keyint "$KEYINT" -restore-portal-session "$RESTORE_PORTAL_SESSION" -encoder "$ENCODER"'
+Environment=ADDITIONAL_ARGS=
+ExecStart=gpu-screen-recorder -v no -w "${WINDOW}" -c "${CONTAINER}" -q "${QUALITY}" -k "${CODEC}" -ac "${AUDIO_CODEC}" -a "${AUDIO_DEVICE}" -a "${SECONDARY_AUDIO_DEVICE}" -f "${FRAMERATE}" -r "${REPLAYDURATION}" -o "${OUTPUTDIR}" -df "${MAKEFOLDERS}" $ADDITIONAL_ARGS -cr "${COLOR_RANGE}" -keyint "${KEYINT}" -restore-portal-session "${RESTORE_PORTAL_SESSION}" -encoder "${ENCODER}"
KillSignal=SIGINT
Restart=on-failure
RestartSec=5s