An simple addon to obs-zoom-to-mouse.lua that allows you to control the zoom location from a remote machine.
The idea is you have a dual box setup, where OBS is installed on one machine, but you are actually streaming the display of another machine (via NDI/CaptureCard/etc.). You want to zoom in OBS so that the capture source looks bigger, but you want the zoom to track the mouse on your non-obs machine, so that as you move it around doing your work/game/whatever, OBS on the other machine will be showing a zoomed in version of whatever is around the mouse.
Built with OBS v30.0.0 and luajitsocket
In theory works on Windows, Linux, and Mac
- Download the socket support version of obs-zoom-to-mouse.lua (from the special branch)
- Download the additional ljsocket.lua file (from this repo)
- Move the
ljsocket.lua
file next toobs-zoom-to-mouse.lua
(They must be in the same folder, but you don't need to addljsocket.lua
to OBS) - Follow the setup instructions from the obs-zoom-to-mouse.lua readme to add the zoom script to OBS
- Enable
Allow any zoom source
- Select the
Zoom Source
that corrisponds to your non-obs machine - Enable
Set manual source position
- Set the X/Y/Width/Height settings to match the position of the source on your non-obs machine
- Enable
Enable remote mouse listener
- Download the latest release of
obs-zoom-to-mouse-remote
- Copy the download to your non-obs machine
- Run
obs-zoom-to-mouse-remote
using the following command:obs-zoom-to-mouse-remote.exe --host <OBS-PC-Host>
- OBS-PC-Host is the ip address or host name of the OBS machine that is running the socket server script
Note: You may need to add the socket port to your firewall
- See obs-zoom-to-mouse.lua readme for using the OBS script
- Run
obs-zoom-to-mouse-remote.exe --help
to see command line options- --port The socket port to use. This must match the port specified in the
obs-zoom-to-mouse.lua
script settings - --host The hostname/ip of the machine running
obs-zoom-to-mouse.lua
- --delay How often the mouse position is sent to the socket (in milliseconds). This should match the delay specifed in the
obs-zoom-to-mouse.lua
- --port The socket port to use. This must match the port specified in the
- Press the
toggle zoom
hotkey on OBS machine - Move the mouse on your non-OBS machine
- Press
CTRL + C
to exit (or close the window)
- Clone this repo
- Run
npm install
- Run
node src/server.js
- Clone this repo
- Run
npm install
- Run
npm install -g pkg
- Run
npm run package
- Packages will be built to
/dist
Want to support me staying awake long enough to add some more features?