Canon DSLR as Webcam Ubuntu CanonWebCAM #!/bin/bash gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video$1