aboutsummaryrefslogtreecommitdiff
path: root/scripts/recording/screenrecord.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/recording/screenrecord.sh')
-rwxr-xr-xscripts/recording/screenrecord.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/recording/screenrecord.sh b/scripts/recording/screenrecord.sh
new file mode 100755
index 0000000..bc5d6a3
--- /dev/null
+++ b/scripts/recording/screenrecord.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+prefix=${2:-"video"};
+
+outfile=${1:-"$HOME/Pictures/recordings/$prefix-screen-$(date -Iminutes).mp4"};
+
+ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i hw:0,0 $outfile;