diff options
author | DjUlt <DjUltim@gmail.com> | 2024-05-31 00:01:30 +0300 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-05-30 20:16:51 +0200 |
commit | 47dbf1a6d1b49eb079b1530540c496aec433369c (patch) | |
tree | fa7d0a11ed7c78bdb86c3a8c6d2c6fbfa56c796d | |
parent | 9b8464a0a67c161c64bf54a7c622047551c7ca62 (diff) |
Added secondary audio device for daemon and .env config
-rw-r--r-- | extra/gpu-screen-recorder.env | 3 | ||||
-rw-r--r-- | extra/gpu-screen-recorder.service | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/extra/gpu-screen-recorder.env b/extra/gpu-screen-recorder.env index 848713f..0de20ed 100644 --- a/extra/gpu-screen-recorder.env +++ b/extra/gpu-screen-recorder.env @@ -4,7 +4,8 @@ QUALITY=very_high CODEC=hevc AUDIO_CODEC=opus AUDIO_DEVICE=alsa_output.pci-0000_0a_00.4.iec958-stereo.monitor +SECONDARY_AUDIO_DEVICE=alsa_input.some-mic.mono-fallback FRAMERATE=60 REPLAYDURATION=60 OUTPUTDIR=/run/media/dec05eba/SSD1TB/Videos/aaaa -GOPM=2
\ No newline at end of file +GOPM=2 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 |