Skip to content

kaymyst/obs-virtual-cam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠ Unofficial support

You should really be using the integrated OBS Virtual Camera over this plugin. This is used as a stop-gap for things that don't yet work with the integrated Virtual Camera (like obsproject/obs-studio#3635 and opencv/opencv#19746). I do not plan on supporting this fork outside of necessary updates if OBS breaks the plugin. And will only do so until the aforementionned issue is fixed.

OBS-VirtualCam

CI Windows Release CI Windows On-Push

obs-virutalcam is a plugin for obs-studio , transforming the output video to a virtual directshow device.

Supported Platforms : Windows 10+

Supported OBS Studio version : 28.0.0+

Features

  • virtual output : A output plugin sink raw video & audio to directshow interface.
  • virtual filter output : A filter plugin sink obs source video to directshow interface.
  • virtual source : Four directshow Interfaces which can use in 3rd party software.

Install

The installer and compressed file can be found in Release Page. Using installer is recommended, but if you want to use compressed file to install manually , please follow these instructions.

  1. Unzip OBS-VirtualCam.zip and put it to your obs-studio install folder.
  2. Run CMD as Administrator and register 64bit directshow source
regsvr32 "C:\Program Files\obs-studio\bin\64bit\obs-virtualsource.dll"
  • If you want to Remove the directshow filter , you can also use regsvr32 to do this
regsvr32 /u "C:\Program Files\obs-studio\bin\64bit\obs-virtualsource.dll"

Register specific number of virtual cameras

Unregister then register 2 directshow camera (up to 4)

regsvr32 /u "C:\Program Files\obs-studio\bin\64bit\obs-virtualsource.dll" 
regsvr32 /n /i:"2" "C:\Program Files\obs-studio\bin\64bit\obs-virtualsource.dll"

Build

You first need to install cmake, Visual Studio, and build OBS project.
You must also download windows-deps-2023-04-12-x64 and windows-deps-qt6-2023-04-12-x64 from OBS Deps, then extract the zip as a folder of the same name and place them in <project_root>/obs-deps/

  • QTDIR (path): QT folder
  • DepsPath (path): FFmpeg folder in OBS dependencies package
  • LIBOBS_INCLUDE_DIR (path) : Libobs include folder
  • LIBOBS_LIB (filepath) : obs.lib path
  • OBS_FRONTEND_LIB (filepath): obs-frontend-api.lib path
  • PTHREAD_LIB (filepath): w32-pthread.lib path

ie:

cmake -S . -B build64 `
  -DQTDIR=<...>/obs-deps/windows-deps-qt6-2023-04-12-x64 `
  -DDepsPath=<...>/obs-deps/windows-deps-2023-04-12-x64 `
  -DLIBOBS_INCLUDE_DIR=<...>/obs-studio/libobs `
  -DLIBOBS_LIB=<...>/obs-studio/build64/libobs/RelWithDebInfo/obs.lib `
  -DOBS_FRONTEND_LIB=<...>/obs-studio/build64/UI/obs-frontend-api/RelWithDebInfo/obs-frontend-api.lib `
  -DPTHREAD_LIB=<...>/obs-studio/build64/deps/w32-pthreads/RelWithDebInfo/w32-pthreads.lib

Run msbuild: msbuild /m /p:Configuration=RelWithDebInfo ./build64/obs-virtualcam.sln

Donate

If you like this plugin, you can donate to the original author (Fenrirthviti) via Paypal.me

About

obs-studio plugin to simulate a directshow webcam (with autostart)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 73.1%
  • CMake 18.1%
  • C 7.8%
  • Other 1.0%