調用本介面根據轉碼任務ID查詢轉碼作業詳細資料。
介面說明
使用說明
本介面僅支援查詢一年內的轉碼任務資料。
QPS 限制
本介面的單使用者 QPS 限制為 15 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。更多資訊,請參見 QPS 限制。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:GetTranscodeTask |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TranscodeTaskId |
string |
否 |
轉碼任務 ID,可通過以下方式擷取:
|
b1b65ab107e14*****3dbb900f6c1fe0 |
| JobIds |
string |
否 |
轉碼作業 ID,最多支援 10 個 ID,多個 ID 之間使用半形逗號(,)分隔。可通過以下方式擷取:
|
86c1925fba0****,7afb201e7fa****,2cc4997378**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
F4C6D5BE-BF13-45*****6C-516EA8906DCD |
| NonExistJobIds |
array |
不存在的轉碼作業 ID 列表。 |
|
|
string |
不存在的轉碼作業 ID 列表。 |
["hhhhhhh"] |
|
| TranscodeJobInfoList |
array<object> |
轉碼作業資訊。 |
|
|
array<object> |
轉碼作業資訊。 |
||
| Definition |
string |
視頻清晰度。取值:
說明
該值為轉碼模板配置的清晰度標記,不表示轉碼輸出檔案實際的解析度範圍。 |
LD |
| CreationTime |
string |
轉碼作業建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-02-26T08:27:16Z |
| InputFileUrl |
string |
轉碼源檔案的 OSS 地址。 |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv |
| ErrorMessage |
string |
轉碼失敗錯誤資訊。 |
ErrorMessage |
| ErrorCode |
string |
轉碼失敗錯誤碼。 |
200 |
| CompleteTime |
string |
轉碼作業完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-02-26T08:30:16Z |
| TranscodeProgress |
integer |
轉碼作業處理進度。取值範圍: |
2019-02-26T08:30:16Z |
| Priority |
string |
轉碼任務優先順序。 |
6 |
| TranscodeJobStatus |
string |
轉碼作業狀態。
|
Transcoding |
| TranscodeTemplateId |
string |
轉碼使用的轉碼模板 ID。 |
174b0534fea3*****b51c8f0ad1374 |
| TranscodeJobId |
string |
轉碼作業 ID。 |
38f0e513c88*****85515f9d50be188 |
| OutputFile |
object |
轉碼輸出檔案的資訊。 |
|
| VideoStreamList |
string |
視頻流列表。 |
[{\"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 地址。 |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4 |
| Encryption |
string |
轉碼輸出檔案使用的加密配置。取值:
|
{\"EncryptType\":\"AliyunVoDEncryption\"} |
| Height |
string |
轉碼輸出檔案視頻畫面高。單位:px。 |
360 |
| SubtitleStreamList |
string |
字幕流列表。 |
[] |
| Bitrate |
string |
轉碼輸出檔案平均碼率。單位:Kbps。 |
964 |
| AudioStreamList |
string |
音頻流列表。 |
"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 |
轉碼輸出檔案視頻畫面寬。單位:px。 |
640 |
| Fps |
string |
轉碼輸出檔案的幀率。單位:幀/秒。 |
25 |
| Duration |
string |
轉碼輸出檔案時間長度。單位:秒。 |
12 |
| Format |
string |
轉碼輸出檔案的封裝格式。 |
m3u8 |
| Filesize |
integer |
轉碼輸出檔案大小。單位:Byte。 |
851076 |
| WatermarkIdList |
array |
轉碼使用的浮水印列表。 |
|
|
string |
轉碼使用的浮水印列表。 |
["64079a0e3e286*****b48a8c9413"] |
|
| TranscodeTask |
object |
轉碼任務資訊。 |
|
| CreationTime |
string |
轉碼任務建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-01-23T12:35:12Z |
| Trigger |
string |
觸發類型。取值:
|
Auto |
| TaskStatus |
string |
轉碼任務狀態。取值:
|
Processing |
| VideoId |
string |
音/視頻 ID。 |
883f5d98107*****b7f20aaa352f |
| CompleteTime |
string |
轉碼任務完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-01-23T12:40:12Z |
| TranscodeTemplateGroupId |
string |
轉碼使用的模板組 ID。 |
b500c7094bd241*****3e9900752d7c3 |
| TranscodeTaskId |
string |
轉碼任務 ID。 |
b1b65ab107e14*****3dbb900f6c1fe0 |
| TranscodeJobInfoList |
array<object> |
轉碼作業資訊。 |
|
|
array<object> |
轉碼作業資訊。 |
||
| Definition |
string |
視頻清晰度。取值:
說明
該值為轉碼模板配置的清晰度標記,不表示轉碼輸出檔案實際的解析度範圍。 |
LD |
| CreationTime |
string |
轉碼作業建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-02-26T08:27:16Z |
| InputFileUrl |
string |
轉碼源檔案的 OSS 地址。 |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e*****47f38e/31f1184c-*****b2a2-f94-c213f.wmv |
| ErrorMessage |
string |
轉碼失敗錯誤資訊。 |
ErrorMessage |
| ErrorCode |
string |
轉碼失敗錯誤碼。 |
200 |
| CompleteTime |
string |
轉碼作業完成時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-02-26T08:30:16Z |
| TranscodeProgress |
integer |
轉碼作業處理進度。取值範圍: |
100 |
| Priority |
string |
轉碼任務優先順序。 |
6 |
| TranscodeJobStatus |
string |
轉碼作業狀態。
|
Transcoding |
| TranscodeTemplateId |
string |
轉碼使用的轉碼模板 ID。 |
174b0534fea3*****b51c8f0ad1374 |
| TranscodeJobId |
string |
轉碼作業 ID。 |
38f0e513c88*****85515f9d50be188 |
| OutputFile |
object |
轉碼輸出檔案的資訊。 |
|
| VideoStreamList |
string |
視頻流列表。 |
[{\"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 地址。 |
http://outin-40564*****e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d*****f20aaa352f/c3be4f073*****7d5193ec8-{DestMd5}-od-S00000001-200000.mp4 |
| Encryption |
string |
轉碼輸出檔案使用的加密配置。取值:
|
{\"EncryptType\":\"AliyunVoDEncryption\"} |
| Height |
string |
轉碼輸出檔案視頻畫面高。單位:px。 |
360 |
| SubtitleStreamList |
string |
字幕流列表。 |
[] |
| Bitrate |
string |
轉碼輸出檔案平均碼率。單位:Kbps。 |
964 |
| AudioStreamList |
string |
音頻流列表。 |
"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 |
轉碼輸出檔案視頻畫面寬。單位:px。 |
640 |
| Fps |
string |
轉碼輸出檔案的幀率。單位:幀/秒。 |
25 |
| Duration |
string |
轉碼輸出檔案時間長度。單位:秒。 |
12 |
| Format |
string |
轉碼輸出檔案的封裝格式。 |
m3u8 |
| Filesize |
integer |
轉碼輸出檔案大小。單位:Byte。 |
851076 |
| WatermarkIdList |
array |
轉碼輸出檔案使用的浮水印 ID 列表。 |
|
|
string |
轉碼輸出檔案使用的浮水印 ID 列表。 |
["64079a0e3e286*****b48a8c9413"] |
樣本
正常返回樣本
JSON格式
{
"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": 0,
"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\"]"
]
}
}
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。