Transcoding Configuration

Last updated: 2020-07-21 11:50:16

    LVB transcoding (including both video transcoding and audio transcoding) refers to the process where the original stream pushed out of the live streaming site is transcoded to streams of different codecs, resolutions, and bitrates in the cloud before being pushed to viewers. This helps meet the playback needs in different network environments on different devices. This document describes how to create, modify, and delete a transcoding template in the console.

    You can create a transcoding template in the following two methods:

    Notes

    • LVB supports general transcoding and top speed codec transcoding. Please read the relevant billing description before using them:
      • General transcoding: it is provided in standard transcoding resource packages and is pay-as-you-go.
      • Top speed codec transcoding: it is provided in top speed codec transcoding resource packages and is pay-as-you-go.

        Compared with general transcoding, top speed codec transcoding has higher image quality at lower bitrate. Based on the technologies such as intelligent scenario recognition, dynamic encoding, and three-level (CTU/line/frame) precise bitrate control model, it enables your live streaming business to provide higher-definition streaming services at lower bitrates (reduced by over 30% on average), which effectively reduces your bandwidth costs.

    • After a template is successfully created, it can be associated with a playback domain name. For more information, please see Transcoding Configuration. The association will take effect in about 5–10 minutes.
    • After a transcoding template is specified, the backend will generate different playback addresses with different bitrates for easier use. The original resolution of the stream should be as close as possible to the original aspect ratio of the video in order to avoid stretched and distorted display.
    • The transcoding templates are managed at the domain name level in the console, and rules created by APIs cannot be canceled there for the time being. If you associated the transcoding configuration with a specified stream through the transcoding management API and want to unassociate them, you need to call the DeleteLiveTranscodeRule API.

    Creating General Transcoding Template

    1. Log in to the LVB Console and select Feature Template > Transcoding Configuration.
    2. Click +, select General Transcoding as the transcoding type, set the configuration items, and click Save.

    General Transcoding Configuration ItemDescription
    Applicable template It supports four types of templates: LD, SD, HD, and pure audio. Default template: SD.
    • After you select a template, the system will automatically enter the recommended video bitrate and video height. You can also modify them manually.
    • You do not need to enter the video bitrate and video height for a pure audio template.
    Template name LVB transcoding template name, which can contain 1–10 letters and digits.
    Template description LVB transcoding template description, which can contain only letters, digits,underscores, and hyphens.
    Video bitrate
    (in Kbps)
    Average output bitrate. Value range: 100–8000 Kbps.
    • A value below 1,000 Kbps must be a multiple of 100.
    • A value above 1,000 Kbps must be a multiple of 500.
    Note: the specified output bitrate remains at the original bitrate if it is higher than the input original bitrate.
    Video height
    (in px)
    Video height. The width will be scaled proportionally. Value range: 0–3000 px.
    Note: the value must be a multiple of 4.

    Creating Top Speed Codec Transcoding Template

    1. Log in to the LVB Console and select Feature Template > Transcoding Configuration.
    2. Click +, select Top Speed Codec as the transcoding type, set the configuration items, and click Save.

    Top Speed Codec Transcoding Configuration ItemDescription
    Applicable template It supports three types of templates: LD, SD, and HD. Default template: SD.
    After you select a template, the system will automatically enter the recommended video bitrate and video height. You can also modify them manually.
    Template name LVB transcoding template name, which can contain 1–10 letters and digits.
    Template description LVB transcoding template description, which can contain only letters, digits, underscores, and hyphens.
    Video bitrate
    (in Kbps)
    Average output bitrate. Value range: 100–8000 Kbps.
    • A value below 1,000 Kbps must be a multiple of 100.
    • A value above 1,000 Kbps must be a multiple of 500.
    Note: the specified output bitrate remains at the original bitrate if it is higher than the input original bitrate.
    Video height
    (in px)
    Video height. The width will be scaled proportionally. Value range: 0–3000 px.
    Note: the value must be a multiple of 4.
    Bitrate compression ratio Percentage of bitrate to be lowered based on the configured video bitrate, which is used to dynamically adjust the bitrate without modifying other configuration items. Value range: 10–50.
    Note: please enter an integer between 10 and 50.
    Example: if the video bitrate is set to 1,000 Kbps and the bitrate compression ratio is set to 20%, the actual encoding bitrate will be 800 Kbps.

    Modifying Template

    1. Enter Feature Template > Transcoding Configuration.
    2. Select the target transcoding template and click Edit on the right to modify the template information.
    3. Click Save.

    Deleting Template

    If a template has been associated, you need to unassociate it before deleting it. For detailed directions, please see Unassociating Transcoding Configuration.

    1. Enter Feature Template > Transcoding Configuration.
    2. Select the target transcoding template and click "Delete" at the top.
    3. Confirm whether to delete the selected transcoding template and click OK to delete it.

    Associating Domain Name

    For detailed directions and more information, please see Transcoding Configuration.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help