Mengkueri detail pekerjaan transkoding berdasarkan ID tugas transkoding.
Deskripsi operasi
You can call this operation to query only transcoding tasks created within the past year.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetTranscodeTask |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TranscodeTaskId |
string |
No |
ID tugas transkoding. Anda dapat menggunakan salah satu metode berikut untuk mendapatkan ID:
|
b1b65ab107e14*****3dbb900f6c1fe0 |
| JobIds |
string |
No |
ID Pekerjaan transkoding. Anda dapat menentukan hingga 10 ID. Pisahkan beberapa ID dengan koma (,). Anda dapat memperoleh nilai ini dengan metode berikut: Ketika Anda memulai tugas transkoding dengan memanggil operasi SubmitTranscodeJobs, nilainya dikembalikan dalam parameter respons JobId. |
86c1925fba0****,7afb201e7fa****,2cc4997378**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F4C6D5BE-BF13-45*****6C-516EA8906DCD |
| NonExistJobIds |
array |
The nonexistent job ID. |
|
|
string |
The nonexistent job ID. |
["hhhhhhh"] |
|
| TranscodeJobInfoList |
array<object> |
List of transcode job information. |
|
|
array<object> |
|||
| Definition |
string |
The clarity and audio quality types are defined as follows:
Catatan
This value represents the clarity label configured in the transcoding template and does not indicate the actual resolution range of the transcoded output file. |
LD |
| CreationTime |
string |
The creation time of the transcoding job. The format is yyyy-MM-dd'T'HH:mm:ssZ (UTC time). |
2019-02-26T08:27:16Z |
| InputFileUrl |
string |
The OSS address of the source file for transcoding. |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv |
| ErrorMessage |
string |
The error message returned. |
ErrorMessage |
| ErrorCode |
string |
The error code. |
200 |
| CompleteTime |
string |
The complete time of the transcoding job. The format is yyyy-MM-dd'T'HH:mm:ssZ (UTC time). |
2019-02-26T08:30:16Z |
| TranscodeProgress |
integer |
The processing progress of the transcoding job. The value range is [0, 100]. |
80 |
| Priority |
string |
The priority of the transcoding task. |
6 |
| TranscodeJobStatus |
string |
The status of the transcoding job: Transcoding: Transcoding in progress. TranscodeSuccess: Transcoding successful. TranscodeFail: Transcoding failed. |
Transcoding |
| TranscodeTemplateId |
string |
The ID of the template used for the transcode job. |
174b0534fea3*****b51c8f0ad1374 |
| TranscodeJobId |
string |
The ID of the transcode job. |
38f0e513c88*****85515f9d50be188 |
| OutputFile |
object |
Information about the transcoded output files. |
|
| VideoStreamList |
string |
List of video streams. |
[{\"AvgFPS\":\"30.0\",\"Bitrate\":\"933.814\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"CodecName\":\"h264\",\"CodecTag\":\"0x31637661\",\"CodecTagString\":\"avc1\",\"CodecTimeBase\":\"1/60\",\"Dar\":\"9:16\",\"Duration\":\"12.033333\",\"Fps\":\"30.0\",\"HasBFrames\":\"2\",\"Height\":\"360\",\"Index\":\"0\",\"Lang\":\"und\",\"Level\":\"30\",\"PixFmt\":\"yuv420p\",\"Profile\":\"High\",\"Sar\":\"81:256\",\"StartTime\":\"0.000000\",\"Timebase\":\"1/15360\",\"Width\":\"640\"}] |
| OutputFileUrl |
string |
OSS address of the transcoded output file. |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4 |
| Encryption |
string |
Encryption configuration used for the transcoded output file. Values:
|
{\"EncryptType\":\"AliyunVoDEncryption\"} |
| Height |
string |
Height of the video frame in the transcoded output file. Unit: pixels (px). |
360 |
| SubtitleStreamList |
string |
List of subtitle streams. |
[] |
| Bitrate |
string |
Average bitrate of the transcoded output file. Unit: Kbps. |
964 |
| AudioStreamList |
string |
List of audio streams. |
"AudioStreamList": "[{\"Bitrate\":\"64.533\",\"ChannelLayout\":\"stereo\",\"Channels\":\"2\",\"CodecLongName\":\"AAC (Advanced Audio Coding)\",\"CodecName\":\"aac\",\"CodecTag\":\"0x6134706d\",\"CodecTagString\":\"mp4a\",\"CodecTimeBase\":\"1/44100\",\"Duration\":\"12.615533\",\"Index\":\"1\",\"Lang\":\"und\",\"SampleFmt\":\"fltp\",\"Samplerate\":\"44100\",\"StartTime\":\"-0.046440\",\"Timebase\":\"1/44100\"}] |
| Width |
string |
Width of the video frame in the transcoded output file. Unit: pixels (px). |
640 |
| Fps |
string |
Frame rate of the transcoded output file. Unit: frames per second (fps). |
25 |
| Duration |
string |
Duration of the transcoded output file. Unit: seconds (s). |
12 |
| Format |
string |
Container format of the transcoded output file. |
m3u8 |
| Filesize |
integer |
Size of the transcoded output file. Unit: bytes (B). |
851076 |
| WatermarkIdList |
array |
List of watermarks used for transcoding. |
|
|
string |
List of watermarks used for transcoding. |
["64079a0e3e286*****b48a8c9413"] |
|
| TranscodeTask |
object |
Details about transcoding tasks. |
|
| CreationTime |
string |
The time when the transcoding task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-01-23T12:35:12Z |
| Trigger |
string |
The mode in which the transcoding task is triggered. Valid values:
|
Auto |
| TaskStatus |
string |
The status of the transcoding task. Valid values:
|
Processing |
| VideoId |
string |
The ID of the audio or video file. |
883f5d98107*****b7f20aaa352f |
| CompleteTime |
string |
The time when the transcoding task was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-01-23T12:40:12Z |
| TranscodeTemplateGroupId |
string |
The ID of the transcoding template group. |
b500c7094bd241*****3e9900752d7c3 |
| TranscodeTaskId |
string |
The ID of the transcoding task. |
b1b65ab107e14*****3dbb900f6c1fe0 |
| TranscodeJobInfoList |
array<object> |
Details about transcoding jobs. |
|
|
array<object> |
|||
| Definition |
string |
The video resolution. Valid values:
Catatan
This parameter indicates the definition that is configured in the transcoding template and does not indicate the actual resolution of the output video. |
LD |
| CreationTime |
string |
The time when the transcoding job was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-02-26T08:27:16Z |
| InputFileUrl |
string |
The Object Storage Service (OSS) URL of the input file. |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv |
| ErrorMessage |
string |
The error message returned when the transcoding job failed. |
ErrorMessage |
| ErrorCode |
string |
The error code returned when the transcoding job failed. |
200 |
| CompleteTime |
string |
The time when the transcoding job was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-02-26T08:30:16Z |
| TranscodeProgress |
integer |
The progress of the transcoding job. Valid values: |
100 |
| Priority |
string |
The priority of the transcoding job. |
6 |
| TranscodeJobStatus |
string |
The status of the transcoding job.
|
Transcoding |
| TranscodeTemplateId |
string |
The ID of the transcoding template. |
174b0534fea3*****b51c8f0ad1374 |
| TranscodeJobId |
string |
The ID of the transcoding job. |
38f0e513c88*****85515f9d50be188 |
| OutputFile |
object |
The information about the output file. |
|
| VideoStreamList |
string |
The video streams. |
[{\"AvgFPS\":\"30.0\",\"Bitrate\":\"933.814\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"CodecName\":\"h264\",\"CodecTag\":\"0x31637661\",\"CodecTagString\":\"avc1\",\"CodecTimeBase\":\"1/60\",\"Dar\":\"9:16\",\"Duration\":\"12.033333\",\"Fps\":\"30.0\",\"HasBFrames\":\"2\",\"Height\":\"360\",\"Index\":\"0\",\"Lang\":\"und\",\"Level\":\"30\",\"PixFmt\":\"yuv420p\",\"Profile\":\"High\",\"Sar\":\"81:256\",\"StartTime\":\"0.000000\",\"Timebase\":\"1/15360\",\"Width\":\"640\"}] |
| OutputFileUrl |
string |
The OSS URL of the output file. |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4 |
| Encryption |
string |
The encryption method of the output file. Valid values:
|
{\"EncryptType\":\"AliyunVoDEncryption\"} |
| Height |
string |
The height of the output video. Unit: pixels. |
360 |
| SubtitleStreamList |
string |
The subtitle streams. |
[] |
| Bitrate |
string |
The average bitrate of the output file. Unit: Kbit/s. |
964 |
| AudioStreamList |
string |
The audio streams. |
"AudioStreamList": "[{\"Bitrate\":\"64.533\",\"ChannelLayout\":\"stereo\",\"Channels\":\"2\",\"CodecLongName\":\"AAC (Advanced Audio Coding)\",\"CodecName\":\"aac\",\"CodecTag\":\"0x6134706d\",\"CodecTagString\":\"mp4a\",\"CodecTimeBase\":\"1/44100\",\"Duration\":\"12.615533\",\"Index\":\"1\",\"Lang\":\"und\",\"SampleFmt\":\"fltp\",\"Samplerate\":\"44100\",\"StartTime\":\"-0.046440\",\"Timebase\":\"1/44100\"}] |
| Width |
string |
The width of the output video. Unit: pixels. |
640 |
| Fps |
string |
The frame rate of the output file. Unit: frames per second. |
25 |
| Duration |
string |
The length of the output file. Unit: seconds. |
12 |
| Format |
string |
The container format of the output file. |
m3u8 |
| Filesize |
integer |
The size of the output file. Unit: byte. |
851076 |
| WatermarkIdList |
array |
The IDs of the watermarks used by the output file. |
|
|
string |
The IDs of the watermarks used by the output file. |
["64079a0e3e286*****b48a8c9413"] |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD",
"NonExistJobIds": [
"[\"hhhhhhh\"]"
],
"TranscodeJobInfoList": [
{
"Definition": "LD",
"CreationTime": "2019-02-26T08:27:16Z",
"InputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv",
"ErrorMessage": "ErrorMessage",
"ErrorCode": "200",
"CompleteTime": "2019-02-26T08:30:16Z\n",
"TranscodeProgress": 80,
"Priority": "6",
"TranscodeJobStatus": "Transcoding",
"TranscodeTemplateId": "174b0534fea3*****b51c8f0ad1374",
"TranscodeJobId": "38f0e513c88*****85515f9d50be188",
"OutputFile": {
"VideoStreamList": "[{\\\"AvgFPS\\\":\\\"30.0\\\",\\\"Bitrate\\\":\\\"933.814\\\",\\\"CodecLongName\\\":\\\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\\\",\\\"CodecName\\\":\\\"h264\\\",\\\"CodecTag\\\":\\\"0x31637661\\\",\\\"CodecTagString\\\":\\\"avc1\\\",\\\"CodecTimeBase\\\":\\\"1/60\\\",\\\"Dar\\\":\\\"9:16\\\",\\\"Duration\\\":\\\"12.033333\\\",\\\"Fps\\\":\\\"30.0\\\",\\\"HasBFrames\\\":\\\"2\\\",\\\"Height\\\":\\\"360\\\",\\\"Index\\\":\\\"0\\\",\\\"Lang\\\":\\\"und\\\",\\\"Level\\\":\\\"30\\\",\\\"PixFmt\\\":\\\"yuv420p\\\",\\\"Profile\\\":\\\"High\\\",\\\"Sar\\\":\\\"81:256\\\",\\\"StartTime\\\":\\\"0.000000\\\",\\\"Timebase\\\":\\\"1/15360\\\",\\\"Width\\\":\\\"640\\\"}]",
"OutputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4",
"Encryption": "{\\\"EncryptType\\\":\\\"AliyunVoDEncryption\\\"}",
"Height": "360",
"SubtitleStreamList": "[]",
"Bitrate": "964",
"AudioStreamList": "\"AudioStreamList\": \"[{\\\"Bitrate\\\":\\\"64.533\\\",\\\"ChannelLayout\\\":\\\"stereo\\\",\\\"Channels\\\":\\\"2\\\",\\\"CodecLongName\\\":\\\"AAC (Advanced Audio Coding)\\\",\\\"CodecName\\\":\\\"aac\\\",\\\"CodecTag\\\":\\\"0x6134706d\\\",\\\"CodecTagString\\\":\\\"mp4a\\\",\\\"CodecTimeBase\\\":\\\"1/44100\\\",\\\"Duration\\\":\\\"12.615533\\\",\\\"Index\\\":\\\"1\\\",\\\"Lang\\\":\\\"und\\\",\\\"SampleFmt\\\":\\\"fltp\\\",\\\"Samplerate\\\":\\\"44100\\\",\\\"StartTime\\\":\\\"-0.046440\\\",\\\"Timebase\\\":\\\"1/44100\\\"}]",
"Width": "640",
"Fps": "25",
"Duration": "12",
"Format": "m3u8",
"Filesize": 851076,
"WatermarkIdList": [
"[\"64079a0e3e286*****b48a8c9413\"]"
]
}
}
],
"TranscodeTask": {
"CreationTime": "2019-01-23T12:35:12Z",
"Trigger": "Auto ",
"TaskStatus": "Processing",
"VideoId": "883f5d98107*****b7f20aaa352f",
"CompleteTime": "2019-01-23T12:40:12Z",
"TranscodeTemplateGroupId": "b500c7094bd241*****3e9900752d7c3",
"TranscodeTaskId": "b1b65ab107e14*****3dbb900f6c1fe0",
"TranscodeJobInfoList": [
{
"Definition": "LD",
"CreationTime": "2019-02-26T08:27:16Z",
"InputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv",
"ErrorMessage": "ErrorMessage",
"ErrorCode": "200",
"CompleteTime": "2019-02-26T08:30:16Z",
"TranscodeProgress": 100,
"Priority": "6",
"TranscodeJobStatus": "Transcoding",
"TranscodeTemplateId": "174b0534fea3*****b51c8f0ad1374",
"TranscodeJobId": "38f0e513c88*****85515f9d50be188",
"OutputFile": {
"VideoStreamList": "[{\\\"AvgFPS\\\":\\\"30.0\\\",\\\"Bitrate\\\":\\\"933.814\\\",\\\"CodecLongName\\\":\\\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\\\",\\\"CodecName\\\":\\\"h264\\\",\\\"CodecTag\\\":\\\"0x31637661\\\",\\\"CodecTagString\\\":\\\"avc1\\\",\\\"CodecTimeBase\\\":\\\"1/60\\\",\\\"Dar\\\":\\\"9:16\\\",\\\"Duration\\\":\\\"12.033333\\\",\\\"Fps\\\":\\\"30.0\\\",\\\"HasBFrames\\\":\\\"2\\\",\\\"Height\\\":\\\"360\\\",\\\"Index\\\":\\\"0\\\",\\\"Lang\\\":\\\"und\\\",\\\"Level\\\":\\\"30\\\",\\\"PixFmt\\\":\\\"yuv420p\\\",\\\"Profile\\\":\\\"High\\\",\\\"Sar\\\":\\\"81:256\\\",\\\"StartTime\\\":\\\"0.000000\\\",\\\"Timebase\\\":\\\"1/15360\\\",\\\"Width\\\":\\\"640\\\"}]",
"OutputFileUrl": "http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4",
"Encryption": "{\\\"EncryptType\\\":\\\"AliyunVoDEncryption\\\"}",
"Height": "360",
"SubtitleStreamList": "[]",
"Bitrate": "964",
"AudioStreamList": "\"AudioStreamList\": \"[{\\\"Bitrate\\\":\\\"64.533\\\",\\\"ChannelLayout\\\":\\\"stereo\\\",\\\"Channels\\\":\\\"2\\\",\\\"CodecLongName\\\":\\\"AAC (Advanced Audio Coding)\\\",\\\"CodecName\\\":\\\"aac\\\",\\\"CodecTag\\\":\\\"0x6134706d\\\",\\\"CodecTagString\\\":\\\"mp4a\\\",\\\"CodecTimeBase\\\":\\\"1/44100\\\",\\\"Duration\\\":\\\"12.615533\\\",\\\"Index\\\":\\\"1\\\",\\\"Lang\\\":\\\"und\\\",\\\"SampleFmt\\\":\\\"fltp\\\",\\\"Samplerate\\\":\\\"44100\\\",\\\"StartTime\\\":\\\"-0.046440\\\",\\\"Timebase\\\":\\\"1/44100\\\"}]",
"Width": "640",
"Fps": "25",
"Duration": "12",
"Format": "m3u8",
"Filesize": 851076,
"WatermarkIdList": [
"[\"64079a0e3e286*****b48a8c9413\"]"
]
}
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.