mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 08:17:47 +02:00
scripts: updated screen recorder to use cpu by default
This commit is contained in:
parent
c7e33b6162
commit
e9f2d8fea7
@ -3,6 +3,7 @@
|
|||||||
audio_1=${CAPTURE_INPUT_AUDIO:-easyeffects_sink.monitor}
|
audio_1=${CAPTURE_INPUT_AUDIO:-easyeffects_sink.monitor}
|
||||||
audio_2=${CAPTURE_OUTPUT_AUDIO:-easyeffects_source}
|
audio_2=${CAPTURE_OUTPUT_AUDIO:-easyeffects_source}
|
||||||
output=${CAPTURE_DIR:-$HOME/downloads}
|
output=${CAPTURE_DIR:-$HOME/downloads}
|
||||||
|
device=${CAPTURE_DEVICE:-cpu}
|
||||||
|
|
||||||
window=$(xdotool getwindowfocus)
|
window=$(xdotool getwindowfocus)
|
||||||
fps=60
|
fps=60
|
||||||
@ -11,5 +12,5 @@ v_codec="h264"
|
|||||||
a_codec="opus"
|
a_codec="opus"
|
||||||
lenght=20
|
lenght=20
|
||||||
|
|
||||||
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 &
|
gpu-screen-recorder -encoder $device -w $window -f $fps -a $audio_1 -a $audio_2 -c $format -k $v_codec -ac $a_codec -r $lenght -o $output &
|
||||||
notify-send -u low 'Screen record' 'Replay started'
|
notify-send -u low 'Screen record' 'Replay started'
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
audio_1=${CAPTURE_INPUT_AUDIO:-easyeffects_sink.monitor}
|
audio_1=${CAPTURE_INPUT_AUDIO:-easyeffects_sink.monitor}
|
||||||
audio_2=${CAPTURE_OUTPUT_AUDIO:-easyeffects_source}
|
audio_2=${CAPTURE_OUTPUT_AUDIO:-easyeffects_source}
|
||||||
output=${CAPTURE_DIR:-$HOME/downloads}
|
output=${CAPTURE_DIR:-$HOME/downloads}
|
||||||
|
device=${CAPTURE_DEVICE:-cpu}
|
||||||
|
|
||||||
window=$(xdotool getwindowfocus)
|
window=$(xdotool getwindowfocus)
|
||||||
fps=30
|
fps=30
|
||||||
@ -11,5 +12,5 @@ v_codec="h264"
|
|||||||
a_codec="aac"
|
a_codec="aac"
|
||||||
output="$output/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
|
output="$output/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
|
||||||
|
|
||||||
gpu-screen-recorder -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 &
|
||||||
notify-send -u low 'Screen record' 'Recording started'
|
notify-send -u low 'Screen record' 'Recording started'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user