Record neighbor sender setup
This commit is contained in:
parent
beac84ae23
commit
2748badcff
6 changed files with 127 additions and 14 deletions
|
|
@ -8,6 +8,8 @@
|
|||
- Sender device discovery script.
|
||||
- Sender launch script with dry-run mode and per-source FFmpeg commands.
|
||||
- OBS receiver setup notes.
|
||||
- Neighbor sender deployment under `C:\Meta\LocalCastBridge`.
|
||||
- Madman's desktop start/stop launchers for the sender.
|
||||
|
||||
## Temporary
|
||||
|
||||
|
|
@ -18,9 +20,10 @@
|
|||
|
||||
## Next
|
||||
|
||||
1. Run `scripts/sender-discover.ps1` on the sender and record the actual device names.
|
||||
2. Smoke-test one video stream into OBS.
|
||||
3. Smoke-test each audio source independently.
|
||||
4. Tune SRT latency and FFmpeg buffering for the local network.
|
||||
5. Decide whether a small OBS scene/source generator is worth adding.
|
||||
6. Reconsider plugin/fork only if standard OBS Media Source cannot preserve the required behavior.
|
||||
1. Add OBS Media Sources on the receiver for ports `5100` and `5101`.
|
||||
2. Smoke-test the video endpoint in OBS.
|
||||
3. Smoke-test the Focusrite endpoint in OBS.
|
||||
4. Choose and validate a real system-output loopback device if desktop/game audio is required separately.
|
||||
5. Tune SRT latency and FFmpeg buffering for the local network.
|
||||
6. Decide whether a small OBS scene/source generator is worth adding.
|
||||
7. Reconsider plugin/fork only if standard OBS Media Source cannot preserve the required behavior.
|
||||
|
|
|
|||
79
docs/neighbor-sender-setup.md
Normal file
79
docs/neighbor-sender-setup.md
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
# 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
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
Stop launcher:
|
||||
|
||||
- runs `scripts\sender-stop.ps1`
|
||||
- stops FFmpeg processes whose command line contains `srt://`
|
||||
|
||||
## Audio Reality
|
||||
|
||||
FFmpeg DirectShow discovery currently exposes one audio input:
|
||||
|
||||
```text
|
||||
Analogue 1 + 2 (Focusrite USB Audio)
|
||||
```
|
||||
|
||||
This is a real audio source, but it is not the same thing as system-output loopback. The installed FFmpeg build exposes `dshow` and `gdigrab`, not `wasapi`, so capturing game/desktop output as its own source still needs a virtual or hardware loopback device such as a mixer/interface loopback, Stereo Mix if available, VB-Cable, or Voicemeeter.
|
||||
|
||||
Do not pretend desktop audio exists until a real capture device appears in:
|
||||
|
||||
```powershell
|
||||
ffmpeg -hide_banner -f dshow -list_devices true -i dummy
|
||||
```
|
||||
|
||||
|
|
@ -23,14 +23,16 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
- Sender-side video encoding is `h264_nvenc`.
|
||||
- Audio sources are separate SRT endpoints so OBS can mix them separately.
|
||||
- The repo contains scripts and docs, not a native OBS plugin.
|
||||
- Neighbor sender is deployed at `C:\Meta\LocalCastBridge` on `192.168.1.84`.
|
||||
- Madman's desktop has `Start LocalCast Sender.cmd` and `Stop LocalCast Sender.cmd`.
|
||||
|
||||
## Current Pressure
|
||||
|
||||
The useful next work is real hardware validation:
|
||||
|
||||
- confirm the sender FFmpeg build has `srt` and `h264_nvenc`
|
||||
- capture actual audio device names
|
||||
- add OBS listener Media Sources on this workstation
|
||||
- tune latency once streams are live in OBS
|
||||
- add a real loopback/virtual audio capture source if system-output audio is required
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
|
|
|
|||
29
scripts/install-sender-ffmpeg.ps1
Normal file
29
scripts/install-sender-ffmpeg.ps1
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
param(
|
||||
[string]$LogDirectory = "C:\Meta\logs"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
New-Item -ItemType Directory -Force $LogDirectory | Out-Null
|
||||
|
||||
$stdout = Join-Path $LogDirectory "localcast-ffmpeg-install.out.log"
|
||||
$stderr = Join-Path $LogDirectory "localcast-ffmpeg-install.err.log"
|
||||
|
||||
$winget = Get-Command winget -ErrorAction Stop
|
||||
$arguments = @(
|
||||
"install",
|
||||
"--id", "Gyan.FFmpeg",
|
||||
"--source", "winget",
|
||||
"--accept-package-agreements",
|
||||
"--accept-source-agreements",
|
||||
"--disable-interactivity"
|
||||
)
|
||||
|
||||
$process = Start-Process -FilePath $winget.Source -ArgumentList $arguments -RedirectStandardOutput $stdout -RedirectStandardError $stderr -PassThru -WindowStyle Hidden
|
||||
|
||||
[pscustomobject]@{
|
||||
ProcessId = $process.Id
|
||||
Stdout = $stdout
|
||||
Stderr = $stderr
|
||||
} | ConvertTo-Json
|
||||
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
{"ts":"2026-05-18T00:00:00+00:00","type":"decision","status":"ok","note":"Use FFmpeg SRT endpoints plus OBS Media Source for v1; OBS plugin or fork is not justified until standard ingest fails a concrete invariant."}
|
||||
|
||||
{"ts": "2026-05-18T09:55:45+00:00", "type": "verification", "status": "ok", "note": "State helper and sender dry-run produce valid repo status and SRT URLs with explicit ports for the example config."}
|
||||
{"ts": "2026-05-18T10:24:49+00:00", "type": "deployment", "status": "ok", "note": "Neighbor sender 192.168.1.84 has LocalCastBridge under C:\\Meta\\LocalCastBridge, FFmpeg 8.1.1 with SRT/h264_nvenc, and desktop start/stop launchers targeting receiver 192.168.1.66 ports 5100/5101."}
|
||||
|
|
|
|||
|
|
@ -46,10 +46,9 @@ active_subgoals:
|
|||
|
||||
current_status:
|
||||
summary: >
|
||||
First repo scaffold is in place with persistence machinery, architecture
|
||||
docs, example config, and sender scripts for FFmpeg/SRT/NVENC local OBS
|
||||
source delivery.
|
||||
First repo scaffold is in place and deployed to the neighbor sender at
|
||||
C:\Meta\LocalCastBridge. FFmpeg 8.1.1 with SRT and h264_nvenc is installed
|
||||
there, and Madman's desktop has start/stop launchers.
|
||||
next_action: >
|
||||
Run sender discovery on the husband's PC, fill config/localcast.json with
|
||||
actual receiver IP and audio device names, then dry-run sender-start before
|
||||
opening live streams into OBS.
|
||||
Add OBS listener Media Sources on the receiver for ports 5100 and 5101,
|
||||
then start the sender launcher and smoke-test video plus Focusrite audio.
|
||||
|
|
|
|||
Loading…
Reference in a new issue