全部产品
云市场

查询转码任务详情

更新时间:2019-03-01 19:26:16

描述

根据转码任务ID查询转码作业详细信息。

请求参数

参数名称 参数类型 必填项 描述
Action String 接口名称,取值:GetTranscodeTask
TranscodeTaskId String 转码任务ID

返回参数

参数名称 参数类型 描述
RequestId String 请求ID
TranscodeTask TranscodeTask[] 转码任务信息

请求示例

  1. https://vod.cn-shanghai.aliyuncs.com?Action=GetTranscodeTask&TranscodeTaskId="ttttttt"

返回示例

  1. {
  2. "RequestId": "F4C6D5BE-BF13-4561-9F6C-516EA8906DCD",
  3. "TranscodeTask": {
  4. "CreationTime": "2019-01-23T12:35:12Z",
  5. "TranscodeTemplateGroupId": "5b95e56c688f8e04f70b70b47f38e",
  6. "VideoId": "883f5d98107f403fab7f20aaa352f",
  7. "TranscodeTaskId": "c3be4f073c3f4534893e7d5193ec8",
  8. "TaskStatus": "CompleteAllSucc",
  9. "CompleteTime": "2019-01-23T12:35:12Z",
  10. "TranscodeJobInfoList": [
  11. {
  12. "InputFileUrl": "http://outin-40564284ef0511e8b2d300163e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/5b95e568f8e04f7c350b70b47f38e/31f1184c-1687ab4e899-0003-b2a2-f94-c213f.wmv",
  13. "TranscodeJobStatus": "TranscodeFail",
  14. "OutputFile": {
  15. "SubtitleStreamList": "[]",
  16. "AudioStreamList": "[]",
  17. "Filesize": 0,
  18. "WatermarkIdList": [
  19. ],
  20. "Duration": "0",
  21. "VideoStreamList": "[]",
  22. "Encryption": "{}",
  23. "Height": "0",
  24. "Width": "0",
  25. "Fps": "0",
  26. "OutputFileUrl": "http://outin-40564284ef0511e8b2d300163e1403e7.oss-cn-shanghai.aliyuncs.com/883f5d98107f403faa0ab7f20aaa352f/c3be4f073c3f4535b24893e7d5193ec8-{DestMd5}-od-S00000001-200000.mp4",
  27. "Bitrate": "0"
  28. },
  29. "TranscodeJobId": "e046ea644e8c983731f2f1061462",
  30. "TranscodeProgress": 20,
  31. "Priority": "6",
  32. "FinishTime": "2019-01-23T12:35:06Z",
  33. "ErrorMessage": "The resource operated InputFile is bad",
  34. "TranscodeTemplateId": "f5ab0194c1944eba374ea18665b3714d",
  35. "CreationTime": "2019-01-23T12:35:05Z",
  36. "ErrorCode": "InvalidParameter.ResourceContentBad",
  37. "Definition": "OD"
  38. },
  39. {
  40. "CreationTime": "2019-02-26T08:27:16Z",
  41. "TranscodeJobStatus": "TranscodeSuccess",
  42. "InputFileUrl": "http://outin-40564284ef0511e8b2d3e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/d96a00e9486af05f69bc1a1974ad/477e0344-16928ea4056-0003-b2a2-f94-c213f.mp4",
  43. "OutputFile": {
  44. "Format": "m3u8",
  45. "Encryption": "{\"EncryptType\":\"AliyunVoDEncryption\"}",
  46. "VideoStreamList": "[{\"AvgFPS\":\"25.0\",\"Bitrate\":\"487.954\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"CodecName\":\"h264\",\"CodecTag\":\"0x001b\",\"CodecTagString\":\"[27][0][0][0]\",\"CodecTimeBase\":\"1/50\",\"Dar\":\"9:16\",\"Duration\":\"12.080000\",\"Fps\":\"25.0\",\"HasBFrames\":\"2\",\"Height\":\"360\",\"Index\":\"0\",\"Level\":\"30\",\"PixFmt\":\"yuv420p\",\"Profile\":\"High\",\"Sar\":\"81:256\",\"StartTime\":\"1.480000\",\"Timebase\":\"1/90000\",\"Width\":\"640\"}]",
  47. "Height": "360",
  48. "SubtitleStreamList": "[]",
  49. "Filesize": 851076,
  50. "AudioStreamList": "[{\"Bitrate\":\"62.015\",\"ChannelLayout\":\"stereo\",\"Channels\":\"2\",\"CodecLongName\":\"AAC (Advanced Audio Coding)\",\"CodecName\":\"aac\",\"CodecTag\":\"0x000f\",\"CodecTagString\":\"[15][0][0][0]\",\"CodecTimeBase\":\"1/44100\",\"Duration\":\"12.379978\",\"Index\":\"1\",\"SampleFmt\":\"fltp\",\"Samplerate\":\"44100\",\"StartTime\":\"1.433556\",\"Timebase\":\"1/90000\"}]",
  51. "WatermarkIdList": [
  52. ],
  53. "Duration": "12",
  54. "Width": "640",
  55. "Fps": "25",
  56. "OutputFileUrl": "http://outin-40564284ef0511e8b2d300163e1403e7.oss-cn-shanghai.aliyuncs.com/e1e63748f833a89b68552e54d5f7/94c4553de59a4615ab926c7e9105732a-83d70e6c4f6a871e004f924434e3-fd-encrypt-stream.m3u8",
  57. "Bitrate": "549"
  58. },
  59. "TranscodeProgress": 100,
  60. "TranscodeJobId": "cbc090458ee87abd0e0dbd6871a39",
  61. "TranscodeTemplateId": "fa0b39136499c5494c63680ddcfd",
  62. "Definition": "LD",
  63. "Priority": "6",
  64. "CompleteTime": "2019-02-26T08:27:19Z"
  65. },
  66. {
  67. "CreationTime": "2019-02-26T08:27:16Z",
  68. "TranscodeJobStatus": "TranscodeSuccess",
  69. "InputFileUrl": "http://outin-40564284ef051d300163e1403e7.oss-cn-shanghai.aliyuncs.com/customerTrans/d96a00e94e1e586af9bc1a1974ad/477e0344-16928ea4056-0003-b2a2-f94-c213f.mp4",
  70. "OutputFile": {
  71. "Format": "mp4",
  72. "Encryption": "{}",
  73. "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\"}]",
  74. "Height": "360",
  75. "Filesize": 1520439,
  76. "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\"}]",
  77. "WatermarkIdList": [
  78. "64079a0e3e286d23b48a8c9413"
  79. ],
  80. "Duration": "12",
  81. "Width": "640",
  82. "Fps": "30",
  83. "OutputFileUrl": "http://outin-40564284ef0511e8b2d3001603e7.oss-cn-shanghai.aliyuncs.com/e1e63748f8c3a89b68552e54d5f7/94c4553de59a4615ab926c7e9105732a-38a82b62eb175bd55ea4c3f560a2c-fd.mp4",
  84. "Bitrate": "964"
  85. },
  86. "TranscodeProgress": 100,
  87. "TranscodeJobId": "ce8fbd628fb3a3001db739a51263",
  88. "TranscodeTemplateId": "0ff6d65db7760ccc643434f38ff",
  89. "Definition": "LD",
  90. "Priority": "6",
  91. "CompleteTime": "2019-02-26T08:27:20Z"
  92. }
  93. ]
  94. }
  95. }

错误码

下表列举了本接口特有的错误码。视频点播通用的错误码信息,参见 错误码表

错误代码 错误信息 HTTP 状态码 说明
NoSuchResource The specified resource %s does not exist. 404 特定的信息不存在,%s 表示指定的信息。