Skip to main content
Spout

Spout Sender

How to send video from Unreal to other apps on the same machine with Spout, including alpha.

Last updated About 4 hours ago

This article covers sending video from Unreal Engine to other programs on the same PC with Spout: its performance, the sender settings, the three ways to set up a sender, and how to receive it in OBS Studio, TouchDesigner and Resolume. To bring Spout into Unreal, see Spout Receiver; for fixes, see Spout Troubleshooting.

Overview

Spout is a protocol which allows you to share a video texture being rendered on your GPU between two (or more) software programs running on the same machine.

This means it doesn’t need encoding, so it adds at most 1 frame of delay, with no compression and very little CPU load.

Spout is supported by a wide range of creative software like OBS Studio, TouchDesigner, Resolume, MadMapper, LightAct, Assimilate FX etc.

We have integrated Spout 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 Spout using our Media Output Wizard.

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

  • If you want to use Spout 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 Spout Sender/ Receiver Manager.

You can live-stream from Unreal Engine via Spout 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

  • Spout is very light on your project, because it shares the pixels already on your GPU instead of encoding them. Each output still copies the image every frame, so many outputs or very high resolutions add some GPU time.

  • The main downside of Spout is that it’s limited to a single machine, because the different software programs are literally sharing the video texture that is being rendered on the GPU.

  • Spout has no resolution cap so this will only be determined by what your GPU can render at your target resolution.

  • Spout has no FPS cap so you can share very high FPS outputs (>120FPS) with Cadence on Every Frame.

  • Spout can send up to 32bit color from Unreal.

    • An OWL Spout Output sends at its Bit Depth setting: 8-bit (BGRA) by default, or 10-bit, 16-bit float or 32-bit float. Your Spout Receiver must read the same format. Float depths carry linear color, so Fix Gamma does not apply to them. On a camera, 32-bit float only adds detail if the camera's Render Target Format is also RGBA32f.

    • An OWL Spout Sender Manager sends in the format of its Render Target, by default RGBA16f (16bit color with alpha channel).

    • You can change this by opening the Render Target and selecting a different Render Target Format:

    • N.B. Not all Spout Receivers can handle 32bit color.

Sender Settings

  • There are three ways to send Spout 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 Spout Sender Manager. It is off by default, so tick it to start sending.

    • Untick it on senders you aren’t using.

Name

  • Name/ Standalone Name (OWL Spout Sender Manager) or Spout Sender Name (OWL Spout Output, default UnrealSpout): This is the name you will see in your Spout receiver software.

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

Fix Gamma

  • Fix Gamma: Unreal works in Linear colorspace and then applies an sRGB conversion to the Editor UI.

    • If you want an output that looks identical to your Editor Viewport then keep this ticked.

    • If you want the raw color values from the Render Target then untick.

    • On the OWL Spout Output, it only applies to 8-bit and 10-bit. 16-bit float and 32-bit float always send linear color, so the box is grayed out.

    • A camera with OpenColorIO on already sends display color, so Fix Gamma has no effect on it.

    • You can change Fix Gamma and Output Alpha while sending. Bit Depth and the sender name need Stop, then Start.

Source Render Target

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

    • It is a Render Target from a Camera or Unreal output that will be sent via Spout.

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

Output Alpha

  • Output Alpha (OWL Spout Output only): sends transparency. Also tick Alpha Output in Project Settings.

Bit Depth

  • Bit Depth (OWL Spout Output only): 8-bit (default), 10-bit, 16-bit float or 32-bit float. Your receiver must read the same format. 10-bit has only 2-bit alpha, so for smooth transparency use 8-bit or a float depth.

Output Size

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

Cadence

  • Cadence (OWL Spout Output only): Every Frame (default) updates Spout every frame the camera renders. Match Other Outputs uses the rate the camera’s other outputs ask for. Custom updates it at the Capture Frame Rate you pick (24 to 120, plus the NTSC rates). Spout doesn’t send a frame rate, so a receiver that reads faster than this shows the same image more than once.

Set Up with the Media Output Wizard

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

  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. 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 Spout Receiver you will now see the output you have created.

  4. 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 Spout output is an OWL Spout Output asset in /Game/MediaOutputWizard/, listed in the camera's Media Outputs; for Viewport Capture it is a Spout 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 Spout:

  1. Right click in the Content Browser and select OWL Spout Output:

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

  3. Double click the asset to change its properties:

    • 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 creative tools like nDisplay you can go to the Media Output dropdown and select the OWL Spout Output as a Media Output option:

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

Set Up with the Spout Sender Manager

You can use this method if you want to output a Render Target via Spout.

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

  2. In World Outliner select OWLSpoutSenderManager so it opens in your Details panel and add a new Array element using the + sign.

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

  4. You will now see your Unreal Engine feed in your other Spout program (e.g. OBS Studio).

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

  6. 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 Spout receiver.

Send to OBS Studio

To receive your Spout Sender in OBS Studio, install our free Spout plugin for OBS and add a Spout2 Capture source. Use plugin 1.13.0 or later to receive 10-bit, 16-bit and 32-bit senders; older versions take 8-bit only. The steps, including the alpha setting, are in Spout Plugin for OBS Studio.

Send to TouchDesigner

  • You can see how to receive Spout in TouchDesigner here.

  • You can receive up to 32bit color with alpha channel.

  • See this tutorial for how to live-stream textures from TouchDesigner to Unreal Engine for:

    1. Instancing geometry data from TouchDesigner to Unreal Engine Niagara systems

    2. Streaming tracking data as textures via Spout

    3. Point clouds in Unreal Engine via Spout texture sampling

  • You can also see this masterclass from Function Store on how to recreate instanced geometry in Unreal Engine with data generated real-time in TouchDesigner.

Send to Resolume

  • You can see how to receive Spout in Resolume here.

  • You can receive up to 16bit color with alpha channel.

Blueprint: Switch Between Senders

Next Steps