All Products
Search
Document Center

ApsaraVideo Live:Configure default transcoding

更新時間:Aug 27, 2024

Varying bitrates on the stream ingest side can cause video playback issues such as stuttering. The transcoding feature of ApsaraVideo Live helps significantly improve video playback quality. This topic describes how to configure default transcoding in the ApsaraVideo Live console.

Procedure

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, choose Feature Management > Transcoding.

  3. Select the streaming domain that you want to configure. On the Default Transcoding tab, click Add.

  4. Configure a transcoding template.

    通用转码

    The following table describes the parameters that you can configure for the transcoding template.

    Parameter

    Description

    AppName

    • The value of this parameter must be the same as the application name that is specified in the ingest URL. Otherwise, the transcoding template does not take effect.

      The name can be up to 256 characters in length and can contain digits, letters, hyphens (-), and underscores (_).

    • You can also set this parameter to an asterisk (*) to specify any string, including an empty string.

    Note

    If you set this parameter to an asterisk (*), the following rule applies when transcoding starts: The system prioritizes a transcoding template whose AppName matches the application name that is specified in the ingest URL. If such a template does not exist, the system uses a transcoding template whose AppName is set to an asterisk (*).

    Trigger Transcoding

    • If you enable this feature, transcoding is triggered only when a stream is pulled for the first time.

    • If you disable this feature, transcoding is triggered whenever a stream is ingested, regardless of whether the stream is pulled.

    Transcoding Type

    Valid value: Narrowband HD™. The Narrowband HD™ type includes the following transcoding templates: Low Definition, Standard Definition, High Definition, and Ultra High Definition. You can select multiple transcoding templates.

    Note

    The value of the Template ID parameter is used to construct the URL for the transcoded stream. For more information about how to construct a transcoded stream URL, see Generate ingest and streaming URLs.

    Template Name

    Valid values: Low Definition, Standard Definition, High Definition, Ultra High Definition, and Original - Audio Transcoded.

    Template ID

    Different transcoding templates have different template IDs. For more information, see Template IDs.

    Screen Orientation

    Valid values: Landscape and Portrait.

    Resolution (width × height)

    Displays the width and height of different transcoding templates.

    Encoding Standard

    Valid values: H.264, H.265, AAC, and Opus.

    Transcoding Mode

    Valid values: Quality-first and Latency-first. In the latency-first mode, low latency is ensured for the transcoded stream.

    Encryption

    After you turn on the switch, you can select Alibaba Cloud Proprietary Cryptography or DRM Encryption.

    Note

    Digital rights management (DRM) encryption is supported only in the China (Shanghai) and Singapore regions.

    • Alibaba Cloud Proprietary Cryptography

      • Videos can be generated in only the HTTP Live Streaming (HLS) and Flash Video (FLV) formats.

      • KMS CMK ID: Specify a customer master key (CMK) in Key Management Service (KMS). The region of the CMK must be the same as the region in which the domain name resides. If you do not have a CMK, go to the KMS console to create one. For more information, see Purchase and enable a KMS instance.

      • CMK Rotation Period: Enter an integer from 60 to 3,600.

    • DRM Encryption

      • Before you enable this feature, you need to first configure DRM encryption. For more information, see Configure DRM encryption.

      • Videos in the HLS format can be encrypted by using Widevine and FairPlay DRM. To use FairPlay DRM, you must upload a FairPlay Streaming certificate that you obtain from Apple on the DRM Management page. For information about how to apply for a FairPlay Streaming certificate, see Apply for a FairPlay Streaming certificate.

  5. Click OK.

Template IDs

  • Narrowband HD™ templates

Transcoding template

H.264 quality-first template ID

H.265 quality-first template ID

H.264 latency-first template ID

H.265 latency-first template ID

Low definition (landscape)

ld

ld265

ld-ll

ld265-ll

Standard definition (landscape)

sd

sd265

sd-ll

sd265-ll

High definition (landscape)

hd

hd265

hd-ll

hd265-ll

Ultra-high definition (landscape)

ud

ud265

ud-ll

ud265-ll

Standard definition (landscape)

sd540

sd265-540

sd540-ll

sd265-540-ll

Low definition (portrait)

ld-v

ld265-v

ld-v-ll

ld265-v-ll

Standard definition (portrait)

sd-v

sd265-v

sd-v-ll

sd265-v-ll

High definition (portrait)

hd-v

hd265-v

hd-v-ll

hd265-v-ll

Ultra-high definition (portrait)

ud-v

ud265-v

ud-v-ll

ud265-v-ll

Standard definition (portrait)

sd540-v

sd265-540-v

sd540-v-ll

sd265-540-v-ll