Configure StreamLive

In implementing video workloads for large-scale events and 24x7, after configuring a StreamPackage, you can configure StreamLive and associate it with the StreamPackage.

Let’s take a look at how to configure StreamLive as follows :

  1. Hover the mouse over the Product button at the top of the Tencent Cloud console, search for streamlive, and then go to the StreamLive console. ALT_IMG ALT_IMG

Create StreamLive Security Group

  1. Click the Security Group tab in the left menu.
  • Click the Create Security Group button, enter the values as follows, and then click the Confirm button to finish creating the security group.
  • Name: str_live_sg_workshop
  • IP Allowlist: 0.0.0.0/0 (allow all) ALT_IMG ALT_IMG

Create StreamLive Input

  1. Click the Input tab in the left menu.
  • Click the Create Input button, enter the values as follows, and then click the Confirm button to complete the input creation.
  • Name: strlive_input_workshop
  • Type: RTMP_PUSH
  • Security Group: str_live_sg_workshop
  • Destination A: app name live / stream name a
  • Destination B: app name live / stream name b
  • Leave rest to default ALT_IMG ALT_IMG
  1. Create an additional Input for failover.
  • Click the Create Input button, enter the values as follows, and then click the Confirm button to complete the input creation.
  • Name: strlive_input_workshop_backup
  • Type: RTMP_PUSH
  • Security Group: str_live_sg_workshop
  • Destination A: app name live / stream name c
  • Destination B: app name live / stream name d
  • Leave rest to default

In Cloud Streaming Service, input failover feature for source failure is supported to provide redunancy over inputs. For the details, see User Guide.

Create StreamLive Channel

  1. Click the Channel tab in the left menu and click the Create Channel button.

  2. Enter the following values for Channel Name and click the Next button.

  • Channel name: str_live_ch_workshop ALT_IMG ALT_IMG
  1. In Input Setting, click the Add button and load the strlive_input_workshop, strlive_input_workshop_backup inputs. ALT_IMG ALT_IMG
  • Click Settings of strlive_input_workshop, and configure the input failover as follows (Config details : trigger input failover to another input when downtime is longer than 3s) ALT_IMG ALT_IMG
  • In addition, Configure input pipeline failoverinput loss behavior for more availability of inputs and DR of source failure. ALT_IMG ALT_IMG

In Cloud Streaming Service, multiple-failover features are supported to prevent inturruption of service caused by input exceptions. For more details, please see User Guide

  1. In Output Group Setting, press the ADD button, then enter the values as follows and click the Next button.
  • Output Group name: strlive_output_workshop
  • Output Group type: HLS_STREAMPACKAGE
  • Destination Information > StreamPackage Channel ID: ID value copied to notepad in the previous chapter
  • Outputs: Here, we will create outputs with a total of two bitrate ladders. Add two outputs** and click the Setting button in the Transcoding Setting menu. Then enter the values below.
    Output Name 960x540 1280x720
    Transcoding Joint Transcoding Joint Transcoding
    Audio/Video Name 960x540 1280x720
    Video Transcoding - Vcodec H264 H264
    Video Transcoding - Width 960 1280
    Video Transcoding - Height 540 720
    Rate Control - Video Bitrate/bps 1200000 2000000
    Top Speed Codec Transcoding Enable Enable
    Other configurations Leave it as Default value Leave it as Default value
  1. Leave the rest as default and click the Done button to finalize the configuration.

  2. After configuration is complete, check the created channels. You can see that it has been created in the current IDLE state. ALT_IMG ALT_IMG

Note: You can start running the StreamLive channel by clicking the START button. Once you start a channel, billing starts even if you don’t actually start streaming. Therefore, if you plan to temporarily suspend or not continue this workshop, we recommend that you maintain the IDLE status or STOP to prevent unnecessary charges.