tencent cloud

Feedback

Live Transcoding

Last updated: 2022-05-16 16:25:14

    Live transcoding (including video transcoding and audio transcoding) refers to the process where the original stream pushed from the live streaming site is converted into streams of different codecs, resolutions, and bitrates in the cloud before being pushed to viewers. This meets playback needs in varying network environments on different devices. This document describes how to create, bind, unbind, modify, and delete a transcoding template via the CSS console.

    You can create a transcoding template in two ways:

    Notes

    • CSS supports standard transcoding, top speed codec transcoding, and audio-only transcoding. Read the billing overview before using the service.
    • Compared with standard transcoding, top speed codec transcoding provides higher video quality at lower bitrate. Leveraging technologies including intelligent scene recognition, dynamic encoding, and CTU/line/frame-level bitrate control, top speed codec transcoding allows you to provide higher-definition streaming services at lower bitrates (30% lower on average). It is widely used for the streaming of games, shows, and other events.
    • After creating a template, you can bind it with a playback domain name. The binding takes effect in 5-10 minutes.
    • You can append the name of a transcoding template to the StreamName of a live stream to generate a URL of the transcoded stream. If you have specified the height and width or short and long sides of the transcoded stream, keep the original resolution as close to the values set as possible to prevent image distortion.
    • On the Live Transcoding page of the console, you can view the domain a template is bound to, as well as finer-granularity bindings performed via APIs. You can also unbind a template here.
    • You can bind one playback domain name with multiple transcoding templates, or bind one transcoding template with multiple playback domain names.
    • You can create up to 50 transcoding templates.

    Creating Transcoding Template

    Creating standard transcoding template

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Click Create Transcoding Template, select Standard Transcoding for transcoding type, and complete the following configuration:
    1. Click Save.

    Basic Configuration for Standard TranscodingRequiredDescription
    Transcoding Type Yes Transcoding type, which can be standard transcoding, top speed codec transcoding, or audio-only transcoding.
    Template Name Yes Live transcoding template name, which must be 1-10 characters long and can contain letters only or a combination of digits and letters.
    Template Description No Live transcoding template description, which can contain only letters, digits, underscores (_), and hyphens (-).
    Recommended Parameter No You can choose Smooth, SD, or HD. After you select a value, the system will automatically enter the recommended video bitrate and height, which can be modified.
    Video Bitrate
    (in Kbps)
    Yes Average output bitrate. Value range: 100-8000.
    • A value not larger than 1,000 must be a multiple of 100.
    • A value larger than 1,000 must be a multiple of 500.
    Video Resolution (px) Yes Default: Set the height.
  • The value entered will be the height of the transcoded video. You can also select Set the short side length, and the value entered will be the short side of the transcoded video.
  • Value range: 0-3000. The value must be a multiple of 2. The other side will be auto-scaled.
  • Advanced Configuration for Standard TranscodingRequiredDescription
    Codec No Default setting: Original codec. You can also select H.264 or H.265.
    Video Frame Rate (fps) No Value range: 0-60. If this parameter is left empty, `0` will be used, which means to use the original frame rate.
    GOP
    (in seconds)
    No Value range: 2-6. The larger the GOP, the higher the delay. If this parameter is left empty, the default value will be used.
    Parameter Limit No Disabled by default and can be enabled manually.
    After a limit is enabled, the original value of the input stream will be used if you enter a value larger than the original. This can avoid video quality issues caused by using high video quality settings to transcode videos of low quality.

    Creating top speed codec transcoding template

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Click Create Transcoding Template, select Top Speed Codec Transcoding for transcoding type, and complete the following configuration:
    1. Click Save.

    Basic Configuration for Top Speed Codec TranscodingRequiredDescription
    Transcoding Type Yes Transcoding type, which can be standard transcoding, top speed codec transcoding, or audio-only transcoding.
    Template Name Yes Live transcoding template name, which must be 2-10 characters long and can contain letters only or a combination of digits and letters.
    Template Description No Live transcoding template description, which can contain only letters, digits, underscores (_), and hyphens (-).
    Recommended Parameter No You can choose Smooth, SD, or HD. After you select a value, the system will automatically enter the recommended video bitrate and height, which can be modified.
    Video Bitrate
    (in Kbps)
    Yes Average output bitrate. Value range: 100-8000.
  • A value not larger than 1,000 must be a multiple of 100.
  • A value larger than 1,000 must be a multiple of 500.
  • Video Resolution Yes Default: Set the height.
  • The value entered will be the height of the transcoded video. You can also select Set the short side length, and the value entered will be the short side of the transcoded video.
  • Value range: 0-3000. The value must be a multiple of 2. The other side will be auto-scaled.
  • Advanced Configuration for Top Speed Codec TranscodingRequiredDescription
    Codec No Default setting: Original codec. You can also select H.264 or H.265.
    Video Frame Rate (fps) No Value range: 0-60. If this parameter is left empty, `0` will be used.
    GOP
    (in seconds)
    No Value range: 2-6. The larger the GOP, the higher the delay. If this parameter is left empty, the default value will be used.
    Parameter Limit No
  • Disabled by default and can be enabled manually.
  • After a limit is enabled, the original value of the input stream will be used if you enter a value larger than the original. This can avoid video quality issues caused by using high video quality settings to transcode videos of low quality.
  • Creating audio-only transcoding template

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Click Create Transcoding Template, select Audio-only Transcoding for transcoding type, complete the configuration, and then click Save.

    Basic Configuration for Audio-only TranscodingRequiredDescription
    Transcoding Type Yes Transcoding type, which can be standard transcoding, top speed codec transcoding, or audio-only transcoding.
    Template Name Yes Live transcoding template name, which must be 1-10 characters long and can contain letters only or a combination of digits and letters.
    Template Description No Live transcoding template description, which can contain only letters, digits, underscores (_), and hyphens (-).
    Audio Bitrate (Kbps) Yes You can use the original audio bitrate or set a custom bitrate. Value range: 101-500.

    Binding Domain Name

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Enter the domain name binding page in either of the following ways:
    • Bind a domain name to an existing transcoding template: Click Bind Domain Name in the top left.
    • Bind a domain name after creating a transcoding template: After creating a template, click Bind Domain Name in the pop-up window.
    1. Select a transcoding template and a playback domain name in the domain name binding window and then click Confirm.
      Note:

      You can click Add to bind multiple playback domain names to a template.

    Unbinding Domain Name

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Select a template, find the target domain name, and click Unbind.
    3. In the pop-up window, click Confirm.

    Modifying Template

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Select the target transcoding template and click Edit on the right to modify it.
    3. After modification, click Save.

    Deleting Template

    Note:

    If the template has been bound with a domain name, you need to unbind it before deleting the template.

    1. Log in to the CSS console and select Feature Configuration > Live Transcoding.
    2. Select a template which is not bound with any playback domain name, and click Delete.
    3. In the pop-up window, click Confirm.

    For more information about binding and unbinding domain names, see Transcoding Configuration.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support