调用本接口根据转码任务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\"]"
]
}
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。