全部产品
媒体转码

提交模板分析作业

更新时间:2017-06-07 13:26:11   分享:   

提交模版分析作业

描述

提交预置模板分析作业接口,媒体转码服务会对输入文件进行智能分析,推荐出适合输入文件的预置模板;可通过“查询模板分析作业”接口得到模板分析作业结果,也可使用异步通知机制。

请求参数

名称 类型 必填项 描述
Action String 操作接口名,系统规定参数,取值:SubmitAnalysisJob
Input String 输入,Json对象:
{
"Bucket":"example-bucket",
"Location":"oss-cn-hangzhou",
"Object":"example.flv"
}
需在控制台中资源控制频道里的Bucket授权页面授予此Bucket读权限给媒体转码服务。
Priority String 任务在其对应管道内的转码优先级,范围[1-10],默认6,10为最高优先级。
UserData String 用户自定义数据,最大长度1024个字节。
PipelineId String 管道ID,若需要异步通知,须保证此管道绑定了可用的消息主题。

返回参数

名称 类型 描述
AnalysisJob AliyunAnalysisJob 系统预置模板分析作业

示例

请求示例

  1. http://mts.cn-hangzhou.aliyuncs.com/?Action=SubmitAnalysisJob&Input=%7B%22Bucket%22%3A%22example-bucket%22%2C%22Location%22%3A%22oss-cn-hangzhou%22%2C%0A%22Object%22%3A%22example.flv%22%7D%7D<公共参数>

返回示例

XML:

  1. <SubmitAnalysisJobResponse>
  2. <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
  3. <AnalysisJob>
  4. <Id>88c6ca184c0e47098a5b665e2a126797</Id>
  5. <InputFile>
  6. <Bucket>example-bucket</Bucket>
  7. <Location>oss-cn-hangzhou</Location>
  8. <Object>example.flv</Object>
  9. </InputFile>
  10. <AnalysisConfig>
  11. <QualityControl>
  12. <RateQuality>25</RateQuality>
  13. <MethodStreaming>network</MethodStreaming>
  14. </QualityControl>
  15. </AnalysisConfig>
  16. <UserData>testid-001</UserData>
  17. <State>Success</State>
  18. <TemplateList list="true">
  19. <Template>
  20. <Id>S00000000-000020</Id>
  21. <Name>FLV-UD</Name>
  22. <Container>
  23. <Format>flv</Format>
  24. </Container>
  25. <Video>
  26. <Codec>Auto</Codec>
  27. <Profile>Auto</Profile>
  28. <Bitrate>Auto</Bitrate>
  29. <Crf>Auto</Crf>
  30. <Width>Auto</Width>
  31. <Height>Auto</Height>
  32. <Fps>Auto</Fps>
  33. <Gop>Auto</Gop>
  34. </Video>
  35. <Audio>
  36. <Codec>Auto</Codec>
  37. <Samplerate>Auto</Samplerate>
  38. <Bitrate>Auto</Bitrate>
  39. <Channels>Auto</Channels>
  40. </Audio>
  41. <State>Normal</State>
  42. </Template >
  43. </TemplateList>
  44. <Code> </Code>
  45. <Message> </Message>
  46. <Percent>100</Percent>
  47. <CreationTime>2014-01-10T12:00:00Z</CreationTime>
  48. <PipelineId>88c6ca184c0e47098a5b665e2a126797</PipelineId>
  49. </AnalysisJob>
  50. </SubmitAnalysisJobResponse>

Json:

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  3. "AnalysisJob": {
  4. "Id": "88c6ca184c0e47098a5b665e2a126797",
  5. "InputFile": {
  6. "Bucket": "example-bucket",
  7. "Location": "oss-cn-hangzhou",
  8. "Object": "example.flv"
  9. },
  10. "AnalysisConfig": {
  11. "QualityControl": {
  12. "RateQuality": 25,
  13. "MethodStreaming": "network"
  14. }
  15. },
  16. "UserData":"testid-001",
  17. "State": "Success",
  18. "Code": "",
  19. "Message": "",
  20. "Percent": 100,
  21. "PipelineId": "88c6ca184c0e47098a5b665e2a126797",
  22. "CreationTime”:”2014-01-10T12:00:00Z",
  23. "TemplateList": {
  24. "Template": [{
  25. "Id": "S00000000-000020",
  26. "Name": "FLV-UD",
  27. "Container": {
  28. "Format": "flv"
  29. },
  30. "Video": {
  31. "Codec": "Auto",
  32. "Profile": "Auto",
  33. "Bitrate": "Auto",
  34. "Crf": "Auto",
  35. "Width": "Auto",
  36. "Height": "Auto",
  37. "Fps": "Auto",
  38. "Gop": "Auto"
  39. },
  40. "Audio": {
  41. "Codec": "AAC",
  42. "Samplerate": "44100",
  43. "Bitrate": "Auto",
  44. "Channels": "Auto"
  45. },
  46. "State": "Normal"
  47. }]
  48. }
  49. }
  50. }
本文导读目录
本文导读目录
以上内容是否对您有帮助?