Queries transcoding summaries of media files based on the file ID. A transcoding summary includes the status and progress of media transcoding.
Operation Description
- A media file may be transcoded multiple times. This operation returns only the latest transcoding summary.
- You can query transcoding summaries for a maximum of 10 media 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.
Authorization information
The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action
Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:
- 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 keyword: refers to the condition keyword defined by the cloud product itself.
- 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.
Operate | access level | Resource type | conditional keyword | Association operation |
---|---|---|---|---|
vod:GetTranscodeSummary | Read |
|
| without |
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
Example
Normal return example
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 API error center.