4 ms·
This is possible in Linux using v4l2loopback and gphoto2.
by reedlaw 6y ago
This is possible in Linux using v4l2loopback and gphoto2.
- dllu 6y agoIndeed. I use my Sony a7r II as a webcam on Linux using gphoto2 with v4l2loopback: https://daniel.lawrence.lu/blog/y2020m03d31/ https://daniel.lawrence.lu/blog/y2020m03d31/ sudo modprobe v4l2loopback devices=1 exclusive_caps=1 card_label="pupcam" gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -f v4l2 /dev/video0
- reedlaw 6y agoNice! I have a Canon 70D for which I simply use: sudo modprobe v4l2loopback And then the identical invocation of gphoto2 as yours. Seems gphoto2 includes a wide range of camera support.
- ofrzeta 6y agoI just discovered this some days ago through a blog (https://www.crackedthecode.co/how-to-use-your-dslr-as-a-webcam-in-linux/ https://www.crackedthecode.co/how-to-use-your-dslr-as-a-webc...) and it worked out quite well. However I did not yet find a way to control the depth of field through aperture in live view because it's always fully open.
- tincholio 6y agoNot to mention that the gphoto2 solution works with a whole lot more cameras than this.