ci:CreateMediaJobs permission is required. For details, see Cloud Infinite action.cam:passrole permission is required. The asynchronous processing interface performs read and write operations on COS resources through the "role" in CAM. The PassRole permission is used for role passing. For details, refer to Access Management > Write Operations > PassRole API.POST /jobs HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Tag>SplitVideoParts</Tag><Input><Object>input/test.mp4</Object></Input><Operation><SplitVideoParts><Mode>SHOTDETECT</Mode></SplitVideoParts><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON</CallBackFormat></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Request | None. | Container for saving requests | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Tag | Request | Create task Tag: SplitVideoParts | String | Yes |
Input | Request | Object information to be operated | Container | Yes |
Operation | Request | Operation rule | Container | Yes |
CallBackFormat | Request | job callback format, JSON or XML, default XML, priority is higher than the callback format of the queue | String | No |
CallBackType | Request | job callback type, Url or TDMQ, default Url, priority is higher than the callback type of the queue | String | No |
CallBack | Request | job callback address, priority is higher than the callback address of the queue. When set to no, it indicates that the callback address of the queue does not generate a callback. | String | No |
CallBackMqConfig | Request | Task callback TDMQ configuration, required when CallBackType is TDMQ. For details, see CallBackMqConfig. | Container | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Object | Request.Input | file path | String | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
SplitVideoParts | Request.Operation | Video splitting configuration | Container | Yes |
UserData | Request.Operation | Pass through user information, printable ASCII code, length not exceeding 1024 | String | No |
JobLevel | Request.Operation | Task priority, level limit: 0, 1, 2. Higher level means higher task priority, default is 0. | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Mode | Request.Operation.SplitVideoParts | Split mode, currently supports SHOTDETECT (shot-based splitting) and SCENEDETECT (scene-based splitting). | String | Yes |
<Response><JobsDetail><Code>Success</Code><Message/><JobId>ac7c990a00bf211ed946af9e0691f2b7a</JobId><State>Submitted</State><CreationTime>2022-06-27T14:44:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId><Tag>SplitVideoParts</Tag><Input><BucketId>test-123456789</BucketId><Object>input/test.mp4</Object><Region>ap-chongqing</Region></Input><Operation><SplitVideoParts><Mode>SHOTDETECT</Mode></SplitVideoParts><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None. | Container for saving results | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Task details | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Code | Response.JobsDetail | error code, meaningful only when State is Failed | String |
Message | Response.JobsDetail | error description, meaningful only when State is Failed | String |
JobId | Response.JobsDetail | ID of the newly created task | String |
Tag | Response.JobsDetail | Newly created task Tag: SplitVideoParts | String |
State | Response.JobsDetail | Task Status Submitted: Submitted, pending execution Running: Executing Success: Execution successful Failed: Execution failed Pause: Task is paused. When the pause queue is triggered, pending tasks will become paused state. Cancel: Task execution cancelled | String |
CreationTime | Response.JobsDetail | Task creation time | String |
StartTime | Response.JobsDetail | Task Start Time | String |
EndTime | Response.JobsDetail | Task End Time | String |
QueueId | Response.JobsDetail | String | |
Input | Response.JobsDetail | Request.Input node in the same request | Container |
Operation | Response.JobsDetail | Rules of the task | Container |
Node Name (Keyword) | Parent Node | Description | Type |
SplitVideoParts | Response.JobsDetail.Operation | Request.Operation.SplitVideoParts in the same request | Container |
UserData | Response.JobsDetail.Operation | Pass through user information | String |
JobLevel | Response.JobsDetail.Operation | Task Priority | String |
SplitVideoInfoResult | Response.JobsDetail.Operation | Output the split information, do not return if the task is not completed. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
TimeInfo | Response.JobsDetail.Operation.SplitVideoInfoResult | Details of each fragment | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Index | Response.JobsDetail.Operation.SplitVideoInfoResult.TimeInfo | Fragment index | String |
PartBegin | Response.JobsDetail.Operation.SplitVideoInfoResult.TimeInfo | Segment start time | String |
PartEnd | Response.JobsDetail.Operation.SplitVideoInfoResult.TimeInfo | Segment end time | String |
POST /jobs HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host: test-1234567890.ci.ap-beijing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>SplitVideoParts</Tag><Input><Object>input/test.mp4</Object></Input><Operation><SplitVideoParts><Mode>SHOTDETECT</Mode></SplitVideoParts><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON</CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><Message/><JobId>ac7c990a00bf211ed946af9e0691f2b7a</JobId><State>Submitted</State><CreationTime>2022-06-27T14:44:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId><Tag>SplitVideoParts</Tag><Input><BucketId>test-123456789</BucketId><Object>input/test.mp4</Object><Region>ap-chongqing</Region></Input><Operation><SplitVideoParts><Mode>SHOTDETECT</Mode></SplitVideoParts><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation></JobsDetail></Response>
Feedback