Ndi tools

From damionrashford/media-os · View interactive version

Ndi tools is an AI agent skill from the GitHub repository damionrashford/media-os. Use NDI SDK tools and CLIs (Vizrt/NewTek NDI): NDI Send, NDI Find, NDI Recorder, NDI Studio Monitor, NDI Bridge, NDI Discovery Service, NDI Benchmark, DistroAV (OBS plugin formerly obs-ndi). Source SRGB/HDR video over LAN via mDNS discovery + SpeedHQ codec on TCP/UDP 5960+, redistribute with Advance

How to use this skill

Skill file

NDI Tools

Context: $ARGUMENTS

Quick start

When to use


Step 1 — Install the SDK / Tools (pointer, not auto-install)

The NDI SDK installer requires an end-user licence acceptance step. This skill does NOT download it automatically. It prints the URL and install path for the user to accept manually:

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py install-sdk --platform <mac|win|linux>

Official downloads (always from ndi.video):

| Product | Purpose | URL |

|---|---|---|

| NDI SDK | Build against libndi (Send/Recv/Find/Bridge headers + libs) | https://ndi.video/for-developers/ndi-sdk/ |

| NDI Advanced SDK | Routing, multicast, compressed passthrough, access control | https://ndi.video/for-developers/ndi-advanced-sdk/ (sales gate) |

| NDI Tools | End-user apps: Studio Monitor, Test Patterns, Scan Converter, Bridge, Recorder, Screen Capture | https://ndi.video/tools/ |

Bundled CLIs after install (paths vary):

| CLI | Role | macOS path | Linux path |

|---|---|---|---|

| ndi-send | Send a file/pipe as an NDI source | /Library/NDI SDK for Apple/examples/bin/ | /usr/local/bin/ (SDK Linux) |

| ndi-find | List discoverable NDI sources | same | same |

| ndi-record | Record an NDI source to MOV (Advanced SDK) | same | same |

| ndi-benchmark | Measure encode/decode throughput | same | same |

| NDI Studio Monitor | Qt viewer | /Applications/NDI Studio Monitor.app | (Windows-native; Linux: no official; use DistroAV in OBS) |

| NDI Bridge | Cross-subnet relay | /Applications/NDI Bridge.app | Windows-native |

| NDI Discovery Service | Optional mDNS replacement | /Applications/NDI Discovery Service.app | Windows-native |

DistroAV (OBS plugin — successor to obs-ndi): https://github.com/DistroAV/DistroAV/releases.

Read CODE0 for the full CLI option tables.


Step 2 — Find NDI sources on the network

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py find --timeout 5

Wraps ndi-find and prints sources in name@address:port form. Needs multicast mDNS working on the LAN (UDP 5353); if blocked, use a Discovery Server:

NDI_DISCOVERY_SERVER=10.0.0.5:5960 \
  uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py find --timeout 5

Step 3 — Send a file / test pattern as an NDI source

Non-interactive wrapper around ndi-send:

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py send \
  --input video.mov --name "My Source" --group PUBLIC

For screen / capture-device input, use ffmpeg → NDI via DistroAV OBS output, or pipe from ffmpeg into ndi-send stdin (build-dependent).


Step 4 — Record an NDI source

Requires NDI Advanced SDK (ndi-record is Advanced-only):

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py record \
  --source "CAMERA1 (Studio A)" --output studioA.mov --duration 60

Output is MOV with SpeedHQ video + PCM audio. Use ffmpeg afterwards to transcode.

Without Advanced SDK, use OBS + DistroAV to record to MKV/MP4.


Step 5 — Preview sources (Studio Monitor)

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py studio-monitor

Launches the macOS/Windows app. Linux has no official Studio Monitor — use DistroAV inside OBS, or ffplay if your ffmpeg was built with libndi (rare — usually disabled due to redistribution).


Step 6 — Bridge NDI across subnets / WAN

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py bridge \
  --mode host --listen 0.0.0.0:5990

Modes: host (listen for incoming bridged clients) or join (connect out to a remote host). Required when mDNS cannot cross network segments. TCP only; works through NAT if the host side has a public port.


Step 7 — OBS integration (DistroAV)

DistroAV is the OBS plugin. Don't install "obs-ndi" — that repo is archived/stale. Install from DistroAV releases:

The plugin adds:

DistroAV requires the NDI runtime to be installed separately (from the NDI SDK installer or the standalone NDI Tools installer).


Step 8 — Benchmark network / CPU capacity

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py benchmark \
  --resolution 1920x1080 --fps 60 --duration 30

Wraps ndi-benchmark if available. Reports encode fps, decode fps, bandwidth.


Gotchas


Examples

Example 1 — "Find NDI sources on my network"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py find --timeout 5

If empty: check firewall (5353/udp), check NDI_GROUPS env, or use Discovery Server.

Example 2 — "Send a .mov file as an NDI source called 'Demo'"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py send \
  --input clip.mov --name Demo --loop

Example 3 — "Record 'Camera 1 (Main)' for 60s to MOV"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py record \
  --source "Camera 1 (Main)" --output cam1.mov --duration 60

Needs Advanced SDK.

Example 4 — "Install DistroAV so I can receive NDI inside OBS"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py install-sdk --platform mac
# Opens https://github.com/DistroAV/DistroAV/releases — accept licence, run .pkg

Example 5 — "Bridge NDI from studio to remote site"

On the studio machine (host / listener):

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py bridge \
  --mode host --listen 0.0.0.0:5990

On remote site (joiner):

uv run ${CLAUDE_SKILL_DIR}/scripts/ndictl.py bridge \
  --mode join --remote studio.example.com:5990

Troubleshooting

`ndi-find` returns zero sources even though I know one is broadcasting

`libndi.dylib: image not found`

DistroAV or the example CLIs can't find the NDI runtime.

`ndi-record: unknown command`

You have the Standard SDK, not Advanced. ndi-record is Advanced-only. Use OBS + DistroAV to record, or get the Advanced SDK.

Bridge mode can't connect through NAT

Host side needs a public IP/port. Use a reverse SSH tunnel or port-forward 5990 (or whichever listen port). Bridge is TCP-only.


Reference docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.