Mimir/docs/neighbor-sender-setup.md
2026-05-18 12:38:30 +01:00

131 lines
3.9 KiB
Markdown

# Neighbor Sender Setup
## Host
- Sender: `192.168.1.84` / `DESKTOP-M9FTRLL`
- SSH: `ssh "madman's lullaby@192.168.1.84"`
- Install root: `C:\Meta\LocalCastBridge`
- Receiver OBS workstation: `192.168.1.66`
## Installed State
- FFmpeg installed through winget as `Gyan.FFmpeg 8.1.1`.
- FFmpeg alias path observed:
- `C:\Users\Madman's Lullaby\AppData\Local\Microsoft\WinGet\Links\ffmpeg.exe`
- NVIDIA GPU observed:
- `NVIDIA GeForce RTX 4060 Ti`
- driver `591.86`
- FFmpeg reports:
- `srt` input/output protocol
- `h264_nvenc` encoder
- Voicemeeter installed through winget as `VB-Audio.Voicemeeter`.
- SoundVolumeView installed through winget as `NirSoft.SoundVolumeView`.
## Sender Config
Live local config on the sender:
```text
C:\Meta\LocalCastBridge\config\localcast.json
```
Current endpoints:
```text
video: srt://192.168.1.66:5100?mode=caller&latency=120000
focusrite srt://192.168.1.66:5101?mode=caller&latency=120000
system srt://192.168.1.66:5102?mode=caller&latency=120000
```
Current video capture size is `1024x768`, matching the live `WinDisc` display
reported by the sender. Do not force `1920x1080` unless Windows reports a real
desktop of that size; `gdigrab` exits when the requested capture rectangle is
larger than the current desktop.
OBS on the receiver should add listener-mode Media Sources:
```text
video: srt://0.0.0.0:5100?mode=listener&latency=120000&timeout=5000000
focusrite srt://0.0.0.0:5101?mode=listener&latency=120000&timeout=5000000
system srt://0.0.0.0:5102?mode=listener&latency=120000&timeout=5000000
```
As of `2026-05-18`, the receiver OBS scene collection at
`%APPDATA%\obs-studio\basic\scenes\Untitled.json` has these sources added to
the current scene:
```text
Neighbor PC - Video
Neighbor PC - Focusrite
Neighbor PC - System Audio
```
The pre-edit backup is next to the scene file with a
`Untitled.json.localcast-backup-*` suffix.
## Desktop Launchers
Madman's desktop has:
```text
C:\Users\Madman's Lullaby\Desktop\Start LocalCast Sender.cmd
C:\Users\Madman's Lullaby\Desktop\Stop LocalCast Sender.cmd
```
Start launcher:
- runs `scripts\sender-start.ps1`
- uses `config\localcast.json`
- passes the winget FFmpeg alias path explicitly
- starts Voicemeeter
- sets Windows default render to `Voicemeeter VAIO3 Input`
- sets Windows default capture to `Voicemeeter Out B3`
- writes FFmpeg logs under `C:\Meta\LocalCastBridge\logs`
Stop launcher:
- runs `scripts\sender-stop.ps1`
- stops FFmpeg processes whose command line contains `srt://`
- restores Windows default render to `Focusrite USB Audio\Device\Speakers\Render`
- closes `voicemeeter_x64.exe`
## Audio Reality
FFmpeg DirectShow discovery originally exposed one hardware audio input:
```text
Analogue 1 + 2 (Focusrite USB Audio)
```
After Voicemeeter install, FFmpeg exposes virtual loopback inputs including:
```text
Voicemeeter Out B3 (VB-Audio Voicemeeter VAIO)
```
LocalCastBridge uses that device as `system-loopback`.
Do not rename the loopback in config unless the replacement appears in:
```powershell
ffmpeg -hide_banner -f dshow -list_devices true -i dummy
```
If Madman cannot hear local audio while LocalCast is running, open Voicemeeter
and set hardware output `A1` to the intended physical device, probably
Focusrite speakers/headphones. The stream capture itself is independent of OBS.
## SSH Testing Trap
Do not use an SSH-launched sender process as proof that video capture is broken.
When launched from SSH, `gdigrab` sees the remote Windows session desktop and
can fail with `Failed to capture image (error 5)`. The sender video process
must be launched from Madman's interactive desktop, normally through:
```text
C:\Users\Madman's Lullaby\Desktop\Start LocalCast Sender.cmd
```
Attached SSH probes are still useful for audio devices and SRT reachability.
For example, an attached FFmpeg probe successfully transmitted audio to OBS on
ports `5101` and `5102`.