Created
October 17, 2020 12:29
-
-
Save fortunto2/7159ea864f5373892920230f1a3c08ef to your computer and use it in GitHub Desktop.
RUN canon DSLR as web-camera
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://askubuntu.com/questions/856460/using-a-digital-camera-canon-as-webcam | |
sudo modprobe v4l2loopback | |
gphoto2 --abilities | |
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://askubuntu.com/questions/856460/using-a-digital-camera-canon-as-webcam
sudo apt-get install gphoto2 v4l2loopback-utils