All Products
Search
Document Center

Intelligent Media Services:CreateMediaLiveInput

Last Updated:Aug 28, 2026

Creates a live media input.

Operation description

  • Creates a live media input.

Queries per second (QPS) limit

The QPS limit for this API operation is 50 requests per second per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation appropriately.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:CreateMediaLiveInput

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

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

myinput

Type

string

Yes

The input type. Valid values: RTMP_PUSH, RTMP_PULL, SRT_PUSH, SRT_PULL, and MEDIA_CONNECT.

RTMP_PUSH

SecurityGroupIds

array

No

The IDs of the security groups to be associated with the input. This parameter is required for PUSH inputs.

["G6G4X5T4SZYPSTT5"]

string

No

The ID of the security group.

G6G4X5T4SZYPSTT5

InputSettings

array<object>

Yes

The input settings. An input can have up to two sources: primary and backup sources.

object

No

StreamName

string

No

The name of the pushed stream. This parameter is required for PUSH inputs. It can be up to 255 characters in length.

mystream

SourceUrl

string

No

The source URL from which the stream is pulled. This parameter is required for PULL inputs.

rtmp://domain/app/stream

FlowId

string

No

The ID of the flow from MediaConnect. This parameter is required when Type is set to MEDIA_CONNECT.

******81-9693-40dc-bbab-db5e49******

FlowOutputName

string

No

The output name of the MediaConnect flow. This parameter is required when Type is set to MEDIA_CONNECT.

myFlowOutputName

SrtMaxBitrate

integer

No

The maximum bitrate of the SRT stream, in bits per second (bps). Valid values: [100, 100000000]. This parameter is optional when Type is SRT_PUSH or SRT_PULL.

3000000

SrtLatency

integer

No

The latency of the SRT stream, in milliseconds (ms). Valid values: [100, 10000]. This parameter is optional when Type is SRT_PUSH or SRT_PULL.

1000

SrtPassphrase

string

No

The SRT encryption passphrase, which consists of 10 to 79 visible ASCII characters. This parameter is optional when Type is SRT_PUSH or SRT_PULL.

If a passphrase is specified, all SRT clients must provide the correct passphrase to publish or play back the stream. Otherwise, the SRT connection is rejected.

srtencryption

SrtPbKeyLen

integer

No

The SRT encryption key length. Valid values: 0, 16, 24, and 32. This parameter is optional when Type is SRT_PUSH or SRT_PULL.

16

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

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

InputId

string

The input ID.

SEGK5KA6KYKAWQQH

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.