https://github.com/letmaik/node-virtualcam
🎥 Send frames to a virtual camera from Node.js
https://github.com/letmaik/node-virtualcam
nodejs virtual-camera
Last synced: 12 months ago
JSON representation
🎥 Send frames to a virtual camera from Node.js
- Host: GitHub
- URL: https://github.com/letmaik/node-virtualcam
- Owner: letmaik
- License: gpl-2.0
- Created: 2020-05-27T21:28:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-06T17:23:31.000Z (about 6 years ago)
- Last Synced: 2025-06-01T12:12:23.154Z (about 1 year ago)
- Topics: nodejs, virtual-camera
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 61
- Watchers: 6
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
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](https://stackoverflow.com/questions/21658832/npm-install-error-msb3428-could-not-load-the-visual-c-component-vcbuild-ex#comment91997415_39235952) on why `--vs2015` is needed.
Install/build package:
```sh
npm install
```
Run sample:
```sh
node samples\sample.js
```
The package uses [obs-virtual-cam](https://github.com/Fenrirthviti/obs-virtual-cam/releases) 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.