DSLR as webcam

I’m coming from arch, just installed bazzite on my gaming machine.

Previously I had a setup in which I could use v4l2loopback, ffmpeg and gphoto2 to use my DSLR camera as a webcam, i.e:

gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 4 -f v4l2 /dev/video0

Problem is installing the required software since Bazzite is an immutable OS. I’d appreciate someone pointing me in the right direction

Hey,

You could try to use distrobox to install those packages in one and give it a test

Thanks for the suggestion, I’ve figured it out

As for installing other things I did rpm-ostree install gphoto2 --reboot

More info here: How to use the command 'rpm-ostree' (with examples)

Bazzite comes with v4l2loopback by default so I can just do sudo modprobe v4l2loopback before executing the command above and it worked

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.