Canon DSLR Webcam Ubuntu

Tested with Ubuntu 18.03

https://askubuntu.com/a/1110036

Run

  • sudo modprobe v4l2loopback; killall gvfs-gphoto2-volume-monitor; gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1

 

Setup

  • sudo apt get install guvcview ffmpeg gphoto2 v4l2loopback-dkms v4l2loopback-utils ffmpeg
  • sudo modprobe v4l2loopback; killall gvfs-gphoto2-volume-monitor
  • lsusb

  • gphoto2 --auto-detect

  • LANG=C gphoto2 --summary

  • LANG=C gphoto2 --list-all-config

  • gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1

  • guvcview