You can now live-stream video, alpha and audio from Unreal Engine direct to OBS Studio without using screen capture meaning you can live-stream while working in or playing your Unreal project!
This works both in-Editor and at-Runtime and in packaged games!
- You need three different plugins to use the full range of possibilities:
- The Spout plugin for OBS Studio (for zero-latency streaming on a single machine). Installation guide here.
- The NDI plugin for OBS Studio (for streaming between different machines). Installation guide here.
- The Live-Streaming Toolkit for Unreal Engine (for streaming Spout and NDI into and out of Unreal). Installation guide here.
- In your Unreal Project, select the Off World icon at the top of the Editor view and click 'Live-Stream Wizard':
- The Wizard will let you set up a Cinecam in Unreal which outputs to a Render Target for automatic streaming from Unreal Engine via Spout or NDI:
- If you now go to OBS Studio and create an you will be able to add a new 'Spout2 Capture' or 'NDI Source' option in your Sources panel:
- Selecting one of these options will pop-up a screen with a drop down of your Spout or NDI Senders. Select the name you gave to your Live-Stream Wizard in Unreal and click 'OK' and you will now see your Unreal project streaming direct into OBS!
- If you are are sending alpha from Unreal via Spout then in the 'Composite Mode' setting you need to select 'Premultiplied Alpha':
- Because the streaming is happening in the background you have complete control of your Unreal Editor and can continue to work on your project while streaming!
N.B. you don't have to use the Live-Stream Wizard!
- The Live-Stream Wizard creates two things:
- An OWL Cinecam which is an Unreal Cinecam with a Render Target and alpha/ HUD capabilities.
- An NDI/ Spout Sender Manager which can live-stream any Unreal Engine Render Target to Spout or NDI.
- You could create your own OWL Cinecam/ Capture Component or create a Render Target from Unreal features like Composure or Virtual Camera.
- Then just select the Render Target from that feature by adding a new Array in the Spout/ NDI Sender Manager.
- Any 'Active' Render Targets in the Spout/ NDI Sender Manager will automatically appear in your Spout/NDI Sources list in OBS Studio.
- Remember that the more active cameras you add, the more GPU resources you are using so see clever performance optimisations here!