Giter Club home page Giter Club logo

node-virtualcam's Introduction

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 felixrieseberg/windows-build-tools#172 (comment). 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.

node-virtualcam's People

Contributors

letmaik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-virtualcam's Issues

Not able to see virtual webcam

I want to try this module so I followed following steps to try.

  1. npm install --global --production windows-build-tools --vs2015
  2. git clone https://github.com/letmaik/node-virtualcam
  3. cd node-virtualcam
  4. npm install
  5. Downloaded https://github.com/Fenrirthviti/obs-virtual-cam/releases/download/2.0.5/OBS-Virtualcam-2.0.5-Windows.zip
  6. After doing unzip I run with admin cmd
  7. regsvr32 /n /i:1 ".\OBS-Virtualcam-2.0.5-Windows\bin\32bit\obs-virtualsource.dll"
  8. I saw successful installed message in cmd
  9. node samples\sample.js
  10. Seeing message on cmd "virtual cam output started (1280x720 @ 30fps)"

but I am not seeing virtual webcam on google meet in video settings nor in VLC capture devices. How can I check and see if virtual webcam and this module is working fine?

macOS support

Hello!

As a macOS user, I'd love to be able to use Node.js to output a canvas to a virtual webcam device on the system. As OBS & SLOBS now both have a built-in virtual webcam for macOS, it'd be great to see this project support that.

how to send png image data?

electron offscreen

virtualcam.start(380, 400, 30, 10);
modalWindow.webContents.on('paint', (event, dirty, image) => {
    //image dirty  768 800

    // is working 
    //let data = new Uint8Array(image.resize({width:w,height:h}).toBitmap())
   
    //no working
    let buffer = new Uint8Array(image.resize({width:w,height:h}).toPNG());

    virtualcam.send(i, new Uint8Array(data))
})

please help me , thank you!

4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.