GetMediaProducingJob

Updated at:

Queries the details of a video editing and producing job, including the task status, timeline, template, and data of the job.

Operation description

Limits

This operation supports querying editing task data only for the last three months.

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

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

JobId

string

No

The ID of the video editing and producing job.

****cdb3e74639973036bc84****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

****83B7-7F87-4792-BFE9-63CD2137****

MediaProducingJob

object

The cloud editing project information.

JobId

string

The ID of the video editing and producing job.

****cdb3e74639973036bc84****

ProjectId

string

The ID of the cloud editing project.

****fddd7748b58bf1d47e95****

MediaId

string

The resource ID of the produced media asset.

****0cc6ba49eab379332c5b****

MediaURL

string

The URL of the resource file for the produced media asset.

http://example-bucket.oss-cn-shanghai.aliyuncs.com/example2.mp4

Timeline

string

The timeline corresponding to the video editing and producing job.

{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]}

TemplateId

string

The ID of the template corresponding to the video editing and producing job.

****6e76134d739cc3e85d3e****

ClipsParam

string

The template parameters corresponding to the video editing and producing job.

{"VideoArray":["****05512043f49f697f7425****","****05512043f49f697f7425****","****05512043f49f697f7425****"]}

Duration

number

The duration of the produced media asset.

Important This field has a value only when the producing task is successful and the produced media asset is an audio or video file.

30.500000

CreateTime

string

The time when the video editing and producing job was created. The time is displayed in UTC.

Format: "YYYY-MM-DD'T'hh:mm:ss'Z'".

2020-12-23T13:33:40Z

CompleteTime

string

The time when the video editing and producing job was completed. The time is displayed in UTC.

Format: "YYYY-MM-DD'T'hh:mm:ss'Z'".

2020-12-23T13:33:52Z

ModifiedTime

string

The time when the video editing and producing job was modified. The time is displayed in UTC.

Format: "YYYY-MM-DD'T'hh:mm:ss'Z'".

2020-12-23T13:33:49Z

Status

string

The status of the video editing and producing job. Valid values:

  • Init: Initial state.

  • Queuing: Queuing.

  • Processing: Processing.

  • Success: Succeeded.

  • Failed: Failed.

Failed

Code

string

The error code of the video editing and producing job.

Important Check this field when the job fails.

ExceededMaximumValue

Message

string

The error message of the video editing and producing job.

Important Check this field when the job fails.

The specified "Width_Height" has exceeded maximum value.

VodMediaId

string

The media asset ID in ApsaraVideo VOD. If the produced media asset of the editing task is exported to ApsaraVideo VOD, the produced media asset is registered as a media asset in ApsaraVideo VOD. This field indicates the ID of the media asset in ApsaraVideo VOD.

****332c5b0cc6ba49eab379****

UserData

string

The custom user settings in JSON format.

{"NotifyAddress":"http://xx.xx.xxx","Key":"Valuexxx"}

SubJobMaterials

string

The material information used by the subtask, such as the voiceover script and title. This field is returned when the editing task is a subtask of a batch intelligent one-click video producing task.

{"Title": "title", "SpeechText": "Batch intelligent one-click into a piece of oral copy"}

Progress

integer

The processing progress of the task. Valid values: 0 to 100. A value of 0 indicates that the task has not started, and a value of 100 indicates that the task is completed.

100

Examples

Success response

JSON format

{
  "RequestId": "****83B7-7F87-4792-BFE9-63CD2137****",
  "MediaProducingJob": {
    "JobId": "****cdb3e74639973036bc84****",
    "ProjectId": "****fddd7748b58bf1d47e95****",
    "MediaId": "****0cc6ba49eab379332c5b****",
    "MediaURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example2.mp4",
    "Timeline": "{\"VideoTracks\":[{\"VideoTrackClips\":[{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"},{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"}]}]}",
    "TemplateId": "****6e76134d739cc3e85d3e****",
    "ClipsParam": "{\"VideoArray\":[\"****05512043f49f697f7425****\",\"****05512043f49f697f7425****\",\"****05512043f49f697f7425****\"]}",
    "Duration": 30.5,
    "CreateTime": "2020-12-23T13:33:40Z",
    "CompleteTime": "2020-12-23T13:33:52Z",
    "ModifiedTime": "2020-12-23T13:33:49Z",
    "Status": "Failed",
    "Code": "ExceededMaximumValue",
    "Message": "The specified \"Width_Height\" has exceeded maximum value.",
    "VodMediaId": "****332c5b0cc6ba49eab379****",
    "UserData": "{\"NotifyAddress\":\"http://xx.xx.xxx\",\"Key\":\"Valuexxx\"}",
    "SubJobMaterials": "{\"Title\": \"title\", \"SpeechText\": \"Batch intelligent one-click into a piece of oral copy\"}",
    "Progress": 100
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter \ is not valid.
404 JobNotFound The specified job not found

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.