Skip to content

Instantly share code, notes, and snippets.

@Cafezinhu
Forked from saisasidhar/eos_as_videofeed.md
Last active October 14, 2025 04:28
Show Gist options
  • Save Cafezinhu/2062b433c0b5fecc7a6831f4c660ad61 to your computer and use it in GitHub Desktop.
Save Cafezinhu/2062b433c0b5fecc7a6831f4c660ad61 to your computer and use it in GitHub Desktop.
Canon EOS as video feed in Arch Linux
➜ uname -r
# get installed kernel version
➜ pacman -S linux-headers
# select kernel version
# install v4l2 loopback driver with DKMS infrastructure
➜ pacman -S v4l2loopback-dkms
➜ sudo modprobe videodev
➜ sudo modprobe v4l2loopback devices=1 video_nr=2 exclusive_caps=1 card_label="ExternalWebCam"
➜ v4l2-ctl --list-devices
Dummy video device (0x0000) (platform:v4l2loopback-000):
	/dev/video2
# use /dev/videoX listed as platform:v4l2loopback later in gphoto command
➜ pacman -S gphoto2
➜ gphoto2 --auto-detect
# displays connected camera
➜ gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2
# /dev/video2 will contain the video feed from EOS camera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment