This topic describes how to configure custom transcoding parameters such as the resolution, frame rate, and bitrate for output streams based on your business requirements.
- Log on to the ApsaraVideo Live console.
- In the left-side navigation pane, click Domains to go to the Domain Management page.
- Find the streaming domain that you want to configure and click Domain Settings.
- Choose .
- Click the Custom tab. Then, click Add.
- Configure a transcoding template.
The following table describes the parameters that you can configure for a transcoding template.
Parameter Description Application Name The transcoding template takes effect only if the value of this parameter is the same as the application name that is specified in the ingest URL. Transcoding Type Valid values: Narrowband HD™ and Audio Only.
Audio-only transcoding templates are used to remove the video of the input stream and generate an audio-only stream in the Opus format.
Resolution The resolution of the output stream. Unit: pixels. Different prices apply to different resolutions. The following resolutions are supported:
- Low definition (LD): 640 × 480 and lower
- Standard definition (SD): 1280 × 720 and lower
- High definition (HD): 1920 × 1080 and lower
- 2K: 2560 × 1440 and lower
- 4K: 3840 × 2160 and lower
- Transcoding prices vary according to different video resolutions, including LD, SD, HD, 2K, and 4K. The video resolutions are not indicated by regular transcoding template IDs, which contain letters such as lld, lsd, lhd, and lud, or Narrowband HD template IDs, which contain letters such as ld, sd, hd, and ud. Use these template IDs only for identification when you call services.
- You cannot specify a custom resolution that is higher than 1080p in the console. If your scenario requires a resolution of 2K or 4K, submit a ticket. For more information about how to submit a ticket, see Contact us.
The resolution of an output stream is determined based on the range where the long side and short side of the video fall.In the following example, the resolution of 1280 × 720 is used to show how the resolution of an output stream is determined.
- If the long side of the video contains no more than 1,280 pixels and the short side of the video contains no more than 720 pixels, the resolution of the output stream is SD.
- If the long side of the video contains more than 1,280 pixels, or the short side of the video contains more than 720 pixels, the resolution of the output stream is higher than SD.
Video Bitrate The bitrate that corresponds to the resolution. Unit: Kbit/s. The following list describes the bitrate ranges for different resolutions:
- LD: 100 to 800 Kbit/s
- SD: 200 to 1,500 Kbit/s
- HD: 500 to 4,000 Kbit/s
- 2K: 2,000 to 8,000 Kbit/s
- 4K: 4,000 to 30,000 Kbit/s
Video Frame Rate The frame rate of the output stream. Unit: frames per second. The frame rate of the output stream must be smaller than or equal to the frame rate of the input stream. Video GOP The group of pictures (GOP) indicates the interval between two I-frames. The GOP size of the output stream must be smaller than or equal to the GOP size of the input stream. The GOP size of the output stream cannot exceed 3 seconds. This ensures low latency. Encoding Standard (applicable to Audio Only) Only Advanced Audio Coding (AAC) is supported. Codec (applicable to Audio Only)
- LC-AAC: advanced audio coding with low complexity. The transcoding efficiency is high.
- HE-AAC: advanced audio coding with high efficiency. The sound effect for HE-AAC is better than that for LC-AAC when the audio bitrate is lower than 128 Kbit/s.
Bitrate (applicable to Audio Only) The audio bitrate. Valid values: 8 to 1000. Channels (applicable to Audio Only) The number of sound tracks. Valid values: 1 and 2. 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.
Video Encryption Specifies whether to enable digital rights management (DRM) encryption. Before you enable this feature, you must configure DRM encryption.Note This feature is supported only for streaming domains of the live center in the Singapore region. For more information, see Configure DRM encryption. Settings ID The ID of the transcoding template.
The value of the Settings ID parameter is used to construct a URL for a live stream that requires transcoding. For more information about how to construct a URL, see Ingest and streaming URLs. You can append the template ID to the streaming URL to watch the transcoded stream in the specified resolution.Important The template ID must be different from default transcoding template IDs. The default transcoding template IDs include lld, lsd, lhd, lud, ld, sd, hd, and ud.
- Click OK.