From f8169bfcb004c402cd376378a9ae8b5331f461bd Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Wed, 2 Feb 2022 09:54:46 +0100 Subject: [PATCH] fish: start cam alias --- roles/dotfiles/files/fish/functions/cam.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 roles/dotfiles/files/fish/functions/cam.fish diff --git a/roles/dotfiles/files/fish/functions/cam.fish b/roles/dotfiles/files/fish/functions/cam.fish new file mode 100644 index 0000000..a5fedc9 --- /dev/null +++ b/roles/dotfiles/files/fish/functions/cam.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function cam --wraps='gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0' --description 'alias cam=gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0' + gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 $argv; +end