Queries video transcoding summary of one or more audio or video files by their IDs, including video transcoding status and transcoding progress.
Operation description
Because an audio or video file may be transcoded multiple times, this operation returns only the most recent transcoding summary.
Batch queries are supported. You can query the transcoding summaries of up to 10 audio or video files at a time.
To query historical transcoding task information, call the ListTranscodeTask operation.
This operation supports querying transcoding task data only within the last year.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetTranscodeSummary |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VideoIds |
string |
Yes |
The audio or video IDs. You can specify a maximum of 10 IDs, separated by commas (,). You can obtain the audio or video ID by using the following methods:
|
"d4860fcc6ae9fed52e8938244****,e1db68cc586644b83e562bcd94****,hhhhhhh" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4A*****F6-D7393642CA58 |
| NonExistVideoIds |
array |
The IDs of audio or video files that do not exist. |
|
|
string |
The IDs of audio or video files that do not exist. |
["hhhhhhh"] |
|
| TranscodeSummaryList |
array<object> |
The video transcoding summary list of audio or video files. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the transcoding task was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2019-01-23T12:35:12Z |
| VideoId |
string |
The audio or video ID. |
e1db68cc586644b83e562bcd94**** |
| CompleteTime |
string |
The time when the transcoding task was complete. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2019-01-23T12:40:12Z |
| TranscodeStatus |
string |
The transcoding status. Valid values:
|
Processing |
| TranscodeTemplateGroupId |
string |
The ID of the transcoding template group used for transcoding. |
44f9e406bbb*****736a9abe876ecc0 |
| TranscodeJobInfoSummaryList |
array<object> |
The list of transcoding job summaries. |
|
|
object |
|||
| CreationTime |
string |
The time when the transcoding job was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-02-27T03:34:46Z |
| ErrorMessage |
string |
The error message returned when the transcoding job failed. |
ErrorMessage |
| Height |
string |
The height of the output video. Unit: pixels. |
960 |
| TranscodeProgress |
integer |
The transcoding progress. Valid values: |
100 |
| TranscodeTemplateId |
string |
The ID of the transcoding template. |
57496724ae2*****0968d6e08acc8f6 |
| Bitrate |
string |
The average bitrate of the output video. Unit: Kbit/s. |
749 |
| ErrorCode |
string |
The error code returned when the transcoding job failed. |
200 |
| CompleteTime |
string |
The time when the transcoding job was complete. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-02-27T03:40:51Z |
| Width |
string |
The width of the output video. Unit: pixels. |
544 |
| Duration |
string |
The duration of the output video. Unit: seconds. |
12 |
| Fps |
string |
The frame rate of the output video. Unit: frames per second. |
30 |
| TranscodeJobStatus |
string |
The status of the transcoding job. Valid values:
|
Transcoding |
| Filesize |
integer |
The size of the output video. Unit: bytes. |
1144259 |
| Format |
string |
The container format of the output video. |
mp4 |
| WatermarkIdList |
array |
The IDs of the watermarks that are applied to the output video. |
|
|
string |
The IDs of the watermarks that are applied to the output video. |
["af2afe4761992c*****d947dae97337"] |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.