LVB Push

Last updated: 2019-11-08 17:14:52

PDF

Preparations

  1. Activate Tencent Cloud LVB: If you have not done so yet, click Apply for Activation.
  2. Add an LVB push domain name: LVB provides you with a default push domain name in the format of xxx.livepush.myqcloud.com. You can also add your own domain names that have completed ICP filing.
  3. You need to generate a push address before a live broadcast can be started. Log in to the LVB Console, click Domain Management, select the added push domain name, and click Manage > Push Configuration > Generate Push URL to generate a push address. If you do not enable push authentication, the push address format is rtmp://domain/live/StreamName; otherwise, the format is rtmp://domain/live/StreamName?txSecret=xxx&txTime=xxx. We recommend enabling push authentication to ensure the security of the live broadcast.

PC Push

You can use third-party push programs OBS (recommended) or XSplit on PC (Windows/Mac) to push compressed and encoded audio and video streams of various types such as live event, education, presentation, and gaming to the push address in Tencent Video Cloud, and viewers can watch the live content in real time at the playback address corresponding to the push address.

Preparations Before Starting a Live Broadcast

Installing OBS

Download an appropriate installer at OBS' official website and then install it with default settings. Windows, Mac, and Linux are supported. Make sure that the downloaded program is Open Broadcaster Software. OBS Studio is also available which is not covered in this document though.

Install XSplit

You can also download an installer at XSplit's official website and then install it with default settings. XSplit is a paid tool. If your budget is low, use OBS (free). XSplit has a separate installer for live game broadcasting. For non-game live broadcasting, BroadCaster is recommended.

Push

  1. Log in to the LVB Console.
  2. Click Domain Management and select the push domain name you created.
  3. Use the push address generator in Manage > Push Configuration.
  4. Enter the expiration time and StreamName.
  5. Click Generate Push URL.
  6. Set the push address:
    • Assume that the prepared push address is:
      rtmp://3891.livepush.myqcloud.com/live/3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F
    • It needs to be set in two parts:
      • The first half of the push address is rtmp://3891.livepush.myqcloud.com/live/, which is commonly referred to as an FMS URL.
      • The second half of the push address is 3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F, which is commonly referred to as a stream code.
    • OBS push address setting:
      For more information on the usage and settings of the OBS push tool, see OBS Push.
      The OBS used here is v19.0.3. Click Settings in the bottom-right corner, select Stream, and then configure the stream type as Custom Streaming Server, the URL as the first half of the push address, and the stream key as the second half of the push address.

Playback

  1. Confirm the playback address which you can get in the console. For more information, see Best Practices - LVB Playback.
  2. Download VLC and install it with default settings.

FAQs

How is a hotlink protection URL calculated?
See Best Practices - Hotlink Protection URL Calculation.