搜尋指定狀態的自訂模板。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
Action | String | 是 | 操作介面名,系統規定參數,取值: SearchTemplate |
PageNumber | Long | 否 | 當前頁號。
|
PageSize | Long | 否 | 分頁查詢時設定的每頁大小。
|
State | String | 否 | 轉碼模板狀態:
預設值:All |
返回參數
名稱 | 類型 | 描述 |
---|---|---|
TemplateList | AliyunTemplate[ ] | 模板列表 |
樣本
請求樣本
http://mts.cn-hangzhou.aliyuncs.com/?Action=SearchTemplate&<公用參數>
返回樣本
XML
<SearchTemplateResponse>
<RequestId>017F1B2D-2B5B-4441-ABBA-E0DC08F5AFEC</RequestId>
<TotalCount>1</TotalCount>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TemplateList list="true">
<Template>
<Id>88c6ca184c0e47098a5b665e2a126799</Id>
<Name>MTS-example</Name>
<Container>
<Format>mp4</Format>
</Container>
<Video>
<Codec>H.264</Codec>
<Profile>high</Profile>
<Bitrate>500</Bitrate>
<Crf>Auto</Crf>
<Width>256</Width>
<Height>800</Height>
<Fps>25</Fps>
<Gop>10</Gop>
<Preset>lower</Preset>
<ScanMode></ScanMode>
<Bufsize>6000</Bufsize>
<Maxrate></Maxrate>
<BitrateBnd>
<Max></Max>
<Min></Min>
</BitrateBnd>
</Video>
<Audio>
<Codec>aac</Codec>
<Samplerate>44100</Samplerate>
<Bitrate>Auto</Bitrate>
<Channels>Auto</Channels>
</Audio>
<TransConfig>
<TransMode>fixCRF</TransMode>
</TransConfig>
<State>Normal</State>
</Template >
</TemplateList>
</SearchTemplateResponse>
JSON
{
"RequestId":"3E767BAD-9F4C-4FC8-9FAE-E3F4A639066B",
"PageNumber":1,
"PageSize":10,
"TotalCount":1,
"TemplateList": {
"Template": [{
"Id": "88c6ca184c0e47098a5b665e2a126799",
"Name": "MTS-example",
"Container": {
"Format": "mp4"
},
"Video": {
"Codec": "H.264",
"Profile": "high",
"Bitrate": "500",
"Crf": "Auto",
"Width": "256",
"Height": "800",
"Fps": "25",
"Gop": "10",
"Preset": "lower",
"ScanMode": "",
"Bufsize": "6000",
"Maxrate": "500",
"BitrateBnd":{
"Max":"",
"Min":""
}
},
"Audio": {
"Codec": "aac",
" Samplerate": "44100",
"Bitrate": "Auto",
"Channels": "Auto"
},
"TransConfig":{
"TransMode":"fixCRF"
},
"State": "Normal"
}]
}
}