Queries transcoding summaries of audio and video files based on the file ID. A transcoding summary includes the status and progress of transcoding.
Operation description
- An audio or video file may be transcoded multiple times. This operation returns only the latest transcoding summary.
- You can query transcoding summaries for a maximum of 10 audio and video files in one request.
- You can call the ListTranscodeTask operation to query historical transcoding tasks.
- **You can call this operation to query information only about transcoding tasks created within the past year.
Debugging
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:
- The required resource types are displayed in bold characters.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vod:GetTranscodeSummary | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
VideoIds | string | Yes | The ID of the audio or video file. You can specify up to 10 IDs. Separate the IDs with commas (,). You can use one of the following methods to obtain the ID:
| "d4860fcc6ae9fed52e8938244****,e1db68cc586644b83e562bcd94****,hhhhhhh" |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"NonExistVideoIds": [
"[\"hhhhhhh\"]"
],
"TranscodeSummaryList": [
{
"CreationTime": "2019-01-23T12:35:12Z",
"VideoId": "e1db68cc586644b83e562bcd94****",
"CompleteTime": "2019-01-23T12:40:12Z",
"TranscodeStatus": "Processing",
"TranscodeTemplateGroupId": "44f9e406bbb*****736a9abe876ecc0",
"TranscodeJobInfoSummaryList": [
{
"CreationTime": "2019-02-27T03:34:46Z",
"ErrorMessage": "ErrorMessage",
"Height": "960",
"TranscodeProgress": 100,
"TranscodeTemplateId": "57496724ae2*****0968d6e08acc8f6",
"Bitrate": "749",
"ErrorCode": "200",
"CompleteTime": "2019-02-27T03:40:51Z",
"Width": "544",
"Duration": "12",
"Fps": "30",
"TranscodeJobStatus": "Transcoding",
"Filesize": 1144259,
"Format": "mp4",
"WatermarkIdList": [
"[\"af2afe4761992c*****d947dae97337\"]"
]
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history