aboutsummaryrefslogtreecommitdiff
path: root/extra/gpu-screen-recorder.service
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-05-21 22:02:59 +0200
committerdec05eba <dec05eba@protonmail.com>2024-05-21 22:02:59 +0200
commitfee6441bc504c37817b883dcc2812b90a641a49e (patch)
treeebc6a53e08541e72b4cef6df729d6d78f4800386 /extra/gpu-screen-recorder.service
parent42d9ebd3c775ae60b80a99ef8bd33a444de0fb21 (diff)
Allow setting gop multiplication to reduce file size
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 0ba621b..bff6cf6 100644
--- a/extra/gpu-screen-recorder.service
+++ b/extra/gpu-screen-recorder.service
@@ -14,7 +14,8 @@ Environment=REPLAYDURATION=30
Environment=OUTPUTDIR=%h/Videos
Environment=MAKEFOLDERS=no
Environment=COLOR_RANGE=limited
-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'
+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'
KillSignal=SIGINT
Restart=on-failure
RestartSec=5s