diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-08-07 16:35:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-08-07 16:35:49 +0530 |
| commit | 54ace06947a4067653264680606fb997d89a3e6a (patch) | |
| tree | 1faa2f48b14a15b3179ca55ebda13e3200a3cde5 /scripts/recording | |
| parent | 6d55a178fb26d41626b6108ec9e2180d3a22fb1e (diff) | |
| download | nixos-config-54ace06947a4067653264680606fb997d89a3e6a.tar.gz nixos-config-54ace06947a4067653264680606fb997d89a3e6a.zip | |
sync
Diffstat (limited to 'scripts/recording')
| -rwxr-xr-x | scripts/recording/camscreen.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
