edit-icon download-icon

QueryJobList

Last Updated: Feb 06, 2018

Description

The QueryJobList API queries transcoding tasks in batches by transcoding task ID. By default, returned tasks are sorted in descending order by CreationTime.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to QueryJobList.
JobIds String Yes List of transcoding task IDs separated by commas (,). A maximum of 10 transcoding task IDs can be entered at a time.

Return parameters

Name Type Description
JobList AliyunJob[ ] Set of transcoding tasks
NonExistJobIds String[ ] List of non-existing transcoding task IDs. If no data exists, this structure is not returned.

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com/?Action=QueryJobList&JobIds=88c6ca184c0e47098a5b665e2a126797&<Public parameters>

Return example

XML

  1. <QueryJobListResponse>
  2. <RequestId>58CBF1B8-048C-4550-B59C-F6EA57A8CEB6</RequestId>
  3. <JobList list="true">
  4. <Job>
  5. <JobId>31fa3c9ca8134f9cec2b4b0b0f787830</JobId>
  6. <Input>
  7. <Bucket>example-bucket</Bucket>
  8. <Location>oss-cn-hangzhou</Location>
  9. <Object>example.flv</Object>
  10. </Input>
  11. <Output>
  12. <OutputFile>
  13. <Bucket>example-bucket</Bucket>
  14. <Location>oss-cn-hangzhou</Location>
  15. <Object>example-output.flv</Object>
  16. </OutputFile>
  17. <TemplateId>0001-01</TemplateId>
  18. <WaterMarkList list="true">
  19. <WaterMark>
  20. <InputFile>
  21. <Bucket>example-logo-bucket</Bucket>
  22. <Location>oss-cn-hangzhou</Location>
  23. <Object>example-logo.png</Object>
  24. </InputFile>
  25. <WaterMarkTemplateId>88c6ca184c0e47098a5b665e2a126797</WaterMarkTemplateId>
  26. </WaterMark>
  27. </WaterMarkList>
  28. <Properties>
  29. <Streams>
  30. <VideoStreamList>
  31. <VideoStream>
  32. <Index>1</Index>
  33. <CodecName>h264</CodecName>
  34. <CodecLongName>H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10</CodecLongName>
  35. <Profile>High</Profile>
  36. <CodecTimeBase>1001/48000</CodecTimeBase>
  37. <CodecTagString>[0][0][0][0]</CodecTagString>
  38. <CodecTag>0x0000</CodecTag>
  39. <Width>1920</Width>
  40. <Height>1080</Height>
  41. <HasBFrames>1</HasBFrames>
  42. <Sar>1:1</Sar>
  43. <Dar>16:9</Dar>
  44. <PixFmt>yuv420p</PixFmt>
  45. <Level>41</Level>
  46. <Fps>25</Fps>
  47. <AvgFPS>24000/1001</AvgFPS>
  48. <Timebase>1/1000</Timebase>
  49. <StartTime>0.042000</StartTime>
  50. <Duration>100</Duration>
  51. <Bitrate>30541090</Bitrate>
  52. <NumFrames>100</NumFrames>
  53. <Lang>eng</Lang>
  54. <NetworkCost>
  55. <PreloadTime>8</PreloadTime>
  56. <CostBandwidth>10</CostBandwidth>
  57. <AvgBitrate>300.34</AvgBitrate>
  58. </NetworkCost>
  59. </aliyun_video_stream>
  60. </VideoStreamList>
  61. <AudioStreamList>
  62. <AudioStream>
  63. <Index>1</Index>
  64. <CodecName>dca</CodecName>
  65. <CodecTimeBase>1/48000</CodecTimeBase>
  66. <CodecLongName>DCA (DTS Coherent Acoustics)</CodecLongName>
  67. <CodecTagString>[0][0][0][0]</CodecTagString>
  68. <CodecTag>0x0000</CodecTag>
  69. <SampleFmt>fltp</SampleFmt>
  70. <Samplerate>48000</Samplerate>
  71. <Channels>2</Channels>
  72. <ChannelLayout>5.1(side)</ChannelLayout>
  73. <Timebase>1/1000</Timebase>
  74. <StartTime>0.042000</StartTime>
  75. <Duration>123</Duration>
  76. <Bitrate>1536000</Bitrate>
  77. <NumFrames>123</NumFrames>
  78. <Lang>eng</Lang>
  79. </aliyun_audio_stream>
  80. </AudioStreamList>
  81. <SubtitleStreamList>
  82. <SubtitleStream>
  83. <Index>3</Index>
  84. <Lang>eng</Lang>
  85. </aliyun_subtitle_stream>
  86. </SubtitleStreamList>
  87. </Streams>
  88. <Format>
  89. <NumStreams>1</NumStreams>
  90. <NumPrograms>2</NumPrograms>
  91. <FormatName>matroska,webm</FormatName>
  92. <FormatLongName>Matroska / WebM</FormatLongName>
  93. <StartTime>0.042000</StartTime>
  94. <Duration>17.600000</Duration>
  95. <Size>70569598</Size>
  96. <Bitrate>32077090</Bitrate>
  97. </Format>
  98. </Properties>
  99. <UserData>testid-001</UserData>
  100. </Output>
  101. <State>Submitted</State>
  102. <Code> </Code>
  103. <Message> </Message>
  104. <Percent>0</Percent>
  105. <PipelineId>88c6ca184c0e47098a5b665e2a126797</PipelineId>
  106. <CreationTime>2014-01-10T12:00:00Z</CreationTime>
  107. </Job>
  108. </JobList>
  109. </QueryJobListResponse>

JSON

  1. {
  2. "RequestId":"58CBF1B8-048C-4550-B59C-F6EA57A8CEB6",
  3. "JobList": {
  4. "Job": [{
  5. "JobId": "31fa3c9ca8134f9cec2b4b0b0f787830",
  6. "Input": {
  7. "Bucket": "example-bucket",
  8. "Location": "oss-cn-hangzhou",
  9. "Object": "example.flv"
  10. },
  11. "Output": {
  12. "OutputFile": {
  13. "Bucket": "example-bucket",
  14. "Location": "oss-cn-hangzhou",
  15. "Object": "example-output.flv"
  16. },
  17. "TemplateId": "0001-01",
  18. "WaterMarkList": {
  19. "WaterMark": [{
  20. "InputFile": {
  21. "Bucket": "example-bucket",
  22. "Location": "oss-cn-hangzhou",
  23. "Object": "example-logo.png"
  24. },
  25. "WaterMarkTemplateId": "88c6ca184c0e47098a5b665e2a126797"
  26. }]
  27. },
  28. "Properties":{
  29. "Streams":{
  30. "VideoStreamList":{
  31. "VideoStream":[
  32. {
  33. "Index":"1",
  34. "CodecName":"h264",
  35. "CodecLongName":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
  36. "Profile":"High",
  37. "CodecTimeBase":"1001/48000",
  38. "CodecTagString":"[0][0][0][0]",
  39. "CodecTag":"0x0000",
  40. "Width":"1920",
  41. "Height":"1080",
  42. "HasBFrames":"1",
  43. "Sar":"1:1",
  44. "Dar":"16:9",
  45. "PixFmt":"yuv420p",
  46. "Level":"41",
  47. "Fps":"25",
  48. "AvgFPS":"24000/1001",
  49. "Timebase":"1/1000",
  50. "StartTime":"0.042000",
  51. "Duration":"100",
  52. "Bitrate":"30541090",
  53. "NumFrames":"100",
  54. "Lang":"eng",
  55. "NetworkCost":{
  56. "PreloadTime":"8",
  57. "CostBandwidth":"10",
  58. "AvgBitrate":"300.34"
  59. }
  60. }
  61. ]
  62. },
  63. "AudioStreamList":{
  64. "AudioStream":[
  65. {
  66. "Index":"1",
  67. "CodecName":"dca",
  68. "CodecTimeBase":"1/48000",
  69. "CodecLongName":"DCA (DTS Coherent Acoustics)",
  70. "CodecTagString":"[0][0][0][0]",
  71. "CodecTag":"0x0000",
  72. "SampleFmt":"fltp",
  73. "Samplerate":"48000",
  74. "Channels":"2",
  75. "ChannelLayout":"5.1(side)",
  76. "Timebase":"1/1000",
  77. "StartTime":"0.042000",
  78. "Duration":"123",
  79. "Bitrate":"1536000",
  80. "NumFrames":"123",
  81. "Lang":"eng"
  82. }
  83. ]
  84. },
  85. "SubtitleStreamList":{
  86. "SubtitleStream":[
  87. {
  88. "Index":"3",
  89. "Lang":"eng"
  90. }
  91. ]
  92. }
  93. },
  94. "Format":{
  95. "NumStreams":"1",
  96. "NumPrograms":"2",
  97. "FormatName":"matroska,webm",
  98. "FormatLongName":"Matroska / WebM",
  99. "StartTime":"0.042000",
  100. "Duration":"17.600000",
  101. "Size":"70569598",
  102. "Bitrate":"32077090"
  103. }
  104. },
  105. "UserData":"testid-001"
  106. },
  107. "State": "Submitted",
  108. "Code": "",
  109. "Message": "",
  110. "Percent": 0,
  111. "PipelineId": "88c6ca184c0e47098a5b665e2a126797",
  112. "CreationTime":"2014-01-10T12:00:00Z"
  113. }]
  114. }
  115. }
Thank you! We've received your feedback.