letmaik / node-virtualcam

🎥 Send frames to a virtual camera from Node.js
GNU General Public License v2.0
59 stars 5 forks source link
nodejs virtual-camera

node-virtualcam

NOTE: This package is a work-in-progress. No support is provided, use at own risk.

Installation

This package is Windows-only for now.

From admin command prompt:

npm install --global --production windows-build-tools --vs2015

If this gets stuck, see https://github.com/felixrieseberg/windows-build-tools/issues/172#issuecomment-484091133. Also, see StackOverflow on why --vs2015 is needed.

Install/build package:

npm install

Run sample:

node samples\sample.js

The package uses obs-virtual-cam which has to be installed separately. Note that the obs-virtual-cam installer assumes an OBS Studio installation and will fail otherwise. You can also download and extract the obs-virtual-cam zip package directly without installing OBS Studio. After unzipping, simply run regsvr32 /n /i:1 "obs-virtualcam\bin\32bit\obs-virtualsource.dll" from an elevated command prompt to install the virtual camera device. Use regsvr32 /u "obs-virtualcam\bin\32bit\obs-virtualsource.dll" to uninstall it again.