Help Center/ Live/ Media Live/ Constraints
Updated on 2025-01-24 GMT+08:00

Constraints

Before using Media Live, understand the following constraints.

Channel Inputs

Table 1 Channel input constraints

Item

Description

Transcoded stream frame rate

The transcoded stream frame rate cannot be higher than the input frame rate.

Transcoded stream resolution

The transcoded stream resolution cannot be higher than the input resolution.

Audio/Video encoder

  • Video: H.264 and H.265
  • Audio: AAC, MP1, MP2, and MP3

    Note: MP1, MP2, and MP3 are only available for TS inputs. By default, the inputs are transcoded into AAC outputs.

  • Subtitling is not supported.

Input specifications

Details:

  • RTMP stream push is supported.
  • HTTP-FLV stream pull is supported. The sequence header must be carried when playback starts.
  • HLS-PULL stream pull is supported, as well as the HLS V3, HTTP, or HTTPS.
  • SRT-Listener stream push is supported. Only TS streams are supported and streamid is optional.
  • SRT-Caller stream pull is supported. Only TS streams are supported.
  • Encrypted streams are not supported.
  • Audio-only inputs are not supported, with at least one video stream required. Video-only outputs are not supported. For video-only outputs, one mute stream will be automatically added.
  • The encoder parameters of the primary and standby inputs must be the same. Otherwise, the playback may be interrupted during input redundancy.
  • Inputs: bitrate ≤ 50 Mbit/s, frame rate ≤ 60 FPS, resolution ≤ 4K

Input GOP duration

Recommendations:

  • Set the value to 1 second or an integer multiple of 1 second.
  • Set the segment duration configured for a channel to an integer multiple of the GOP duration.

Channel Outputs

Table 2 Channel output constraints

Item

Description

Audio/Video encoder

  • Video: H.264 and H.265
  • Audio: AAC
  • Subtitling is not supported.

MSS

Neither encrypted nor unencrypted MSS streams (H.265) can be output.

DRM encryption

DRM encryption algorithms supported:

  • HLS: sample-aes
  • DASH: CENC
  • MSS: CENC

Resources

Table 3 Resource constraints

Item

Description

Number of channels

A tenant can create a maximum of 500 channels. To create more channels, submit a service ticket.

Functions

Table 4 Function constraints

Item

Description

Channel function

All channels support only single-bitrate inputs, and multi-bitrate outputs are available only after transcoding.

SRT_PUSH channels and RTMP_PUSH channels cannot be created at the same time for one domain name.

Clients

Table 5 Client constraints

Item

Description

Encoding format

In iOS 16.0 or later, the maximum HE-AAC audio bitrate is 64 Kbit/s. This constraint does not apply to AAC-LC.

Client

If the displayed segment duration of the source stream is different from the actual segment duration, the audio and video may be out of sync. To solve this potential issue, the client should support audio-to-video synchronization.

APIs

Media Live sets a limit on the number of API calls to prevent service interruption caused by repeated API calls in a short period of time.

Table 6 API request throttling

API Category

API Name

Max. User Requests

Max. API Requests

OTT Channel Management

  • Creating an OTT Channel
  • Querying Channel Information
  • Deleting Channel Information
  • Modifying Channel Packaging Information
  • Modifying Channel Input Stream Information
  • Modifying Channel Recording Information
  • Modifying General Channel Information
  • Changing the Channel Status
  • Modifying Channel Transcoding Template Information

80 times/minute

80 times/minute