Skip to main content

SRT ingest

SRT (Secure Reliable Transport) is a UDP-based protocol built for unpredictable networks. It retransmits lost packets, adapts to jitter and encrypts the transport, so it is a good choice for long distances, mobile uplinks or shaky venue internet. In nanoStream, SRT is an ingest protocol: viewers still watch over MOQ or H5Live with the nanoStream Player. SRT ingest is always enabled and available for all organisations; no activation is needed.

Before you start​

  • A stream in your organisation. Create one in the Builder Hub, the nanoStream Dashboard or with the nanoStream REST API. You need its stream name (XXXXX-YYYYY).
  • An encoder that sends SRT in caller mode, for example OBS Studio 25.0 or newer, vMix, or a hardware encoder.
  • Outbound UDP port 5000 open on your network.

Supported format​

Send a clean, single-track MPEG-TS feed:

SettingValue
ContainerMPEG-TS
TracksOne video track and/or one audio track
Video codecH.264
Audio codecAAC (LC preferred)

Multiple video or audio tracks can cause playback problems or a rejected ingest. Apply the same keyframe, B-frame and bitrate settings as for RTMP: see Recommended settings.

SRT works with live transcoding. If your stream has transcoding profiles, the SRT feed is the passthrough source for the extra qualities. You don't change anything on the encoder. See Adaptive Bitrate Streaming.

Server domain and port​

Use the global domain unless you have a reason not to. It routes your encoder to the nearest available region. All SRT domains use port 5000.

RegionDomain
Global (recommended)bintu-srt.nanocosmos.de
Europebintu-srt-eu.nanocosmos.de
North Americabintu-srt-us.nanocosmos.de
South Americabintu-srt-sa.nanocosmos.de
Asiabintu-srt-as.nanocosmos.de

Switch to a regional domain only to test a region or to work around a routing issue. For all ingest protocols in one table, see Ingest overview.

Stream ID​

Every SRT connection carries a stream ID that tells nanoStream which stream you are publishing. The format is:

push:XXXXX-YYYYY[?param1=value1&param2=value2]
  • push is the action (publish).
  • XXXXX-YYYYY is your stream name.
  • Optional query parameters after the stream name are passed to your ingest webhook, for example a passcode.
Use caseStream ID
Basic ingestpush:XXXXX-YYYYY
With custom parameterspush:XXXXX-YYYYY?param1=one&param2=two

Some applications, including OBS Studio, need the parameters URL-encoded:

EncodingStream ID
Whole stream ID encodedpush%3AXXXXX-YYYYY%3Fparam1%3Done%26param2%3Dtwo
Parameters encodedpush:XXXXX-YYYYY%3Fparam1%3Done%26param2%3Dtwo

Stream ID rules​

The SRT protocol and the nanoStream ingest enforce these limits. Breaking them causes a failed connection or wrong routing.

  • Maximum 512 characters.
  • Allowed characters: a-z A-Z 0-9 ? & = - _ , :
  • : only as a delimiter, never inside a stream name or parameter value.
  • % only as part of URL encoding.
note

The older :record suffix (push:XXXXX-YYYYY:record) turned on the legacy VOD recording. It is deprecated. To record, turn on recording in Live Processing instead.

Connection parameters​

ParameterValue
modecaller
transtypelive
latency500 ms (default). Raise it step by step on long-distance or mobile links.
timeout1 second. Helps avoid connection failures on high round-trip times.
streamidSee Stream ID

A larger latency buffer gives SRT more time to recover lost packets, at the cost of a little more delay.

Full SRT URL​

Most encoders take one SRT URL with all parameters. Replace XXXXX-YYYYY with your stream name:

srt://bintu-srt.nanocosmos.de:5000?mode=caller&latency=500000&timeout=1000000&transtype=live&streamid=push:XXXXX-YYYYY

For a region, replace the host, for example bintu-srt-eu.nanocosmos.de.

note

In this URL, latency and timeout are in microseconds, as OBS expects them: 500 ms = 500000, 1 second = 1000000. Check your encoder's documentation for the unit it uses.

Set up OBS Studio​

  1. Open Settings → Stream and set Service to Custom.
  2. Paste the full SRT URL from above into Server.
  3. Leave Stream Key empty; the stream ID is already part of the URL. OBS would otherwise send the key as the SRT stream ID.
  4. Apply the recommended encoder settings: H.264, AAC, keyframe every 2 seconds.
  5. Click Start Streaming and check that the stream is live in the Builder Hub or Dashboard.
OBS Studio Stream settings with Service set to Custom and a full SRT URL in the Server field
OBS with an SRT URL: the stream ID is part of the URL, so the Stream Key field stays empty.

Timecode and metadata​

Encoder-side AMF metadata (onFI) is an RTMP feature and is not available over SRT. Server-side timecode injection works with SRT. See Stream tags & metadata.

Encryption​

SRT ingest is encrypted on the transport, similar to TLS. You don't set a passphrase or key length in your encoder. Together with RTMPS and WHIP over HTTPS, it is one of the encrypted ingest options described on Ingest security.

Check playback​

SRT playback is not available. Watch your stream with the nanoStream Player, for example on the stream page of the Builder Hub or Dashboard. For a quick desktop check you can also pull the RTMP playout with ffplay:

ffplay rtmp://bintu-play.nanocosmos.de/play/XXXXX-YYYYY

What can go wrong​

SymptomLikely causeFix
Encoder can't connect, RTMP worksUDP 5000 blockedOpen outbound UDP 5000 or use RTMP
Connects, but the wrong or no stream goes liveMalformed stream IDCheck the push: prefix, the stream name and the character rules
Parameters missing in your webhookNot URL-encoded where the encoder needs itUse the encoded stream ID
Frequent drops on a long-distance linkLatency buffer too smallRaise latency step by step
Playback problems or rejected ingestSeveral audio or video tracksSend one video and one audio track

If streams from one location degrade while others are fine, see Network diagnostics.

Next steps​