1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

gpu-screen-recorder: specified audio input & output, audio codec and video codec for better compatibility

This commit is contained in:
2023-09-17 01:10:57 +02:00
parent 69f05f6c96
commit 928f9c7c27
2 changed files with 10 additions and 4 deletions

View File

@@ -2,10 +2,13 @@
window=$(xdotool getwindowfocus)
fps=60
audio="$(pactl get-default-sink).monitor"
audio_1="easyeffects_sink.monitor"
audio_2="easyeffects_source"
format="mp4"
v_codec="h264"
a_codec="opus"
lenght=20
output="$HOME/downloads"
gpu-screen-recorder -w $window -f $fps -a $audio -c $format -r $lenght -o $output &
gpu-screen-recorder -w $window -f $fps -a $audio_1 -a $audio_2 -c $format -k $v_codec -ac $a_codec -r $lenght -o $output &
notify-send 'Screen record' 'Replay started'