Skip to main content
Streaming

Stream with SRT

How to stream from Unreal with SRT, the most reliable protocol: Stream URL, Stream ID, passphrase, timeout and latency, and testing on your machine or network.

Last updated About 4 hours ago

SRT is the most reliable protocol the OWL Media Output Encoder can stream with, especially over unstable internet connections. This article covers when to use it, how to set up an SRT destination and its options, and how to test it on your own machine or network. To add an encoder first, use the Media Output Wizard or see Set Up the Media Output Encoder. To compare protocols, see Choose a Streaming Protocol.

When to Use SRT

  • SRT is newer than RTMP and RTSP, and we recommend it whenever your destination accepts it, because it recovers better from a poor connection.

  • If you are streaming several outputs to a media server, SRT gives you a much more stable and reliable stream than RTMP.

  • You can stream SRT to transcoders like Mux or AWS Elemental, which can then send it on to a large audience.

  • SRT works with h.264 and h.265 encoding, depending on what your receiver accepts.

Set Up an SRT Destination

  1. Set the destination's Output Type to SRT.

  2. Enter the Stream URL from your receiver.

  3. Under Options, set what your receiver needs:

    • Stream ID: like a Stream Key in RTMP.

    • Passphrase: an extra security code shared between the encoder and its destination.

    • Encryption Key Length: only used when a Passphrase is set. The receiver must accept the same length.

Timeout and Latency

  • Timeout is how long a connect, read or write may stall before the stream gives up. It is in microseconds (1000000 is one second). Leave it at -1 to use the default, or set a value that gives your stream time to connect but doesn't leave it hanging.

  • Latency is the longest time a receiver waits for a lost packet to be sent again. It is in microseconds. It can be longer if you allow a larger latency buffer for your stream, but for low or ultra-low latency streaming it needs to be small. To choose a latency, see Decide What Latency You Need.

Test SRT on Your Machine or Network

  • To test on the same machine (for example with OBS Studio), stream to srt://127.0.0.1:4700?mode=caller and enter srt://127.0.0.1:4700?mode=listener in the receiver. 4700 is just a port on your machine, so you can change it.

  • To stream over your network, use srt://192.168.xxx.xxx:4700?mode=caller and replace the xxx with the receiving machine's IP address (how to find it on Windows).