3 ms·
I recently tried to do some work on making a virtual camera, and was shocked to see just how difficult it is, let alone making something cross-platform. Anyone
by wbobeirne 6y ago
I recently tried to do some work on making a virtual camera, and was shocked to see just how difficult it is, let alone making something cross-platform. Anyone know of any projects that are trying to make this easier to hack on?
- farisjarrah 6y agoThis project seems like its the farthest along in this endeavor on linux: https://github.com/umlaeute/v4l2loopback https://github.com/umlaeute/v4l2loopback
- johnboiles 6y agoNot sure about cross-platform, but for macOS I started this plugin by creating a minimal virtual camera: https://github.com/johnboiles/coremediaio-dal-minimal-example https://github.com/johnboiles/coremediaio-dal-minimal-exampl... @seanchas116 made a Swift port of my minimal example https://github.com/seanchas116/SimpleDALPlugin https://github.com/seanchas116/SimpleDALPlugin Overall it _was_ very difficult! Apple's documentation and sample code for CoreMediaIO DAL (virtual camera) plugins are terrible. I just brute forced it for hours trying all sorts of different combinations of things before I got something to work.
- andrekandre 6y agothis is fantastic, i wish i had your example when i worked on mine (closed source)... it was the same for me, total brute force ... and apples examples are in c++ but i ended up doing it using straight c out of frustration since thier (c++) examples were so convoluted
- johnboiles 6y agoVery very convoluted. I found it near impossible to read.