All Products
Search
Document Center

Intelligent Media Services:CreateMediaLiveChannel

Last Updated:Dec 23, 2025

Creates a MediaLive channel.

Operation description

QPS limit

This operation can be called up to 50 times per second for each Alibaba Cloud account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:CreateMediaLiveChannelcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the channel. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

mych
InputAttachmentsarray<object>Yes

The associated inputs.

objectYes
InputIdstringYes

The ID of the associated input.

myinput
LanguageNamestringNo

The tag that identifies the language of the RTMP input. It can be referenced by the output. The maximum length is 32 characters. Supported characters:

  • Unicode letters
  • Digits (0-9)
  • Underscore (_)
  • Hyphen (-)
  • Space (a space cannot be at the beginning or end)
English
AudioSelectorsarray<object>No

The audio selectors.

objectNo
NamestringYes

The name of the audio selector. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

myselector
AudioLanguageSelectionobjectNo

The audio language selection.

LanguageCodestringYes

Enter a three-letter ISO 639-2 language code from within an audio source.

eng
AudioPidSelectionobjectNo

The audio PID selection.

PidlongYes

Enter a specific PID from within a source.

123
AudioTrackSelectionarray<object>No

The audio track selection.

objectNo
TrackIdlongYes

Specify one or more audio tracks from within a source using Track ID.

1
OutputGroupsarray<object>Yes

The output groups.

objectYes
NamestringYes

The name of the output group. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

group1
TypestringYes

The output group type. Only MediaPackage is supported.

MediaPackage
Outputsarray<object>Yes

The outputs in the output group.

objectNo
NamestringYes

The name of the output. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

output1
MediaTypeintegerNo

The media type of the output. Valid values:

  • 0: Audio and Video.
  • 1: Audio. If you set the value to 1, you cannot reference VideoSettings.
  • 2: Video. If you set the value to 2, you cannot reference AudioSettings.
0
MediaPackageOutputSettingobjectNo

The settings of the output delivered to MediaPackage.

NameModifierstringNo

The manifest name modifier. The child manifests include this modifier in their M3U8 file names. Letters, digits, hyphens (-), and underscores (_) are supported. The maximum length is 40 characters.

480p
AudioGroupIdstringNo

The manifest audio group ID. To associate several audio tracks into one group, assign the same audio group ID. Viewers can select a track as needed. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 40 characters in length.

audiogroup
VideoSettingNamestringNo

The name of the referenced VideoSettings.

myVideo1
AudioSettingNamesarrayNo

The referenced AudioSettings.

stringNo

The name of the referenced AudioSettings.

myAudio1
MediaPackageGroupSettingobjectNo

The MediaPackage destination.

GroupNamestringYes

GroupName in MediaPackage.

myPackageGroup
ChannelNamestringYes

ChannelName in MediaPackage.

myPackageChannel
AudioSettingsarray<object>No

The audio settings.

objectNo
NamestringYes

The name of the audio settings. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

audio1
AudioSelectorNamestringNo

The name of the audio selector.

a1
LanguageCodestringNo

Enter a three-letter ISO 639-2 language code. If the audio track selected by the audio selector has a language code, the language code specified in the audio selector is used. If the selected audio track does not have a language code, or if the audio selector cannot find a track that matches its criteria, this language code is used.

eng
LanguageNamestringNo

The tag that identifies the language of the RTMP input. It can be referenced by the output. The maximum length is 32 characters. Supported characters:

  • Unicode letters
  • Digits (0-9)
  • Underscore (_)
  • Hyphen (-)
  • Space (a space cannot be at the beginning or end)
English
AudioCodecstringNo

The audio codec. If it is not specified, the source specification is used. Valid values: aac and libfdk_aac.

libfdk_aac
AudioCodecSettingobjectNo

The audio encoding settings.

ProfilestringNo

The audio codec profile. When AudioCodec is set to aac, AAC-LOW and AAC-MAIN are supported. When AudioCodec is set to libfdk_aac, AAC-LOW, AAC-HE, and AAC-HEV2 are supported.

AAC-LOW
BitrateintegerNo

The audio bitrate. Unit: bit/s. Valid values: 8000 to 1000000. The value must be divisible by 1000.

200000
SampleRateintegerNo

The audio sample rate. Unit: Hz. Valid values: 22050, 32000, 44100, 48000, and 96000.

44100
VideoSettingsarray<object>No

The video settings.

objectNo
NamestringYes

The name of the video settings. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length.

video1
WidthintegerNo

The width of the output. If you set it to 0 or leave it empty, the width automatically adapts to the specified height to maintain the original aspect ratio.

Valid values:

  • For regular transcoding, the larger dimension cannot exceed 3840 px, and the smaller one cannot exceed 2160 px.
  • For Narrowband HD™ transcoding, the larger dimension cannot exceed 1920 px, and the smaller one cannot exceed 1080 px.
1280
HeightintegerNo

The height of the output. If you set it to 0 or leave it empty, the height automatically adapts to the specified width to maintain the original aspect ratio.

Valid values:

  • For regular transcoding, the larger dimension cannot exceed 3840 px, and the smaller one cannot exceed 2160 px.
  • For Narrowband HD™ transcoding, the larger dimension cannot exceed 1920 px, and the smaller one cannot exceed 1080 px.
720
VideoCodecstringNo

The video codec. Valid values: H264 and H265.

H264
VideoCodecSettingobjectNo

The video encoding settings.

RateobjectNo

The video encoding rate. If it is not specified, the source specification is used.

BitrateintegerNo

The video bitrate. Unit: bit/s. If you set it to 0 or leave it empty, the source specification is used. Valid values: 50000 to 6000000. The value must be divisible by 1000.

2500000
RateControlModestringNo

The bitrate control mode. Valid values: CBR, ABR, and VBR.

ABR
MaxBitrateintegerNo

The maximum bitrate. Unit: bit/s. Valid values: 100000 to 6000000. The value must be divisible by 1000.

6000000
BufferSizeintegerNo

The video buffer size. Unit: bit/s. Valid values: 100000 to 6000000. The value must be divisible by 1000.

6000000
FramerateobjectNo

The frame rate. If it is not specified, the source specification is used.

FramerateControlstringNo

The frame rate mode. Valid values: SPECIFIED (fixed frame rate) and FROM_SOURCE (use source specification).

SPECIFIED
FramerateNumeratorintegerNo

The numerator of the fixed frame rate. The parameter is required when FramerateControl is set to SPECIFIED. Valid values: 1 to 60. The numerator must be divisible by the denominator.

25
FramerateDenominatorintegerNo

The denominator of the fixed frame rate. The parameter is required when FramerateControl is set to SPECIFIED. Valid values: 1 to 60. The numerator must be divisible by the denominator.

1
GopobjectNo

The GOP setting. If it is not specified, the source specification is used.

GopSizeUnitsstringNo

The GOP size unit. Valid values: FRAMES and SECONDS.

FRAMES
GopSizeintegerNo

The GOP size. When GopSizeUnits is set to SECONDS, the value range is from 1 to 20. When GopSizeUnits is set to FRAMES, the value range is from 1 to 3000.

90
BframesNumintegerNo

The number of B frames. Valid values: 1 to 3.

3
CodecDetailobjectNo

The video encoding settings.

ProfilestringNo

The H.264 profile. Valid values: BASELINE, HIGH, and MAIN. Default value: MAIN. The parameter takes effect only when the codec is H.264.

MAIN
LevelstringNo

The video encoding level. It is not supported yet.

H264_LEVEL_AUTO
VideoCodecTypestringNo

The video transcoding method. Valid values:

  • NORMAL: regular transcoding
  • NBHD: Narrowband HD™ transcoding

If not specified, regular transcoding is used by default.

NORMAL

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

******11-DB8D-4A9A-875B-275798******
ChannelIdstring

The ID of the channel.

SEGK5KA6KYKAWQQH

Examples

Sample success responses

JSONformat

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "ChannelId": "SEGK5KA6KYKAWQQH"
}

Error codes

For a list of error codes, visit the Service error codes.