Help Center> Live> Getting Started> Using Live on a PC

Using Live on a PC

This section describes how to use Live for stream pushing and streaming on a PC with the third-party software.

The procedure for using Live on a PC is as follows:
  1. Configuring Domain Names
  2. Configuring CNAME Records
  3. Pushing Streams
  4. Streaming

If you only want to try Live with the URLs provided, skip steps 1 and 2, and directly use the ingest URL for stream pushing, and use the streaming URL for streaming.

Prerequisites

  • You have configured an ingest domain name and streaming domain name on the Live console by referring to Configuring Domain Names, or you have obtained the trial URLs of Live.
  • You have installed a stream push tool. You are advised to use Open Broadcaster Software (OBS). If you have not installed yet, download and install it.
  • You have installed a streaming tool. The VLC media player is recommended. If you have not installed yet, download and install it.

Pushing Streams

  1. Obtain an ingest URL. If you only want to use the trial URL, skip this step and go to step 2.

    1. Log in to the Live console. In the navigation pane, choose Domains.
    2. Click Settings in the row containing the target domain name. Obtain the ingest URL on the basic information page.

      See Figure 1. StreamName is user-defined. An ingest URL looks like this, rtmp://push-test.huaweicloud.com/live/huawei09.

      Figure 1 Ingest URL

      The domain name in the preceding figure is only an example. In actual use, you need to use your own domain name that has been licensed.

  2. Run OBS.
  3. Click Settings in the lower right corner.

  4. On the left navigation pane, choose Output. Set Output Mode to Advanced and Keyframe Interval to 2.

  5. On the left navigation pane, choose Stream and enter the ingest URL obtained in step 1.

    An ingest URL consists of the following two parts:
    • URL: Enter the URL containing and before the app name.
    • Stream Key: Enter the URL containing and after StreamName.
    If you only want to use the trail URL provided by Live, set this parameter as follows:
    • URL: Enter rtmp://push.hwvideo.hwcloudlive.com/live.
    • Stream Key: Enter huawei01.
    • If an error is reported during stream pushing, enter a complete ingest URL in the URL field.
    • The parameter names on the GUI may vary according to the OBS version, but the rules for setting the parameters are the same.

  6. Click OK.
  7. Right-click the Sources area, and add a stream source.

    • Media Source indicates local media files.
    • Video Capture Device indicates a camera. If a camera is available on the PC, the camera is directly enabled.

  8. Click Start Streaming in the lower right corner.

Streaming

  1. Obtain a streaming URL. If you only want to use the trial URL, skip this step and go to step 2.

    1. Log in to the Live console. In the navigation pane, choose Domains.
    2. Click Settings in the row containing the target domain name. Obtain the streaming URL on the basic information page.

      See Figure 2. StreamName is user-defined and must be the same as the value of StreamName in the ingest URL. Otherwise, the streaming fails.

      For example, a streaming URL can be assembled in the following formats:

      • FLV format: http://play-test.huaweicloud.com/live/huawei09.flv
      • M3U8 format: http://play-test.huaweicloud.com/live/huawei09.m3u8
      • RTMP format: rtmp://play-test.huaweicloud.com/live/huawei09
      Figure 2 Streaming URL

  2. Run VLC.
  3. On the menu bar, choose Media > Open Multiple Files.
  4. In the displayed dialog box, enter the streaming URL obtained in step 1. Click Play.

    If you only want to use the trial URL provided by Live, enter rtmp://pull.hwvideo.hwcloudlive.com/live/huawei01.

Related Links

If you use your own domain name for live streaming, you can configure the following functions before using Live: