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/webcam.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/recording/webcam.sh (limited to 'scripts/recording/webcam.sh') diff --git a/scripts/recording/webcam.sh b/scripts/recording/webcam.sh new file mode 100755 index 0000000..2bc47e1 --- /dev/null +++ b/scripts/recording/webcam.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +outfile=${1:-"$HOME/Pictures/recordings/video-webcam-$(date -Iminutes).mp4"}; + +[[ -f "$outfile" ]] && echo "[File already exists]: $outfile" && exit 1; + +# ffmpeg -i /dev/video0 out.mkv +ffmpeg -i /dev/video0 -f alsa -i default $outfile; -- cgit v1.3.1