edit-icon download-icon

QueryTemplateList

Last Updated: Feb 08, 2018

Description

The QueryTemplateList API queries custom templates. This API can be used to query details about transcoding templates using custom template IDs.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to QueryTemplateList.
TemplateIds String Yes List of template IDs separated by commas (,). A maximum of 10 template IDs can be entered.

Return parameters

Name Type Description
TemplateList AliyunTemplate[ ] List of transcoding templates.
NonExistTids String[ ] List of non-existing transcoding templates. If no data exists, this structure is not returned.

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com/?TemplateIds=88c6ca184c0e47098a5b665e2a126799&Action=QueryTemplateList&<Public parameter>

Return example

XML

  1. <QueryTemplateListResponse>
  2. <RequestId>017F1B2D-2B5B-4441-ABBA-E0DC08F5AFEC</RequestId>
  3. <TemplateList list="true">
  4. <Template>
  5. <Id>88c6ca184c0e47098a5b665e2a126799</Id>
  6. <Name>MTS-example</Name>
  7. <Container>
  8. <Format>mp4</Format>
  9. </Container>
  10. <Video>
  11. <Codec>H.264</Codec>
  12. <Profile>high</Profile>
  13. <Bitrate>500</Bitrate>
  14. <Crf>Auto</Crf>
  15. <Width>256</Width>
  16. <Height>800</Height>
  17. <Fps>25</Fps>
  18. <Gop>10</Gop>
  19. <Preset>lower</Preset>
  20. <ScanMode></ScanMode>
  21. <Bufsize>6000</Bufsize>
  22. <Maxrate></Maxrate>
  23. <BitrateBnd>
  24. <Max></Max>
  25. <Min></Min>
  26. </BitrateBnd>
  27. </Video>
  28. <Audio>
  29. <Codec>aac</Codec>
  30. <Samplerate>44100</Samplerate>
  31. <Bitrate>Auto</Bitrate>
  32. <Channels>Auto</Channels>
  33. </Audio>
  34. <TransConfig>
  35. <TransMode>fixCRF</TransMode>
  36. </TransConfig>
  37. <State>Normal</State>
  38. </Template >
  39. </TemplateList>
  40. </QueryTemplateListResponse>

JSON

  1. {
  2. "RequestId":"3E767BAD-9F4C-4FC8-9FAE-E3F4A639066B",
  3. "TemplateList": {
  4. "Template": [{
  5. "Id": "88c6ca184c0e47098a5b665e2a126799",
  6. "Name": "MTS-example",
  7. "Container": {
  8. "Format": "mp4"
  9. },
  10. "Video": {
  11. "Codec": "H.264",
  12. "Profile": "high",
  13. "Bitrate": "500",
  14. "Crf": "Auto",
  15. "Width": "256",
  16. "Height": "800",
  17. "Fps": "25",
  18. "Gop": "10",
  19. "Preset": "lower",
  20. "ScanMode": "",
  21. "Bufsize": "6000",
  22. "Maxrate": "500",
  23. "BitrateBnd":{
  24. "Max":"",
  25. "Min":""
  26. }
  27. },
  28. "Audio": {
  29. "Codec": "AAC",
  30. " Samplerate": "44100",
  31. "Bitrate": "Auto",
  32. "Channels": "Auto"
  33. },
  34. "TransConfig":{
  35. "TransMode":"fixCRF"
  36. },
  37. "State": "Normal"
  38. }]
  39. }
  40. }
Thank you! We've received your feedback.