From 865728068c965e066d0f8971c5b5ba26e12e7dce Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 24 Dec 2020 00:06:27 +0530 Subject: Adds scripts and links scripts and wallpapers --- scripts/recording/camscreen.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/recording/camscreen.sh (limited to 'scripts/recording/camscreen.sh') diff --git a/scripts/recording/camscreen.sh b/scripts/recording/camscreen.sh new file mode 100755 index 0000000..4b2b594 --- /dev/null +++ b/scripts/recording/camscreen.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +outfile=${1:-"$HOME/Pictures/recordings/video-cs-$(date -Iminutes).mp4"}; + +[[ -f "$outfile" ]] && echo "[File already exists]: $outfile" && exit 1; + +ffplay /dev/video0 -s 300x200 -an & + +ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i hw:0,0 $outfile; + -- cgit v1.3.1