summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/screenrecord
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2021-02-04 00:35:21 +0000
committerrafa_99 <rafa99@protonmail.com>2021-02-04 00:35:21 +0000
commitfc47ef82d9e66bdab657e56fbff4baaf3a170a2a (patch)
tree3e860134848eb92f6826dafe017b43e64e1dac86 /scripts/.local/bin/screenrecord
parent4048dedbf2677391d300c8eeff941e58a03d2368 (diff)
Reduced CPU Usage from ScreenRecorder
Diffstat (limited to 'scripts/.local/bin/screenrecord')
-rwxr-xr-xscripts/.local/bin/screenrecord4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/.local/bin/screenrecord b/scripts/.local/bin/screenrecord
index 62c1a34..20af130 100755
--- a/scripts/.local/bin/screenrecord
+++ b/scripts/.local/bin/screenrecord
@@ -5,9 +5,9 @@ INPUT=$(printf "Screen Record\nScreen Cast" | dmenu -i -c -l 15 -p "Record Type:
case "$INPUT" in
"Screen Record")
SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep output | sed s:\"::g)
- ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -r 30 -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv
+ ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv
;;
"Screen Cast")
SOURCE=$(pamixer --list-sources | grep -vi "Sources:" | awk '{print $2}' | grep input | sed s:\"::g)
- ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -r 30 -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv
+ ffmpeg -y -f x11grab -framerate 60 -s $(xdpyinfo | grep dimensions | awk '{print $2}') -i :0.0 -f pulse -i $SOURCE -c:v libx264rgb -preset superfast -r 30 -c:a flac ~/Videos/Recordings/recording-"$(date '+%Y%m%d_%H%M%S')".mkv
esac