Skip to main content
NDI

NDI Sender

How to send video and audio from Unreal over your network with NDI, including alpha.

Last updated About 4 hours ago

This article covers sending video and audio from Unreal Engine over your network with NDI: its performance, the sender settings, the three ways to set up a sender, and how to receive it in OBS Studio and Resolume. To bring NDI into Unreal, see NDI Receiver; for fixes and the NDI Runtime, see NDI Troubleshooting.

Overview

NDI is a protocol which allows you to share a video (including alpha channel) and audio over-the-network at extremely low latency (under 20 milliseconds) (including over the internet using NDI Bridge).

It is supported by a wide range of broadcast and creative media software like OBS Studio, VMIX, Wirecast, Resolume, TouchDesigner etc.

We have integrated NDI into a wide range of Unreal inputs and outputs to suit a wide variety of different media workflows and can be used in Editor, Runtime or Packaged modes:

  • You can live output from any of the OWL Capture formats (Viewport, Cinecam, 360 Camera) direct to NDI using our Media Output Wizard.

  • You can live input NDI into an Unreal Media Plate, Plane or Material using our Media Input Wizard.

  • If you want to use NDI with Unreal native tools like nDisplay, Media Capture, Composure, Media Plate etc. you can use our Unreal Media Framework integration.

  • If you want to send or receive an Unreal Render Target, you can do so using the OWL NDI Sender/ Receiver Manager.

You can live-stream from Unreal Engine via NDI either from a Render Target or from Unreal's Media Framework which can be used with nDisplay, Composure, Media Capture and other useful tools.

Performance

For stability in your NDI output and to make receiving easier we recommend you set a fixed Frame Rate in your Unreal Project Settings, or set Cadence to Custom on the OWL NDI Output.


You need to have headroom in your actual Unreal FPS above what you select here:

  • For sending NDI, we currently only support the NDI SpeedHQ codec which offers extremely low-latency (about 20 milliseconds) but a number of drawbacks:

    • It is 8bit color, or 10bit with the P216 format, and SDR only.

    • It is compressed on the CPU, so high resolutions, high frame rates or several outputs at once add CPU load.

    • Alpha channel is supported via BGRA, or P216 on the OWL NDI Output.

    • It requires extremely high bitrate and bandwidth because it performs very little compression on the frames (that’s how it achieves such low latency) so you need a very stable connection (normally ethernet) to run it with stability.

    • It has visual artifacts because it sacrifices complex compression techniques for speed:

      • It has no temporal dimension, so fast differences between frames can create artifacts.

      • Due to the lack of compression it still can lack the bitrate budget to encode complex foliage, water etc.

      • UYVY uses 4:2:2 chroma subsampling, so the color information is at half the resolution of the brightness, which can create jaggedness around fine lines.

  • The real benefits of SpeedHQ are therefore:

    • Speed: its latency is very low for an over-the-network protocol.

    • Compatibility: It is well supported across media software.

    • Multimedia: It offers video, audio and alpha channel support.

    • Always-On: With the NDI Sender Manager, as soon as the output is set to Active it will keep streaming, you don’t have to Start/ Stop like with the OWL Media Output Encoder.

Sender Settings

  • There are three ways to send NDI from Unreal, each set up as shown further down. They all share these settings:

Active

  • Active: A tickbox you can use to turn your Sender on/ off. This is only present in the OWL NDI Sender Manager.

    • If you are not using the Sender you should switch it off to save CPU resources, since encoding is done via the CPU.

    • If you leave this Active then the Sender will keep sending in the background.

Capture Audio

  • Capture Audio: Select this if you want to send audio as well as video.

    • By default this will be your Viewport audio but you can set an audio Submix instead below.

Name

  • Name/ Standalone Name: This is the name you will see in your NDI receiver software.

    • If you are using Unreal in Standalone mode then you can set this value.

Video Conversion Format

  • Video Conversion Format: The NDI Sender sends with the SpeedHQ codec, in 8bit color (BGRA, UYVY) or 10bit color (P216).

    • All three formats are SDR (Rec.709) and are compressed by NDI’s SpeedHQ codec.

    • Bit depth: 8-bit (BGRA, UYVY) has 256 levels per color, so smooth gradients such as skies, fog and dark scenes can show banding. 10-bit (P216) has 1,024 levels, so gradients stay smooth.

    • Color detail: 4:4:4 (BGRA) keeps color for every pixel. 4:2:2 (UYVY, P216) keeps color for every second pixel across, which softens fine colored detail such as small text, thin lines and chroma-key edges. Brightness keeps full detail in all three.

    • Alpha: BGRA alpha is 8-bit. On the OWL NDI Output, P216 sends alpha as a full-resolution 16-bit plane (PA16). UYVY has no alpha.

    • BGRA: 8-bit, 4:4:4 color, so better colors than UYVY. Carries alpha. Its frames are twice the size of UYVY before NDI compresses them.

    • UYVY: 8-bit, 4:2:2 color, so half the color resolution of BGRA and the smallest frames. No alpha.

    • P216 (10-bit): 4:2:2 color like UYVY, but 10-bit, so gradients are smoother. Its frames are twice the size of UYVY before NDI compresses them. Needs NDI 6 receivers.

      • On the OWL NDI Output, tick Output Alpha to send alpha with it (sent as PA16, 10-bit with alpha).

      • On the NDI Sender Manager, P216 sends no alpha, and the Source Render Target needs a float format such as RGBA16f.

    • Color Range: SDR only.

Source Render Target

  • Source Render Target: This is only present in the OWL NDI Sender Manager.

    • It is a Render Target from a Camera or Unreal output that will be encoded to NDI.

    • If you are using the Unreal Media Framework integration, the Render Target will be selected automatically.

Audio Submix

  • Audio Submix (OWL NDI Output, grayed until Capture Audio is ticked) or Submix (NDI Sender Manager, under Advanced): This is to select an audio Submix if you would prefer to send this instead of your Viewport audio.

Output Alpha

  • Output Alpha (OWL NDI Output only): sends transparency. BGRA or P216 only. Also tick Alpha Output in Project Settings.

Fix Gamma

  • Fix Gamma (OWL NDI Output only): on by default, so NDI matches your viewport. Untick it to send the raw linear values, for a feed you color-manage later. A camera with OpenColorIO on ignores it.

Cadence

  • Cadence (OWL NDI Output only): Every Frame (default) sends every frame the camera renders. Match Other Outputs uses the rate the camera’s other outputs ask for. Custom sends at the Capture Frame Rate you pick (24 to 120, plus NTSC rates), and receivers are told that rate.

Output Size

  • Output Size (OWL NDI Output only): leave at 0, 0 to send at the camera’s size, or set a fixed size.

Cluster-Coherent Timecode

  • Cluster-Coherent Timecode (OWL NDI Output only): for nDisplay. Outputs of the same frame carry the same timecode across the cluster. Pairs with Cluster-Coherent Frame Selection on the OWL NDI Media Source.

Change Settings While Sending

  • Output Alpha, Fix Gamma, Cadence and Cluster-Coherent Timecode change while sending. To change the format, name, priority or audio, press Stop, then Start.

Set Up with the Media Output Wizard

You can use this method to output from any of the OWL Capture formats to NDI:

  1. In the Off World Live Unreal Editor drop down select the Media Output Wizard:

  2. Select the settings you need and then click Create. If you want alpha channel, choose Yes for it in the wizard, and tick Alpha Output in Project Settings > Rendering > Default Settings:

  3. The wizard sets the NDI output to P216 (10-bit), which needs NDI 6 receivers. For NDI 5 or older receivers, set Video Conversion Format to UYVY on the OWL NDI Output asset (or on the NDI Sender Manager for Viewport Capture).

  4. For an OWL Cinecam or 360 Camera, press Start next to the new output in the camera's Media Outputs. If you go to your NDI Receiver you will now see the output you have created.

  5. You will also have added an OWL Capture Actor of which you can use the Details panel to modify your content. For an OWL Cinecam or 360 Camera the NDI output is an OWL NDI Output asset in /Game/MediaOutputWizard/, listed in the camera's Media Outputs; for Viewport Capture it is an NDI Sender Manager Actor:

Set Up with Unreal's Media Framework

You can use this method to output from any of the Unreal creative tools (nDisplay, Composure, Media Capture etc.) to NDI:

  1. Right click in the Unreal Engine Content Browser and select OWL NDI Output:

  2. A new OWL NDI Output asset is created in the Content Browser:

  3. Double click the asset to set the features you need:

    • Number of Texture Buffers: an Unreal Media Output setting, from 1 to 8. Leave it at the default.

    • Has Priority enables the sender to take precedence if multiple senders try to use the same name.

      • This is useful when you want this sender to be the main or fallback sender.

  4. Now in Unreal utilities like nDisplay you can go to the Media Output dropdown and select the OWL NDI Output as a Media Output option:

  5. You need to create a new OWL NDI Output asset for each separate NDI output you want to send.

Set Up with the NDI Sender Manager

You can use this method if you want to output a Render Target and Audio Submix via NDI.

  1. Find the OWL NDI Sender Manager Actor in the Place Actors panel and drag it into your scene.

  2. In World Outliner select OWLNDISenderManager so it opens in your Details panel, add a new Array element using the + sign and set the features you need.

  3. You will need to select/ create a Render Target by clicking the drop down next to the thumbnail:

  4. When you tick Active your NDI feed will start sending out over the network.

  5. In your NDI receiver program, just select the name you have given your feed and your video & audio will appear.

  6. If you want to output more Render Targets, just add another Array element.

  7. You can use Blueprints to switch the Render Target which can be useful for live-editing between different camera angles while sending to a single NDI receiver.

Send to OBS Studio

  • To receive NDI in OBS Studio you need the DistroAV plugin installed.

  • OBS receives NDI in 8-bit color, with alpha channel and audio. The Media Output Wizard sets P216 (10-bit), so set Video Conversion Format to BGRA on the OWL NDI Output (or UYVY if you don’t need alpha).

  1. Ensure your NDI Sender is active in Unreal and Capture Audio is ticked if you need.

  2. In OBS, click the + button in Sources and select NDI Source:

  3. In the window that opens you should automatically see your NDISender. If you have more than one, you can use the drop down to select between them:

  4. If you are sending alpha channel, it will automatically be picked up in OBS. Use BGRA and tick Output Alpha on the OWL NDI Output.

  5. If you are sending audio, it will automatically be picked up in your OBS audio mixer.

Send to Resolume

Blueprint: Toggle NDI Outputs from Two OWL Cinecams

  • You will need to add your Render Targets into the Set members nodes:

Next Steps

  • To bring NDI into Unreal, see NDI Receiver.

  • If something isn't working, or to share NDI in a packaged app (including the NDI Runtime), see NDI Troubleshooting.