https://github.com/der3318/screen-to-virtualcam
Python Scripts - Streaming from Screen to Webcam
https://github.com/der3318/screen-to-virtualcam
screen-recorder virtualcamera
Last synced: 6 months ago
JSON representation
Python Scripts - Streaming from Screen to Webcam
- Host: GitHub
- URL: https://github.com/der3318/screen-to-virtualcam
- Owner: der3318
- License: gpl-2.0
- Created: 2021-10-24T11:32:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-28T14:30:25.000Z (over 4 years ago)
- Last Synced: 2025-01-13T18:33:40.501Z (over 1 year ago)
- Topics: screen-recorder, virtualcamera
- Language: Python
- Homepage:
- Size: 67.7 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 📷 Screen to Virtual Webcam

[](https://github.com/BoboTiG/python-mss)
[](https://github.com/letmaik/pyvirtualcam)


Python script bridging the stream from screen to virtual webcam.
### 📽️ Demo
| using Android's camera as PC's webcam (with the help of [scrcpy tool](https://github.com/Genymobile/scrcpy)) |
| :-: |
|
|
| using real-time game character as PC's webcam |
| :-: |
|
|
| using online/offline video as PC's webcam |
| :-: |
|
|
### 🕹️ Get Started
#### 0️⃣ Install Supported Virtual Cameras
Follow the [guides suggested by pyvirtualcam](https://github.com/letmaik/pyvirtualcam#supported-virtual-cameras), or the steps below (will install [UnityCapture](https://github.com/schellingb/UnityCapture#installation) for Windows):
| Step | Description |
| :-: | :- |
| #1 | download and unzip [ScreenToVirtualcam.zip](https://github.com/der3318/screen-to-virtualcam/releases/download/2021.11.21/ScreenToVirtualcam.zip) |
| #2 | run `UnityCapture/Install/Install.bat` in admin console to register the DirectShow Filter to be available in Windows programs |
#### 1️⃣ Start Streaming
Using Portable Version (Windows 10/11 AMD64)
| Step | Description |
| :-: | :- |
| #1 | download and unzip [ScreenToVirtualcam.zip](https://github.com/der3318/screen-to-virtualcam/releases/download/2021.11.21/ScreenToVirtualcam.zip) |
| #2 | run `launch.bat` and input preferred parameters |
| #3 | select `Unity Video Capture` (or other vcam) from the apps using webcam |
Using Python Interpreter
| Step | Description |
| :-: | :- |
| #1 | install python3 |
| #2 | pip-install the dependencies listed in `requirements.txt` (e.g., mss, Pillow, opencv-python, opencv-python, rich) |
| #3 | invoke `screen2vcam.py` with preferred parameters |
| #4 | select `Unity Video Capture` (or other vcam) from the apps using webcam |
#### 2️⃣ Uninstall
| Step | Description |
| :-: | :- |
| #1 | run `UnityCapture/Install/Uninstall.bat` in admin console to unregister |
| #2 | simply remove all the unzipped binaries |