Pushing Local PC Desktop Streams to SRS Using OBS (Historical Version)
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. FlexusL provides an SRS application image running on Ubuntu 24.04 and deployed with Docker. The image comes pre-installed with Nginx and Docker. This section describes how to push PC desktop streams to SRS using OBS.
This practice applies to FlexusL instances with a Moodle application image purchased before August 28, 2026.
Step 1: Configure Security Groups
Add inbound security group rules to ensure that the application preinstalled in the image can be accessed.
- Log in to the FlexusL console and click the target resource card or instance name to go to the instance details page.
- In the navigation pane on the left, choose Cloud Servers and click the target server name to view its details.

- On the Security Groups tab, click Add Rule. In the displayed dialog box, add rules displayed in the following figure and click OK.
The following figure only displays common rules. You can add more rules as needed.
Table 1 Security group rules Priority
Action
Type
Protocol & Port
Source
Description
100
Allow
IPv4
TCP: 9001
0.0.0.0/0
Allows external access to the application dashboard.
100
Allow
IPv4
TCP: 1935
0.0.0.0/0
Allows access to the RTMP livestreaming server.
100
Allow
IPv4
TCP: 1985
0.0.0.0/0
Allows access to the HTTP API server to deliver HTTP-API and WebRTC streams.
100
Allow
IPv4
TCP: 8080
0.0.0.0/0
Allows access to the HTTP livestreaming server to deliver HTTP-FLV and HLS streams.
100
Allow
IPv4
TCP: 8000
0.0.0.0/0
Allows access to the WebRTC media server.
Step 2: Reset the Password and Log In to the FlexusL Instance
This section describes how to log in to a FlexusL instance. A FlexusL instance does not have an initial password. After creating a FlexusL instance, set a password for the FlexusL instance before logging in to it.
- In the Image area on the Overview page of the FlexusL console, click Access to go to the application dashboard and check whether the application has been up and running. If yes, go to the next step.
Wait for several minutes until the application is up and running. Then, you can perform operations such as restarting or stopping the instance, or resetting the password. Otherwise, the initial password may become invalid and you cannot log in to the application dashboard.
Figure 1 Access to the application dashboard
After the application is started, the initialization wizard page of the dashboard is displayed, as shown in Figure 2.
If the dashboard is not properly displayed, check the following causes:
- The port for accessing the dashboard is not opened. Check whether the port is opened by referring to Step 1: Configure Security Groups.
- The dashboard is being started. Try again later.
- Locate the resource card and choose
> Reset Password. Alternatively, in the list view, click Reset Password in the Operation column to reset the password for the FlexusL instance. A FlexusL instance does not have an initial password. Set a password for the FlexusL instance before logging in to it. For details, see Resetting the Password for a FlexusL Instance.
Figure 3 Resetting a password
- Locate the resource card and click Remote Login. Alternatively, in the list view, click Remote Login in the Operation column. In the displayed dialog box, click VNC Login and enter the username and password as prompted to log in to the FlexusL instance. For more login methods, see Login Modes.
The username is root, and the password is the one you set in the previous step.

Step 3: Learn About the SRS Dashboard
Application images are based on the Ubuntu OS of the code page. You can log in to the visualized dashboard to configure applications easily.
- In the Image area on the Overview page of the FlexusL console, click Access to go to the application dashboard.

If the dashboard is not properly displayed, check the following causes:
- The port for accessing the dashboard is not opened. Check whether the port is opened by referring to Step 1: Configure Security Groups.
- The dashboard is being started. Try again later.
- Check the SRS dashboard. You do not need to set the username and password for logging in to SRS. On the SRS dashboard, you can:
- Log in to the SRS console.
- Obtain the ingest URL.
- Start SRS player to watch the livestreaming content.
Figure 4 Initial page of the SRS dashboard
After the SRS application is set up, you can use SRS to push and watch live streams.
Step 4: Push Local PC Desktop Streams to SRS Using OBS
This section describes how to push local PC desktop streams to SRS using OBS.
- Download and install OBS based on your operating system.
- Open OBS tool and click Settings in the Controls area.

- On the Stream page, configure parameters and click Apply.

Parameter
Description
Service
Multiple platforms can push livestreams via OBS. For SRS, select Custom.
Server
Enter the stream pushing address specified by SRS, for example, rtmp://124.70.x.x/live/.
Stream key
Specify a character string following the specified stream pushing address, for example, the livestream following live/ in rtmp://124.70.x.x/live/.
Use authentication
Select Use authentication and set the Username and Password.

- In the Output page, configure parameters and click Apply.
Set Video Bitrate to 1000 kbps. Select Software for Video Encoder to avoid the need for high-end graphics cards and prevent potential streaming issues. Configure other parameters as needed.

- Click OK.
- In the displayed Sources area, click +, select Display Capture, create a source, and click OK.

- Perform any operation to change the desktop screen, and you can see that the screen starts to capture desktop content. Click OK.
- Click Start Streaming. After the connection is successful, a green block is displayed in the lower right corner, indicating that the stream pushing is successful.
- Log in to the FlexusL console and click a resource card to go to the instance details page.
- On the Overview page, in the Image area, click Access to access the image application dashboard.

- Start SRS player.
- Watch the desktop livestreams.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
