Ndi docs

From damionrashford/media-os · View interactive version

Ndi docs is an AI agent skill from the GitHub repository damionrashford/media-os. Search and fetch official NDI documentation from docs.ndi.video (Vizrt, formerly NewTek NDI): SDK landing, release notes, port numbers (mDNS 5353, messaging 5960, streams 5961+), HDR spec (PQ and HLG), SDK vs Advanced SDK differences, NDI 6 features (native HDR, HX3, Agilex 7, NDI Bridge), plus Dist

How to use this skill

Skill file

NDI Docs

Context: $ARGUMENTS

Quick start

When to use


Step 1 — Know the page catalog

The script only works against a fixed list of known docs.ndi.video pages plus the DistroAV GitHub README. Get the list:

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py list-pages

Common picks:

| Question | Page |

|---|---|

| "Which NDI SDK do I need?" | sdk-landing |

| "What changed in NDI 6?" | tech-ndi6 |

| "Release notes / version history" | sdk-release-notes |

| "Which ports does NDI use?" | sdk-port-numbers |

| "Does NDI support HDR? PQ / HLG?" | sdk-hdr |

| "SDK vs Advanced SDK differences" | faq-sdk-vs-advanced |

| "OBS + NDI setup" | distroav |

| "NDI docs root / landing" | docs-root |

Read CODE0 for the full catalog + use-cases.


Step 2 — Search first

When the user names an NDI feature / port / flag / function, search across all pages:

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "multicast" --limit 5

When you know the page, scope it (faster, less noise):

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "5960" --page sdk-port-numbers

Output format per hit:

--- <page>:<line> — <nearest heading>
<canonical URL with anchor>
<±3 lines of context>

Use --format json for machine-parseable output.

First run downloads the page; subsequent runs hit the local cache at ~/.cache/ndi-docs/.


Step 3 — Read one section in full

When a hit points to a specific topic and you want the whole block:

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py section --page sdk-port-numbers --id discovery

--id accepts an anchor id OR a heading keyword fallback.


Step 4 — Fetch a whole page

Rarely needed; search/section are almost always better.

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py fetch --page tech-ndi6

Pair with --format json for structured output.


Step 5 — Prime the cache (optional)

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py index

Fetches every known page into ~/.cache/ndi-docs/. Override with export NDI_DOCS_CACHE=/path.

Clear: uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py clear-cache.


Gotchas


Examples

Example 1 — "What ports does NDI need open on the firewall?"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "port" --page sdk-port-numbers

Example 2 — "Does NDI support HDR PQ?"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "PQ" --page sdk-hdr
uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py fetch --page sdk-hdr

Example 3 — "What's the difference between the SDK and the Advanced SDK?"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py fetch --page faq-sdk-vs-advanced

Example 4 — "What did NDI 6 add?"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "NDI 6" --page tech-ndi6 --limit 10

Example 5 — "OBS + NDI setup steps"

uv run ${CLAUDE_SKILL_DIR}/scripts/ndidocs.py search --query "install" --page distroav

Troubleshooting

Error: `unknown page: foo`

Cause: Name isn't in the catalog.

Solution: Run list-pages for valid names.

Error: `urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]`

Cause: macOS Python missing certs.

Solution: Run /Applications/Python\ 3.x/Install\ Certificates.command or set SSL_CERT_FILE. Don't disable SSL verification.

Search returns zero hits

Cause: Term doesn't exist on the selected page or docs.ndi.video moved the page.

Solution: Drop --page to search all pages. Try broader query. Some details live in the DistroAV README rather than docs.ndi.video.

Cache stale after an NDI SDK release

Solution: clear-cache then index.


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.