From fc47ef82d9e66bdab657e56fbff4baaf3a170a2a Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Thu, 4 Feb 2021 00:35:21 +0000 Subject: Reduced CPU Usage from ScreenRecorder --- scripts/.local/bin/screenrecord | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/.local/bin/screenrecord') 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 -- cgit v1.2.3