Starting Canon Rebel T6 DSLR Camera as Webcam
Contents
Turn on camera and plug in USB. Then find your camera.
gphoto2 --auto-detect
When your camera is displayed, start capturing with gphoto, and output with ffmpeg.
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0