GetMediaProducingJob
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
Test
RAM authorization
|
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:
|
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.