-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
60 lines (55 loc) · 1.54 KB
/
run.bat
File metadata and controls
60 lines (55 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
echo ============================================================
echo Virtual Webcam FPS Controller
echo ============================================================
echo.
:: Check if Python is installed
python --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Python is not installed!
echo Download from: https://www.python.org/downloads/
echo.
pause
exit /b 1
)
:: Check if requirements are installed
echo Checking dependencies...
python -c "import cv2, pyvirtualcam, keyboard" >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo.
echo Installing dependencies...
pip install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Failed to install dependencies
echo.
pause
exit /b 1
)
)
echo.
echo Starting virtual webcam...
echo Keep this window open!
echo.
echo Controls:
echo + or = : Increase FPS by 1
echo - : Decrease FPS by 1
echo P : Toggle preview
echo Q : Quit (when preview is on)
echo Ctrl+Q+P : Quit (when preview is off)
echo Ctrl+Shift+P : Show preview (when preview is off)
echo.
echo ============================================================
echo.
python virtual_webcam_fps.py
if %ERRORLEVEL% NEQ 0 (
echo.
echo ============================================================
echo ERROR: Failed to start
echo ============================================================
echo.
echo Install OBS Studio: https://obsproject.com/download
echo Then run this again.
echo.
pause
)