Hacker News new | past | comments | ask | show | jobs | submit login

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?



Not sure about cross-platform, but for macOS I started this plugin by creating a minimal virtual camera: https://github.com/johnboiles/coremediaio-dal-minimal-exampl...

@seanchas116 made a Swift port of my minimal example 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.


this 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


Very very convoluted. I found it near impossible to read.


This project seems like its the farthest along in this endeavor on linux:

https://github.com/umlaeute/v4l2loopback




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: