1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-05-01 22:07:45 +02:00

screen capture: fixed missing audio

This commit is contained in:
tiyn 2025-04-24 01:50:09 +02:00
parent 2d0fb5ecf8
commit 31616d0604

View File

@ -5,7 +5,7 @@ audio_2=${CAPTURE_OUTPUT_AUDIO:-easyeffects_source}
output=${CAPTURE_DIR:-$HOME/downloads}
device=${CAPTURE_DEVICE:-cpu}
fps=30
fps=60
format="mp4"
v_codec="h264"
a_codec="aac"
@ -17,5 +17,5 @@ elif [ $DISPLAY_SERVER = "xorg" ]; then
window=$(xdotool getwindowfocus)
fi
gpu-screen-recorder -encoder $device -w $window -c $format -k $v_codec -ac $a_codec -f $fps -o $output &
gpu-screen-recorder -encoder $device -w $window -c $format -k $v_codec -ac $a_codec -f $fps -o $output -a $audio_1 -a $audio_2 &
notify-send -u low 'Screen record' 'Recording started'