-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_obs.bat
More file actions
70 lines (65 loc) · 1.97 KB
/
install_obs.bat
File metadata and controls
70 lines (65 loc) · 1.97 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
61
62
63
64
65
66
67
68
69
70
@echo off
echo ============================================================
echo OBS Studio Installer for Virtual Webcam FPS Controller
echo ============================================================
echo.
REM Check if winget is available
winget --version >nul 2>&1
if %errorlevel% neq 0 (
echo Winget not found. Trying Chocolatey...
goto :try_choco
)
echo Installing OBS Studio using winget...
echo.
winget install --id OBSProject.OBSStudio -e --silent
if %errorlevel% equ 0 (
echo.
echo ============================================================
echo OBS Studio installed successfully!
echo ============================================================
echo.
echo Please RESTART your computer for the virtual camera driver to work.
echo After restart, run: python virtual_webcam_fps.py
echo.
pause
exit /b 0
)
:try_choco
REM Check if chocolatey is available
choco --version >nul 2>&1
if %errorlevel% neq 0 (
echo Neither winget nor chocolatey found.
goto :manual_install
)
echo Installing OBS Studio using Chocolatey...
echo.
choco install obs-studio -y
if %errorlevel% equ 0 (
echo.
echo ============================================================
echo OBS Studio installed successfully!
echo ============================================================
echo.
echo Please RESTART your computer for the virtual camera driver to work.
echo After restart, run: python virtual_webcam_fps.py
echo.
pause
exit /b 0
)
:manual_install
echo.
echo ============================================================
echo Automatic installation not available
echo ============================================================
echo.
echo Please install OBS Studio manually:
echo.
echo 1. Opening download page in your browser...
echo 2. Download and run the installer
echo 3. Restart your computer after installation
echo 4. Run: python virtual_webcam_fps.py
echo.
start https://obsproject.com/download
echo.
pause
exit /b 1