-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.bat
More file actions
24 lines (21 loc) · 966 Bytes
/
demo.bat
File metadata and controls
24 lines (21 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
REM demo.bat - one-click NDI demo for NDIForPython.
REM Launches the send_example.py sender (animated 1280x720 BGRA gradient,
REM visible on the LAN as "NDIForPython demo") plus the cv2 preview, which
REM discovers the source and shows it live.
REM
REM Press Ctrl+C in either cmd window (or 'q' / ESC in the cv2 preview) to stop.
setlocal
chcp 65001 >nul
set PYTHONIOENCODING=utf-8
start "NDIForPython sender" cmd /K "python ""%~dp0send_example.py"""
REM 2-second pause without depending on `timeout` (Git-Bash users have a
REM Unix `timeout` first in PATH that rejects /t).
ping -n 3 127.0.0.1 >nul
start "NDIForPython preview (cv2)" cmd /K "python ""%~dp0preview_example.py"""
echo.
echo Two windows opened: sender + cv2 preview.
echo You should see the animated gradient appear in the preview within a second.
echo Other NDI receivers on the LAN (TouchDesigner, OBS, vMix, ...) will also
echo see the source named "NDIForPython demo".
endlocal