Help Center/ Huawei Cloud Flexus/ Best Practices/ Pushing PC Desktop Streams to SRS Using OBS/ Pushing Local PC Desktop Streams to SRS Using OBS
Updated on 2024-06-17 GMT+08:00

Pushing Local PC Desktop Streams to SRS Using OBS

This section describes how to push local PC desktop streams to SRS using OBS.

Pushing Livestreams

  1. Download and install OBS based on your operating system.
  2. Open OBS tool and click Settings in the Controls area.

  3. 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.

  4. 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.

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

  7. Perform any operation to change the desktop screen, and you can see that the screen starts to capture desktop content. Click OK.
  8. 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.

Watching Livestreams

  1. Log in to the FlexusL console and click a resource card to go to the instance details page.
  2. On the Overview page, in the Image area, click Access to access the image application dashboard.

  3. Start SRS player.

  4. Watch the desktop livestreams.