Skip to content

Instantly share code, notes, and snippets.

@ebruning
Forked from saisasidhar/eos_as_videofeed.md
Created January 14, 2022 00:37
Show Gist options
  • Save ebruning/1aafd2a87616fa3f96a8e3dc813f430c to your computer and use it in GitHub Desktop.
Save ebruning/1aafd2a87616fa3f96a8e3dc813f430c 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 v4l2loopback
➜ 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