Extensions/comfyui-NDI
ComfyUI Extension

comfyui-NDI

Real-time input output node for ComfyUI by NDI. Leveraging the powerful linking capabilities of NDI, you can access NDI video stream frames and send images generated by…

By ningxiaoxiao·Created 3 years ago·Updated 27 days ago· 75
ningxiaoxiao/comfyui-NDI
Nodes
On cloudLocal install
Stars75
Updated27 days ago
Readme

comfyui-NDI

real-time input output node for comfyui by ndi.

Leveraging the powerful linking capabilities of NDI, you can access NDI video stream frames and send images generated by the model to NDI video streams.

For example, you can use your web camera as the input for your model, or capture the screen of a Painting software (such as PS) as input, and so on.

If you have any requirements, please let me know.

have fun!

about Ndi

https://ndi.video/

image

how to use

Download and install ndi tools

https://ndi.video/tools/ndi-core-suite/

Installation

Download the repository and unpack into the custom_nodes folder in the ComfyUI installation directory.

Or clone via GIT, starting from ComfyUI installation directory:

cd custom_nodes
git clone https://github.com/ningxiaoxiao/comfyui-NDI.git

You also need to install ndi-python

pip install ndi-python

[!WARNING] my python version is 3.10.9, If you are using ComfyUI_windows_portable, you should use ComfyUI_windows_portable\python_embeded\python.exe -m pip install ndi-python

Restart ComfyUI and the nodes are functional.

add node

Right-click on the NDI group to find options for receiving and sending images.

link ndi input

  1. You can use the Screen Capture from NDI tools to turn your camera feed into an NDI video resource.

  2. Add an NDI receive image node in ComfyUI and select your webcam node in the node settings.

  3. If you cannot find your NDI resources in the node, click the 🔴 NDI floating button in the bottom-right corner to open the NDI Source panel, then click Refresh. The panel will discover all NDI sources on the network and automatically sync them to the node's dropdown.

    NDI Source Panel

    Tip: Enable Auto in the panel for automatic 5-second polling. Click any source name to copy it to the clipboard.

look ndi output

If you want to see the real-time output of the model, just add an NDI send image node and connect it to the image output. You can then view an NDI resource named ComfyUI. You can use a software called Studio Monitor from NDI tools to check the resources available on the current network.

Example

Screen Capture

  1. Start the Screen Capture in NDI Tools.

  2. Set the region of interest.

image

webcam input

  1. Start the Screen Capture in NDI Tools.

  2. In the "Webcam Video Source," locate your webcam.

image

  1. In the ndi reciveimage ComfyUI node, you can now find the NDI source named "your-pc-name(your-webcam-name)."