letmaik / pyvirtualcam

🎥 Send frames to a virtual camera from Python
GNU General Public License v2.0
472 stars 50 forks source link

Native Linux v4l2 loopback support #29

Closed letmaik closed 3 years ago

letmaik commented 3 years ago

@JayFoxRox I had a go at doing this natively without pyfakewebcam and it was surprisingly easy. This should be much faster and keeps a similar code style to the other platforms. I haven't implemented the device choice yet but I think it's good enough already as I found a way to check whether a device definitely is a v4l2 loopback device.

Unfortunately I cannot run tests in CI for Linux as the VMs that GitHub Actions uses are lacking the videodev kernel module. I tested it manually on my own VM and it seems to work fine.