Skip to content

Commit

Permalink
add vwcam for virtual webcam device for my canon camera
Browse files Browse the repository at this point in the history
  • Loading branch information
techgaun committed Mar 24, 2021
1 parent bd8e01a commit a42a3c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .functions/vwcam
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# running my virtual webcam on /dev/video2
# requires v4l2loopback, ffmpeg & gphoto2 installed

function vwcam() {
video_device="${1:-/dev/video2}"
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 "${video_device}"
}

0 comments on commit a42a3c6

Please sign in to comment.