Add the webcam_dslr function
This commit is contained in:
parent
79bd6e9cf6
commit
8e88420938
1 changed files with 10 additions and 0 deletions
10
.aliases
10
.aliases
|
@ -40,3 +40,13 @@ if hash yay 2>/dev/null; then
|
||||||
yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1)
|
yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1)
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if hash gphoto2 2>/dev/null; then
|
||||||
|
if hash ffmpeg 2>/dev/null; then
|
||||||
|
if modinfo v4l2loopback >/dev/null 2>&1; then
|
||||||
|
webcam_dslr() {
|
||||||
|
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue