aboutsummaryrefslogtreecommitdiff
path: root/screenRecord.sh
diff options
context:
space:
mode:
Diffstat (limited to 'screenRecord.sh')
-rwxr-xr-xscreenRecord.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/screenRecord.sh b/screenRecord.sh
index e1dc923..a257388 100755
--- a/screenRecord.sh
+++ b/screenRecord.sh
@@ -12,18 +12,15 @@ touch "$markfile"
filename="rec$(date +"%y-%m-%d_%H-%M-%S").mkv"
screenRes="$(getResolution.sh)"
-screenPos=":0.0"
+screenPos=":0.0+0,0"
if [ "$(getResolution.sh | wc -l)" != 1 ]; then
screenRes="$(getResolution.sh | grep '1920x')"
screenPos=":0.0$(xrandr | grep -E "${screenRes}.*\(normal" | grep -Eo '\+[0-9]+\+[0-9]+')"
fi
-echo $screenRes
-echo $screenPos
-
# also record microphone
# ffmpeg -video_size "$(getResolution.sh)" -framerate 30 -f x11grab -i :0.0+0,0 -f alsa -ac 2 -i hw:0,0 "$HOME/videos/recs/$filename" &
- ffmpeg -video_size "$screenRes" -framerate 30 -f x11grab -i "$screenPos" -vcodec libx264 "${recsFolder}/${filename}" &
+ ffmpeg -video_size "$screenRes" -framerate 25 -f x11grab -i "$screenPos" -f pulse -ac 2 -i default -vcodec libx264 "${recsFolder}/${filename}" &
notify-send -t 1000 "Recording $filename"
pkill -SIGRTMIN+13 i3blocks