SRT Blog Post: Livepeer now supports SRT
Tags: tutorial, opensource, livestream, video
Published: 2022-02-17 15:00:30

## What’s SRT? 

Secure Reliable Transport (SRT) is an open source video transport protocol developed by Haivision, that excels at providing stable streaming at relatively low latency. Although SRT is primarily used in broadcasting and corporate environments, SRT is increasingly becoming popular for all kinds of streaming over the internet.  

Before going into more details on why the SRT protocol is gaining more adoption compared to the more traditional transport protocol such as RTMP and RTSP, let’s take a brief look at where it fits in the context of live video streaming.

## Live video streaming workflow

Here is a simplified process of how live streaming works:

**Cameras and Microphones** 
 Source used for broadcasting video and/or audio

**Encoding**
Compresses the raw data from cameras and/or microphones for easier transporting across the internet

**Transcoding**  *(*SRT)*
Compresses the encoded data to smaller sizes and different formats to be more accessible across different types of devices

**Media servers** 
Converts and repackages transcoded data as needed to be available for different types of formats chosen to view the video

**Content Delivery Network**
Quickly distributes the content provided by the media server from the nearest location requested by the viewer

**Video players and playback**
Decodes the data from the CDN and displays it for viewing

## In depth on SRT

SRT is part of the transcoding process that delivers the data to the media server. Due to the nature of data getting transferred constantly in different variations, maintaining the optimum quality from the original source is very important.  

There are features in SRT that assists in maintaining high quality data when transferring them.
Here are some unique features provided by SRT that help preserve the quality of data that is being transferred.

* The ability to configure the time to synchronize to multiple feeds
* The ability to set and adjust the bandwidth
* Reconstruct NAK(Negative Acknowledgement) packages to provide a smoother experience
* More adaptability by being codec agnostic for audio and video


We like SRT not only because it’s being actively maintained and is open-sourced, but also because SRT is designed to be highly stable and perform well in unpredictable network conditions by adapting to real-time network conditions. Another important aspect is that it also provides for security for the content distribution by using AES encryption. 

Simply put: more reliable video means happier viewers. 

SRT is still relatively new and not as widespread as RTMP, which means that you can’t stream SRT into popular live-streaming sites like Youtube, Twitch, and Facebook. Livepeer supporting SRT means that your streamers can stream SRT and get all the stability and security improvements that it was designed to deliver. 

## Using SRT with Livepeer

SRT streaming is simple to use. Currently, we provide a RTMP ingest URL like the following example:

![RTMP URL](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xjumclvky0eijf3eo45z.png)

To use SRT transport method, simply replace the RTMP ingest URL with:


![SRT URL](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yds7gckh91d70mebquvr.png)

Another easy option is that the SRT ingest URL is located right under the RTMP URL in the Livepeer dashboard. If you are using the SRT URL from the dashboard, there is no need to provide the stream key as it is already included.



![Livepeer Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/miir3qq8a0hdyer4fn83.png)

Below is an example of using SRT with OBS

Go to settings 


![OBS Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gupl5rowh8u9wq3mfli0.png)

Then select the **Stream** tab in the left menu 
Select custom from the **Service** drop down menu
Paste in the SRT URL in the **Server** field


![OBS Settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eyvosntjrse7oan6zz27.png)

Paste in the SRT ingest URL from Livepeer Video Services. Note that {stream_key} should be replaced with the given key, e.g. 56g6-xcd1-toox-w70z

And that’s it! 

SRT is free to use for all accounts. For more information to get started using SRT, check out our documentation. Here is more information on getting started using SRT in Livepeer, also check out our documentation. Happy streaming!

[Read SRT docs](https://livepeer.com/docs/guides/start-live-streaming/srt-support)