SRT

Revision as of 20:37, 21 December 2022 by Marks.polakovs (talk | contribs) (Update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

We are experimenting with srtrelay on strm0/1. This is running on port 2000.

We use stream ID's to identify each stream similar to a URL path. This is done in the format of {pub / sub}/{location}/{production}. The first part indicates if you are publishing (pusher) or subscribing (puller) of a stream. The 2nd and 3rd are purely for organisational purposes.

Publishing

It is formatted like so: srt://stream.ystv.co.uk:2000?streamid=pub/{location}/{production}

An example: srt://stream.ystv.co.uk?streamid=pub/ystv/tennis

FFmpeg

ffmpeg -i {your input} -c copy -f mpegts "srt://stream.ystv.co.uk:2000?streamid=pub/{location}/{production}"

OBS

Select a custom output. Then put the entire SRT URL in the server field, SRT doesn't use the key field.

Subscribing

The stream ID now starts with sub to indicate we are subscribing / pulling a stream.

It is formatted like so: srt://stream.ystv.co.uk:2000?streamid=sub/{location}/{production name}.

An example: srt://stream.ystv.co.uk?streamid=sub/ystv/tennis

FFmpeg

Use the URL as the input, it should automatically detect it.

OBS

Use a media source and set the input to the URL.

VLC

You will need VLC version 4 to properly view streams. Best way is to download the nightly version of VLC off their website, since the stable release is too old.

Roses 2021

We have split our SRT server into three different sections.

  • ystv
  • la1tv
  • mixer

So both ystv and la1tv are for OB's to stream too. This is then pulled by the remote mixer and then the remote mixer will stream to mixer.

YSTV has got a script which given a {location}/{production} and a LA1TV play path (ob1). Will forward the SRT to LA1TV's RTMP ingest.

In practice

So if you where at an LA1TV OB you would stream something like this: srt://stream.ystv.co.uk:2000?streamid=pub/la1tv/rowing.

Then the remote vision mixer would be streaming to: srt://stream.ystv.co.uk:2000?streamid=pub/mixer/rowing.