Mengkueri ringkasan transkoding video dari satu atau beberapa file audio atau video berdasarkan ID-nya, termasuk status transkoding video dan progres transkoding.
Deskripsi operasi
Karena file audio atau video dapat ditranskode beberapa kali, operasi ini hanya mengembalikan ringkasan transkoding yang paling baru.
Kueri batch didukung. Anda dapat mengkueri ringkasan transkoding hingga 10 file audio atau video sekaligus.
Untuk mengkueri informasi tugas transkoding historis, panggil operasi ListTranscodeTask.
Operasi ini hanya mendukung pengkuerian data tugas transkoding dalam satu tahun terakhir.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetTranscodeSummary |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VideoIds |
string |
Yes |
ID audio atau video. Anda dapat menentukan maksimal 10 ID, dipisahkan dengan koma (,). Anda dapat memperoleh ID audio atau video dengan menggunakan metode berikut:
|
"d4860fcc6ae9fed52e8938244****,e1db68cc586644b83e562bcd94****,hhhhhhh" |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
25818875-5F78-4A*****F6-D7393642CA58 |
| NonExistVideoIds |
array |
ID file audio atau video yang tidak ada. |
|
|
string |
ID file audio atau video yang tidak ada. |
["hhhhhhh"] |
|
| TranscodeSummaryList |
array<object> |
Daftar ringkasan transkoding video dari file audio atau video. |
|
|
array<object> |
|||
| CreationTime |
string |
Waktu ketika tugas transkoding dibuat. Waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). |
2019-01-23T12:35:12Z |
| VideoId |
string |
ID audio atau video. |
e1db68cc586644b83e562bcd94**** |
| CompleteTime |
string |
Waktu ketika tugas transkoding selesai. Waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). |
2019-01-23T12:40:12Z |
| TranscodeStatus |
string |
Status transkoding. Nilai valid:
|
Processing. |
| TranscodeTemplateGroupId |
string |
ID kelompok template transkoding yang digunakan untuk transkoding. |
44f9e406bbb*****736a9abe876ecc0 |
| TranscodeJobInfoSummaryList |
array<object> |
Daftar ringkasan pekerjaan transkoding. |
|
|
object |
|||
| CreationTime |
string |
The time when the transcoding job was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2019-02-27T03:34:46Z |
| ErrorMessage |
string |
The error message returned when the transcoding job failed. |
ErrorMessage |
| Height |
string |
The height of the transcoded video output. Unit: px. |
960 |
| TranscodeProgress |
integer |
The transcoding progress. Value range: |
100 |
| TranscodeTemplateId |
string |
The ID of the transcoding template used. |
57496724ae2*****0968d6e08acc8f6 |
| Bitrate |
string |
The average bitrate of the transcoded video output. Unit: Kbps. |
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 (UTC). |
2019-02-27T03:40:51Z |
| Width |
string |
The width of the transcoded video output. Unit: px. |
544 |
| Duration |
string |
The duration of the transcoded video output. Unit: seconds. |
12 |
| Fps |
string |
The frame rate of the transcoded video output. Unit: frames per second. |
30 |
| TranscodeJobStatus |
string |
The status of the transcoding job. Valid values:
|
Transcoding |
| Filesize |
integer |
The file size of the transcoded video output. Unit: bytes. |
1144259 |
| Format |
string |
The container format of the transcoded video output. |
mp4 |
| WatermarkIdList |
array |
The list of watermarks used for transcoding. |
|
|
string |
The list of watermarks used for transcoding. |
["af2afe4761992c*****d947dae97337"] |
Contoh
Respons sukses
JSONformat
{
"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\"]"
]
}
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.