The Secure Reliable Transport Protocol
Secure Reliable Transport (SRT) is an open-source streaming protocol that solves some of the limitations of RTMP delivery. In contrast to RTMP/RTMPS, SRT is a UDP-based protocol that provides low-latency streaming over unpredictable networks. On Gcore Video Streaming, SRT is also required if you want to use the H265/HVEC codec.
Push streams
Gcore Video Streaming provides two endpoints for pushing a stream: the default one and a backup one. The default endpoint is the one closest to your location. The backup endpoint is in a different location and is used if the default one is unavailable.
By default, Gcore will route your stream to free ingest points with the lowest latency. If you need to set a fixed ingest point or if you need to set the main and backup ingest points in the same region (i.e., to not send streams outside the EU or US), please contact our support team.
Obtain the server URLs
There are two ways to obtain the SRT server URLs: via the Gcore Customer Portal or via the API.
Via the Gcore Customer Portal
- In the Gcore Customer Portal, navigate to Streaming > Live Streaming.
- Click on the stream you want to push to. This will open the Live Stream Settings.
- Ensure that the Ingest type is set to Push.
- Ensure that the protocol is set to SRT in the URLs for encoder section.
- Copy the server URL from the Push URL SRT field.
Via the API
You can also obtain the URL and stream key via the Gcore API. The endpoint returns the complete URLs for the default and backup ingest points, as well as the stream key.
Example of the API request:
Example of the API response:
Read more in the API documentation.
Pull streams
Gcore Video Streaming can pull video data from your external server.
Main rules of pulling:
- The URL of the stream to pull from must be publicly available and return a 200 status for all requests.
- You can specify multiple media servers (separated with space characters) in the URL input field. The maximum length of all URLs is 255 characters and the round robin is used when polling the list of specified servers.
- If a stream is closed (i.e., its connection is terminated) or there is no video data in the stream for 30 seconds, then the next attempt will be made in the next steps progressively (10s, 30s, 60s, 5min, 10min).
- The stream will be deactivated after 24 hours of inactivity.
- If you need to set an allowlist for access to the stream, please contact support to get an up-to-date list of networks.
Setting up a pull stream
There are two ways to set up a pull stream: via the Gcore Customer Portal or via the API.
Via the Gcore Customer Portal
- In the Gcore Customer Portal, navigate to Streaming > Live Streaming.
- Click on the stream you want to pull from. This will open the Live Stream Settings.
- Ensure that the Ingest type is set to Pull.
- In the URL field, insert a link to the stream from your media server.
- Click the Save changes button on the top right.
Via the API
You can also set up a pull stream via the Gcore API. The endpoint accepts the URL of the stream to pull from.
Example of the API request:
Read more in the API documentation.