aboutsummaryrefslogtreecommitdiff
path: root/extra/gpu-screen-recorder.service
diff options
context:
space:
mode:
authorDjUlt <DjUltim@gmail.com>2024-05-31 00:01:30 +0300
committerdec05eba <dec05eba@protonmail.com>2024-05-30 20:16:51 +0200
commit47dbf1a6d1b49eb079b1530540c496aec433369c (patch)
treefa7d0a11ed7c78bdb86c3a8c6d2c6fbfa56c796d /extra/gpu-screen-recorder.service
parent9b8464a0a67c161c64bf54a7c622047551c7ca62 (diff)
Added secondary audio device for daemon and .env config
Diffstat (limited to 'extra/gpu-screen-recorder.service')
-rw-r--r--extra/gpu-screen-recorder.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/gpu-screen-recorder.service b/extra/gpu-screen-recorder.service
index bff6cf6..7ba4ae2 100644
--- a/extra/gpu-screen-recorder.service
+++ b/extra/gpu-screen-recorder.service
@@ -9,13 +9,14 @@ Environment=QUALITY=very_high
Environment=CODEC=auto
Environment=AUDIO_CODEC=opus
Environment=AUDIO_DEVICE=
+Environment=SECONDARY_AUDIO_DEVICE=
Environment=FRAMERATE=60
Environment=REPLAYDURATION=30
Environment=OUTPUTDIR=%h/Videos
Environment=MAKEFOLDERS=no
Environment=COLOR_RANGE=limited
Environment=GOPM=2
-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" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE -gopm $GOPM'
+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" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE -gopm $GOPM'
KillSignal=SIGINT
Restart=on-failure
RestartSec=5s