Skip to content

Instantly share code, notes, and snippets.

@Niktendo
Last active November 26, 2023 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niktendo/c12246e7c25af42c56d0275735df7adf to your computer and use it in GitHub Desktop.
Save Niktendo/c12246e7c25af42c56d0275735df7adf to your computer and use it in GitHub Desktop.
Virtual Cam Launcher for scrcpy's webcam feature
@ECHO OFF
title Virtual Cam Launcher - by Niktendo @2023
adb disconnect
adb kill-server
rem taskkill /f /im scrcpy.exe
taskkill /f /im obs64.exe
cls
set /P c=Pairen [J/N]?
set /P ip=IP und Port eingeben:
if /I "%c%" EQU "J" adb pair %ip%
if /I "%c%" EQU "N" adb connect %ip%
start /min scrcpy.exe --video-source=camera --camera-size=3840x2160 --no-audio --orientation=flip180 --camera-fps=60 --window-borderless
cd /d "%PROGRAMFILES%\obs-studio\bin\64bit"
start obs64.exe --startvirtualcam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment