Updated on 2024-09-23 GMT+08:00

Overview

Application Scenarios

SRS is a simple and an efficient real-time video server that supports various real-time streaming media protocols, such as RTMP, WebRTC, HLS, HTTP-FLV, and SRT. The SRS image uses Ubuntu 22.04 and is deployed using Docker. The Nginx and Docker have been preconfigured in the image. This section describes how to push PC desktop streams to SRS using OBS.

Resource Planning and Costs

This practice uses the following resource planning as an example. You can adjust it as required.

Resource

Configuration

Description

Cloud server

  • vCPUs: 2
  • Memory: 4 GiB

Select appropriate instance specifications based on your service requirements.

Image

SRS

Select the SRS application image.

Security group

Inbound rule:

  • Protocol & Port

    TCP: 9001, 1935, 1985, 8080, and 8000

    Source: 0.0.0.0/0

  • Protocol & Port

    ICMP: all

    Source: 0.0.0.0/0

  • 9001: Allows external access to the application management page.
  • 1935: Allows access to the RTMP livestreaming server.
  • 1985: Allows access to the HTTP API server to deliver HTTP-API and WebRTC streams.
  • 8080: Allows access to the HTTP livestreaming server to deliver HTTP-FLV and HLS streams.
  • 8000: Allows access to the WebRTC media server.

Domain name

wpwebsite.com

  • If the website is only used for personal development or testing, there is no need to add a domain name.
  • If the website is open to the public, add and resolve a domain name for the cloud server.

Process

Step

Procedure

Description

1

Purchasing and Configuring a FlexusL Instance

Purchase and configure a FlexusL instance.

2

Learning About the SRS Working Interface

Understand the SRS working interface.

3

Pushing Local PC Desktop Streams to SRS Using OBS

Learn how to push local PC desktop streams to SRS using OBS.