🎥 Turn local videos or images into a virtual webcam
Powered by Python + FastAPI + React + UnityCapture
This project is intended for educational and experimental purposes only.
It must NOT be used for:
- Fraud, impersonation, or deception
- Bypassing age, identity, or security verification systems
- Any activity that violates laws or platform policies
- By using this project, you agree to comply with all applicable laws and regulations.
Users are solely responsible for how they use this software.
The author disclaims all liability for any misuse or damages.
- 📷 Use local video/image as webcam input
- ⚡ FastAPI backend (high performance)
- 🌐 React + Vite frontend
- 🎮 Playback controls (seek, pause, speed)
- 🔌 Virtual camera via pyvirtualcam
- 🧠 Extensible (AI processing, face swap, etc.)
virtual_cam/
├── backend/
│ ├── api_server.py # FastAPI backend
│ └── core.py # Virtual camera logic
│
├── frontend/
│ ├── public/
│ ├── src/
│ ├── index.html
│ ├── package.json
│ └── vite.config.ts
│
└── README.md
- Python 3.9+
- Node.js 18+
- Windows (required for virtual camera driver)
pip install fastapi uvicorn opencv-python numpy pyvirtualcam
This project relies on a virtual camera driver.
👉 Repository: UnityCapture
👉 Or open: https://github.com/NevinRock/UnityCapture
- Download the repository (ZIP or clone)
- Go to:
Install/
- Run:
Install.bat
- Run as Administrator
- Restart your computer after installation
Run:
import pyvirtualcam
cam = pyvirtualcam.Camera(1280, 720, 30)
print(cam.device)
Expected output:
Unity Video Capture
cd backend
python api_server.py
Server runs at:
http://127.0.0.1:5566
cd frontend
npm install
npm run dev
Click:
Start Virtual Camera
You can:
- Click to select a file
- Drag & drop a file path
- Seek timeline
- Pause / resume
- Adjust playback speed
Select:
Unity Video Capture
in:
- Browser (WebRTC)
- OBS
- Video apps
- This uses DirectShow, not all apps support it
- Some platforms may reject virtual cameras
- Performance depends on CPU/GPU and video resolution
- Real-time face swapping
- GPU acceleration
- Better anti-detection camera simulation
- Multi-camera support
MIT License