All Products
Search
Document Center

Intelligent Media Services:SubmitLiveEditingJob

Last Updated:Aug 05, 2026

Live editing combines one or more live stream segments into a finished product. After you submit a live editing task, the task enters a background queue and is executed asynchronously. After submission, you can call the GetLiveEditingJob operation to query the job status by jobId. You can also call the GetMediaInfo operation to query information about the generated media asset by MediaId.

Operation description

  • This is an asynchronous operation. After you submit a task, a task ID is returned (the task is not yet complete and enters a background queue for asynchronous execution). The final result is delivered through a callback notification. You can also proactively query the task status by calling GetLiveEditingJob.

  • Live editing is supported for live streams recorded to OSS and VOD. When mixing multiple live streams, all streams must be recorded to OSS or all streams must be recorded to VOD.

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:SubmitLiveEditingJob

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Clips

string

Yes

The list of clip segments. The output is produced by concatenating the segments in the list in order. JSON Array.

Each segment contains a start time and an end time. If no live stream parameters are specified, the outer-level live stream configuration is used. Both start and end timestamps are in UTC. For parameter details, see the Clip data structure below.

[{\"StartTime\": \" 2021-06-21T08:01:00Z\", \"EndTime\": \" 2021-06-21T08:03:00Z\" , "AppName": "app", "DomainName": "domain.com", "StreamName": "stream"}, {\"StartTime\": \" 2021-06-21T08:05:00Z\", \"EndTime\": \" 2021-06-21T08:09:00Z\" }]

ProjectId

string

No

The ID of the live editing project. If this parameter is not empty, the storage configuration associated with the project is used. If this parameter is empty, the storage configuration specified in the request parameters is used.

****fddd7748b58bf1d47e95****

LiveStreamConfig

string

No

The live stream configuration. JSON Object. The following configuration items are required:

  • AppName: the name of the application to which the stream belongs.

  • DomainName: the domain name.

  • StreamName: the name of the live stream.

{ "AppName": "app", "DomainName": "domain.com", "StreamName": "stream" }

OutputMediaConfig

string

No

The destination configuration for the output. JSON Object. You can specify the URL of the output on OSS or the storage location in a VOD bucket.

  • When outputting to OSS, the MediaURL of the output destination is required.

  • When outputting to VOD, the StorageLocation and FileName parameters are required.

{ "MediaURL": "https://ice-auto-test.oss-cn-shanghai.aliyuncs.com/testfile.mp4" }, or { "StorageLocation": "bucket.oss-cn-shanghai.aliyuncs.com", "FileName": "output.mp4" }

MediaProduceConfig

string

No

The composition configuration for generating segments, in JSON format. Mode specifies the editing mode. Valid values:

  • AccurateFast (default): fast accurate editing. This mode is faster than the Accurate mode. The output file resolution is the same as the source stream resolution. Custom output width and height are not supported.

  • Accurate: accurate editing. You can specify the output width and height.

  • Rough: rough editing. The minimum precision is one TS segment. The output contains all segments within the specified start and end time. You can specify the output width and height.

  • RoughFast: fast rough editing. This mode is faster than the Accurate mode. The minimum precision is one TS segment. The output contains all segments within the specified start and end time. The output file resolution is the same as the source stream resolution. Custom output width and height are not supported.

{ "Mode": "AccurateFast"}

UserData

string

No

The custom settings. JSON Object. Maximum length: 512 bytes.

{"key": "value"}

OutputMediaTarget

string

No

The target type of the output. Valid values:

  • oss-object: an OSS object in an Alibaba Cloud OSS bucket.

  • vod-media: a media asset in Alibaba Cloud VOD.

oss-object

Clip data structure

PropertyTypeExampleDescriptionRequired
StartTimeString2021-06-21T08:01:00ZThe start time of the clip segment, in UTC timestamp format.Yes
EndTimeString2021-06-21T08:05:00ZThe end time of the clip segment, in UTC timestamp format.Yes
AppNameStringappThe name of the application to which the stream belongs. If this parameter is empty, the outer-level live stream configuration is used.No
DomainNameStringdomain.comThe domain name. If this parameter is empty, the outer-level live stream configuration is used.No
StreamNameStringstreamThe name of the live stream. If this parameter is empty, the outer-level live stream configuration is used.No
CoverTimeString2021-06-21T08:03:00ZSpecifies a timestamp within the segment to use as the cover image of the output, in UTC timestamp format. When multiple clips have the CoverTime parameter set, only the first one takes effect. CoverTime must be greater than or equal to StartTime and less than or equal to EndTime.No
CoverUrlStringhttps://test.oss-ap-southeast-1.aliyuncs.comThe custom screenshot output URL. The OSS bucket must be in the same region as the service access region. Only self-owned OSS buckets are supported. VOD-managed buckets are not supported.No

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

****36-3C1E-4417-BDB2-1E034F****

ProjectId

string

The ID of the live editing project.

****fddd7748b58bf1d47e95****

JobId

string

The ID of the live editing task.

****d80e4e4044975745c14b****

MediaId

string

The media asset ID of the output.

****c469e944b5a856828dc2****

MediaURL

string

The URL of the output.

http://test-bucket.cn-shanghai.aliyuncs.com/test.mp4

VodMediaId

string

The VOD media asset ID. This parameter is returned when the video output destination is VOD.

****d7578s4h75ci945c14b****

Examples

Success response

JSON format

{
  "RequestId": "****36-3C1E-4417-BDB2-1E034F****",
  "ProjectId": "****fddd7748b58bf1d47e95****",
  "JobId": "****d80e4e4044975745c14b****",
  "MediaId": "****c469e944b5a856828dc2****",
  "MediaURL": "http://test-bucket.cn-shanghai.aliyuncs.com/test.mp4",
  "VodMediaId": "****d7578s4h75ci945c14b****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.