History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /<ObjectKey>?ci-process=convert&format=mp4 HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>
https://<BucketName-APPID>.cos.<Region>.myqcloud.com/for-test.gif?ci-process=convert&format=mp4&<Auth String>
参数名称 | 描述 | 类型 | 是否必选 |
ObjectKey | 对象文件名,例如 folder/sample.gif | String | 是 |
ci-process | 操作类型,固定使用 convert | String | 是 |
width | 转码结果的宽。取值范围:[0,4096]。默认为0 | Int | 否 |
height | 转码结果的宽。取值范围:[0,4096]。默认为0,当 width 和 height 都为0时,表示使用视频的宽高。如果单个为0,则以另外一个值按视频宽高比例自动适应 | Int | 否 |
format | 转码的格式,当前仅支持 mp4 | String | 是 |
GET /for-test.gif?ci-process=convert&format=mp4 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Mar 2016 09:45:46 GMTAuthorization: q-sign-algorithm=sha1&q-ak=**************************************-sign-time=1484213027;32557109027&q-key-time=1484213027;32557109027&q-header-list=host&q-url-param-list=acl&q-signature=****************************************Content-Length: 0
https://examplebucket-1250000000.cos.ap-beijing.myqcloud.com/for-test.gif?ci-process=convert&format=mp4&time=1.5&q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1650425932;1650433132&q-key-time=1650425932;1650433132&q-header-list=&q-url-param-list=&q-signature=*********************************
HTTP/1.1 200 OKContent-Type: video/mp4Content-Length: 266005Connection: keep-aliveDate: Fri, 10 Mar 2016 09:45:46 GMTServer: tencent-cix-cos-request-id: NTg3NzRiMjVfYmRjMzVfMTViMl82ZGZmNw==<视频内容>
文档反馈