fix(gsr): use default input and output for audio
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-31 00:08:09 -05:00
parent 97f9d869d3
commit 535f286fe4

View file

@ -59,20 +59,34 @@ in {
xrandr --output "$WINDOW" --primary xrandr --output "$WINDOW" --primary
gpu-screen-recorder ${concatStringsSep " " [ gpu-screen-recorder ${concatStringsSep " " [
''-v no'' # Prints fps and damage info once per second.
''-r 1200'' "-v no"
''-df yes''
''-o /home/matt/Videos/Replay'' # Replay buffer time in seconds.
# Audio settings "-r 1200"
''-ac aac''
''-a "$(pactl get-default-sink).monitor"'' # Organise replays in folders based on the current date.
''-a "$(pactl get-default-source)"'' "-df yes"
# Video settings "-o /home/matt/Videos/Replay"
''-w "$WINDOW"''
''-f 60'' # Audio codec to use.
''-c mkv'' "-ac aac"
''-k hevc''
''-q very_high'' # Audio device or application to record from (pulse audio device).
"-a desktop/default_output"
"-a microphone/default_input"
# Window id to record, display (monitor name), "screen", "screen-direct", "focused" or "portal".
"-w \"$WINDOW\""
# Frame rate to record at.
"-f 60"
# Container format for output file.
"-c mkv"
# Video codec to use.
"-k hevc"
]} ]}
''; '';
}) })