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.
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
- Obtain an ingest URL. If you only want to use the trial URL, skip this step and go to step 2.
- Log in to the Live console. In the navigation pane, choose Domains.
- 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.
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.
- Run OBS.
- Click Settings in the lower right corner.

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

- 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.
- Click OK.
- 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.
- Click Start Streaming in the lower right corner.
Streaming
- Obtain a streaming URL. If you only want to use the trial URL, skip this step and go to step 2.
- Log in to the Live console. In the navigation pane, choose Domains.
- 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
- Run VLC.
- On the menu bar, choose Media > Open Multiple Files.
- 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:
- Configure a recording template.
- Configure a snapshot template.
- Configure the transcoding function to transcode a live stream in different specifications, and play the content via a transcoded streaming URL.
- Configure access control to protect live resources.
Last Article: Configuring Domain Names


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.