From 54ace06947a4067653264680606fb997d89a3e6a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 7 Aug 2022 16:35:49 +0530 Subject: sync --- scripts/recording/camscreen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/recording') diff --git a/scripts/recording/camscreen.sh b/scripts/recording/camscreen.sh index 4b2b594..97c0a3f 100755 --- a/scripts/recording/camscreen.sh +++ b/scripts/recording/camscreen.sh @@ -4,7 +4,8 @@ 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 & +trap "killall background" SIGINT SIGTERM EXIT -ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i hw:0,0 $outfile; +ffplay /dev/video0 -s 300x200 -an >/dev/null & +ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i loophw00 $outfile -- cgit v1.3.1