Nodes Browser

ComfyDeploy: How comfyui-NDI works in ComfyUI?

What is 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.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for comfyui-NDI and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

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, you should click the update ndi list button in the menu.

    image

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)."