Create a workflow
POST /workflow HTTP/1.1
Host: <BucketName-APPID>.ci.<Region>.myqcloud.com
Date: <GMT Date>
Authorization: <Auth String>
Content-Length: <length>
Content-Type: application/xml
<body>
Note:
- Authorization: Auth String (See Request Signature for details.)
- When this feature is used by a sub-account, relevant permissions must be granted as instructed in Authorization Granularity Details.
This API only uses Common Request Headers.
This request requires the following request body:
Screencapturing and transcoding the input video file, performing remuxing and intelligent thumbnail generation on the output file, and then performing image processing on the generated thumbnail
<Request>
<MediaWorkflow>
<Name>workflow-1</Name>
<State>Active</State>
<Topology>
<Dependencies>
<Start>Snapshot_1581665960536,Transcode_1581665960538</Start>
<Snapshot_1581665960536>End</Snapshot_1581665960536>
<Transcode_1581665960538>Segment_15816659605667,SmartCover_1581665960539</Transcode_1581665960538>
<Segment_15816659605667>End</Segment_15816659605667>
<SmartCover_1581665960539>PicProcess_15816659605668</SmartCover_1581665960539>
<PicProcess_15816659605668>End</PicProcess_15816659605668>
</Dependencies>
<Nodes>
<Start>
<Type>Start</Type>
<Input>
<QueueId>p09d709939fef48a0a5c247ef39d90cec</QueueId>
<PicProcessQueueId>p2911917386e148639319e13c285cc774</PicProcessQueueId>
<ObjectPrefix>input/workflow-1</ObjectPrefix>
<NotifyConfig>
<State>On</State>
<Url>http://www.callback.com</Url>
<Event>TaskFinish,WorkflowFinish</Event>
<Type>Url</Type>
<ResultFormat>JSON</ResultFormat>
</NotifyConfig>
<ExtFilter>
<State>On</State>
<Video>true</Video>
<Audio>false</Audio>
<Image>false</Image>
<Custom>false</Custom>
<AllFile>false</AllFile>
</ExtFilter>
</Input>
</Start>
<Snapshot_1581665960536>
<Type>Snapshot</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/snapshot-${number}.${Ext}</Object>
<SpriteObject>abc/${RunId}/sprite-${number}.${Ext}</SpriteObject>
</Output>
</Operation>
</Snapshot_1581665960536>
<Transcode_1581665960538>
<Type>Transcode</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/trans.{Ext}</Object>
</Output>
</Operation>
</Transcode_1581665960538>
<Segment_15816659605667>
<Type>Segment</Type>
<Operation>
<Segment>
<Format>mkv</Format>
<Duration>20</Duration>
</Segment>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>test-trans${Number}.{Ext}</Object>
</Output>
</Operation>
</Segment_15816659605667>
<SmartCover_1581665960539>
<Type>SmartCover</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/cover-${Number}.{Ext}</Object>
</Output>
</Operation>
</SmartCover_1581665960539>
<PicProcess_15816659605668>
<Type>PicProcess</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/pic.{Ext}</Object>
</Output>
</Operation>
</PicProcess_15816659605668>
</Nodes>
</Topology>
</MediaWorkflow>
</Request>
The nodes are described as follows:
Node Name (Keyword) | Parent Node | Description | Type | Required |
---|---|---|---|---|
Request | None | Request container | Container | Yes |
Request
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required |
---|---|---|---|---|
MediaWorkflow | Request | Workflow node | Container | Yes |
MediaWorkflow
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Name | Request.MediaWorkflow | Workflow name | String | Yes | The value can be up to 128 characters in length and contain Chinese characters, letters, digits, dashes (–), and underscores (_). |
State | Request.MediaWorkflow | Workflow status | String | No | Paused/Active |
Topology | Request.MediaWorkflow | Topology information | Container | Yes | None |
Topology
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Dependencies | Request.MediaWorkflow. Topology |
Node dependencies. | Container | Yes | None |
Nodes | Request.MediaWorkflow. Topology |
Node list. | Container | Yes | None |
Nodes
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Start | Request.MediaWorkflow. Topology.Nodes |
Start node | Container | Supported | There is only one start node. |
Animation_*** | Request.MediaWorkflow. Topology.Nodes |
Animated image type node | Container | No | The node name must be prefixed with "Animation". There can be multiple animated image nodes. |
Snapshot_*** | Request.MediaWorkflow. Topology.Nodes |
Screenshot type node | Container | No | The node name must be prefixed with "Snapshot". There can be multiple screenshot nodes. |
SmartCover_*** | Request.MediaWorkflow. Topology.Nodes |
Intelligent thumbnail node | Container | No | The node name must be prefixed with "SmartCover". There can be multiple intelligent thumbnail nodes. |
Transcode_*** | Request.MediaWorkflow. Topology.Nodes |
Transcoding node | Container | No | The node name must be prefixed with "Transcode". There can be multiple transcoding nodes. |
Concat_*** | Request.MediaWorkflow. Topology.Nodes |
Audio/Video splicing node | Container | No | The node name must be prefixed with "Concat". There can be multiple audio/video splicing nodes. |
VoiceSeparate_*** | Request.MediaWorkflow. Topology.Nodes |
Voice/Sound separation node | Container | No | The node name must be prefixed with "VoiceSeparate". There can be multiple voice/sound separation nodes. |
VideoMontage_*** | Request.MediaWorkflow. Topology.Nodes |
Video montage node | Container | No | The node name must be prefixed with "VideoMontage". There can be multiple video montage nodes. |
StreamPackConfig_*** | Request.MediaWorkflow. Topology.Nodes |
Adaptive bitrate streaming node | Container | No | The node name must be prefixed with "StreamPackConfig". There can be only one adaptive bitrate streaming node. This node must follow a start node and be followed by a video substream node. There can be multiple video substream nodes. |
VideoStream_*** | Request.MediaWorkflow. Topology.Nodes |
Video substream node | Container | No | The node name must be prefixed with "VideoStream". There can be multiple video substream nodes. This node must follow a StreamPackConfig node and be followed by a StreamPack node. |
StreamPack_*** | Request.MediaWorkflow. Topology.Nodes |
Adaptive bitrate streaming packaging node | Container | No | The node name must be prefixed with "StreamPack". There can be only one adaptive bitrate streaming packaging node. This node must follow a video substream node and be followed by an end node. |
SDRtoHDR_*** | Request.MediaWorkflow. Topology.Nodes |
SDR-to-HDR node | Container | No | The node name must be prefixed with "SDRtoHDR". There can be multiple SDR-to-HDR nodes. |
VideoProcess_*** | Request.MediaWorkflow. Topology.Nodes |
Video processing node | Container | No | The node name must be prefixed with "VideoProcess". There can be multiple video processing nodes. |
SCF_*** | Request.MediaWorkflow. Topology.Nodes |
SCF function node | Container | No | The node name must be prefixed with "SCF". There can be multiple SCF function nodes. |
SuperResolution_*** | Request.MediaWorkflow. Topology.Nodes |
Super resolution node | Container | No | The node name must be prefixed with "SuperResolution". There can be multiple super resolution nodes. |
Segment_*** | Request.MediaWorkflow. Topology.Nodes |
Audio/Video remuxing node | Container | No | The node name must be prefixed with `Segment`. There can be multiple audio/video remuxing nodes. |
PicProcess_*** | Request.MediaWorkflow. Topology.Nodes |
Image processing node | Container | No | The node name must be prefixed with "PicProcess". There can be multiple image processing nodes. |
Tts_*** | Request.MediaWorkflow. Topology.Nodes |
Text-to-speech node | Container | No | The node name must be prefixed with "Tts". There can be multiple text-to-speech nodes. |
SpeechRecognition_*** | Request.MediaWorkflow. Topology.Nodes |
Speech recognition node | Container | No | The node name must be prefixed with "SpeechRecognition". There can be multiple speech recognition nodes. |
VideoEnhance_*** | Request.MediaWorkflow. Topology.Nodes |
Video enhancement node | Container | No | The node name must be prefixed with "VideoEnhance". There can be multiple video enhancement nodes. |
Condition_*** | Request.MediaWorkflow. Topology.Nodes |
Conditional judgment node | Container | No | The node name must be prefixed with "Condition". There can be multiple conditional judgment nodes. |
MediaInfo_*** | Request.MediaWorkflow. Topology.Nodes |
Media information acquisition node | Container | No | The node name must be prefixed with "MediaInfo". There can be multiple media information acquisition nodes. |
AIRecognition_*** | Request.MediaWorkflow. Topology.Nodes |
AI recognition node | Container | No | The node name must be prefixed with "AIRecognition". |
SegmentVideoBody_*** | Request.MediaWorkflow. Topology.Nodes |
Video portrait matting | Container | No | The node name must be prefixed with "SegmentVideoBody". |
Start
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Start |
Node type | String | Yes | Start |
Input | Request.MediaWorkflow. Topology.Nodes.Start |
Input information. For more information, see Structure > MediaWorkflow_Topology_Nodes_Start_Input. | Container | Yes | None |
Animation\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Animation_*** |
Node type | String | Yes | Animation |
Operation | Request.MediaWorkflow. Topology.Nodes.Animation_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Animation_***_Operation. | Container | Yes | None |
Snapshot\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Snapshot_*** |
Node type | String | Yes | Snapshot |
Operation | Request.MediaWorkflow. Topology.Nodes.Snapshot_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Snapshot_***_Operation. | Container | Yes | None |
SmartCover_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SmartCover_*** |
Node type | String | Yes | SmartCover |
Operation | Request.MediaWorkflow. Topology.Nodes.SmartCover_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_SmartCover_***_Operation. | Container | Yes | None |
Transcode_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Transcode_*** |
Node type | String | Yes | Transcode |
Operation | Request.MediaWorkflow. Topology.Nodes.Transcode_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Transcode_***_Operation. | Container | Yes | None |
Concat\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Concat_*** |
Node type | String | Yes | Concat |
Operation | Request.MediaWorkflow. Topology.Nodes.Concat_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Concat_***_Operation. | Container | Yes | None |
VoiceSeparate\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.VoiceSeparate_*** |
Node type | String | Yes | VoiceSeparate |
Operation | Request.MediaWorkflow. Topology.Nodes.VoiceSeparate_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_VoiceSeparate_***_Operation. | Container | Yes | None |
VideoMontage\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.VideoMontage_*** |
Node type | String | Yes | VideoMontage |
Operation | Request.MediaWorkflow. Topology.Nodes.VideoMontage_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_VideoMontage_***_Operation. | Container | Yes | None |
StreamPackConfig_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.StreamPackConfig_*** |
Node type | String | Yes | StreamPackConfig |
Operation | Request.MediaWorkflow. Topology.Nodes.StreamPackConfig_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_StreamPackConfig_***_Operation. | Container | Yes | None |
VideoStream\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.VideoStream_*** |
Node type | String | Yes | VideoStream |
Operation | Request.MediaWorkflow. Topology.Nodes.VideoStream_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_VideoStream_***_Operation. | Container | Yes | None |
StreamPack_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.StreamPack_*** |
Node type | String | Yes | StreamPack |
Operation | Request.MediaWorkflow. Topology.Nodes.StreamPack_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_VideoStream_***_Operation. | Container | Yes | None |
SDRtoHDR\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SDRtoHDR_*** |
Node type | String | Yes | SDRtoHDR |
Operation | Request.MediaWorkflow. Topology.Nodes.SDRtoHDR_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_SDRtoHDR_***_Operation. | Container | Yes | None |
VideoProcess\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.VideoProcess_*** |
Node type | String | Yes | VideoProcess |
Operation | Request.MediaWorkflow. Topology.Nodes.VideoProcess_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_VideoProcess_***_Operation. | Container | Yes | None |
SCF\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SCF_*** |
Node type | String | Yes | SCF |
Operation | Request.MediaWorkflow. Topology.Nodes.SCF_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_SCF_***_Operation. | Container | Yes | None |
SuperResolution\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SuperResolution_*** |
Node type | String | Yes | SuperResolution |
Operation | Request.MediaWorkflow. Topology.Nodes.SuperResolution_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_SuperResolution_***_Operation. | Container | Yes | None |
Segment\_\*\*\*
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Segment_*** |
Node type | String | Yes | Segment |
Operation | Request.MediaWorkflow. Topology.Nodes.Segment_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Segment_***_Operation. | Container | Yes | None |
PicProcess_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.PicProcess_*** |
Node type | String | Yes | PicProcess |
Operation | Request.MediaWorkflow. Topology.Nodes.PicProcess_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_PicProcess_***_Operation. | Container | Yes | None |
Tts_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Tts_*** |
Node type | String | Yes | Tts |
Operation | Request.MediaWorkflow. Topology.Nodes.Tts_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_Tts_***_Operation. | Container | Yes | None |
SpeechRecognition_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SpeechRecognition_*** |
Node type | String | Yes | SpeechRecognition |
Operation | Request.MediaWorkflow. Topology.Nodes.SpeechRecognition_*** |
Operation rule. For more information, see Structure > MediaWorkflow_Topology_Nodes_SpeechRecognition_***_Operation. | Container | Yes | None |
VideoEnhance_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.VideoEnhance_*** |
Node type | String | Yes | VideoEnhance |
Operation | Request.MediaWorkflow. Topology.Nodes.VideoEnhance_*** |
Operation rule. For more information, see Structure. | Container | Yes | None |
Condition_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.Condition_*** |
Node type | String | Yes | Condition |
Operation | Request.MediaWorkflow. Topology.Nodes.Condition_*** |
Operation rule. For more information, see Structure. | Container | Yes | None |
MediaInfo_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.MediaInfo_*** |
Node type | String | Yes | MediaInfo |
AIRecognition_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.AIRecognition_*** |
Node type | String | Yes | AIRecognition |
SegmentVideoBody_*** has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type | Required | Constraints |
---|---|---|---|---|---|
Type | Request.MediaWorkflow. Topology.Nodes.SegmentVideoBody_*** |
Node type | String | Yes | SegmentVideoBody |
Operation | Request.MediaWorkflow. Topology.Nodes.SegmentVideoBody_*** |
Operation rule. For more information, see Structure. | Container | Yes | None |
The dependencies of workflow nodes are as follows:
Workflow Node Type | Linkable Node Types |
---|---|
Start | Snapshot,Animation,SmartCover,Transcode,Concat,VoiceSeparate,VideoMontage,StreamPackConfig,SDRtoHDR,VideoProcess,SCF,SuperResolution,Segment,PicProcess,Tts,SpeechRecognition,VideoEnhance,MediaInfo,AIRecognition,VideoEnhance,SegmentVideoBody |
Snapshot | PicProcess,SCF,End |
Animation | SCF,End |
SmartCover | PicProcess,SCF,End |
Transcode | Snapshot,Animation,SmartCover,Concat,VideoMontage,SDRtoHDR,VideoProcess,SCF,Segment,SpeechRecognition,VideoEnhance,MediaInfo,SegmentVideoBody,End |
Concat | Transcode,Snapshot,Animation,SmartCover,SDRtoHDR,VideoProcess,SCF,Segment,VideoEnhance,MediaInfo,VideoEnhance,SegmentVideoBody,End |
VoiceSeparate | SCF,SpeechRecognition,End |
VideoMontage | Snapshot,Animation,SDRtoHDR,VideoProcess,SCF,SuperResolution,VideoEnhance,Segment,MediaInfo,VideoEnhance,SegmentVideoBody,End |
StreamPackConfig | VideoStream |
VideoStream | StreamPack |
StreamPack | End |
SDRtoHDR | Transcode,Concat,VideoMontage,VoiceSeparate,SmartCover,Animation,VideoProcess,SCF,SuperResolution,SegmentVideoBody,End |
VideoProcess | Transcode,Concat,VideoMontage,VoiceSeparate,SmartCover,Animation,SDRtoHDR,SCF,Segment,SuperResolution,MediaInfo,SegmentVideoBody,End |
SCF | SDRtoHDR,Snapshot,Transcode,Concat,VideoMontage,VoiceSeparate,SmartCover,Animation,VideoProcess,End |
SuperResolution | VideoMontage,Transcode,SmartCover,Animation,Snapshot,SCF,Segment,SDRtoHDR,VideoProcess,MediaInfo,SegmentVideoBody,End |
Segment | VideoEnhance,SegmentVideoBody, End |
PicProcess | SCF,End |
Tts | SCF,Transcode,End |
SpeechRecognition | SCF,Tts,End |
VideoEnhance | Transcode,VideoMontage,SmartCover,Animation,Snapshot,SCF,Segment,SpeechRecognition,Segment,VoiceSeparate,MediaInfo, End |
MediaInfo | Condition,End |
Condition | Transcode,HighSpeedHd,SuperResolution,VideoProcess,Animation,Snapshot,VideoMontage,SmartCover,Concat,VideoEnhance |
AIRecognition | End |
SegmentVideoBody | End |
Wildcards supported by workflow are as follows:
Wildcard | Description |
---|---|
${InputPath} | Input file path (excluding the filename) |
${InputName} | Input filename (excluding the extension) |
${InputNameAndExt} | Input filename (including the extension) |
${RunId} | Instance ID |
${Ext} | Codec extension |
${Jobid} | Job ID |
${Number} | Product index counting from 0. It is supported only for Snapshot , SmartCover , and Segment nodes. |
${Time} | Screenshot time point in milliseconds. It is supported only for the Snapshot node. |
This API only returns Common Response Headers.
The response body returns application/xml data. The following contains all the nodes:
Screencapturing and transcoding the input video file, performing remuxing and intelligent thumbnail generation on the output file, and then performing image processing on the generated thumbnail
<Response>
<RequestId>NjJmMWQxYjNfOTBmYTUwNjRfNWYyY18x</RequestId>
<MediaWorkflow>
<Name>workflow-1</Name>
<State>Active</State>
<WorkflowId>wc666d0b9f9dd47ae9137a096252d49f7</WorkflowId>
<BucketId>test-1234567890</BucketId>
<CreateTime>2022-07-14T12:37:28+0800</CreateTime>
<UpdateTime>2022-07-14T12:37:28+0800</UpdateTime>
<Topology>
<Dependencies>
<Start>Snapshot_1581665960536,Transcode_1581665960538</Start>
<Snapshot_1581665960536>End</Snapshot_1581665960536>
<Transcode_1581665960538>Segment_15816659605667,SmartCover_1581665960539</Transcode_1581665960538>
<Segment_15816659605667>End</Segment_15816659605667>
<SmartCover_1581665960539>PicProcess_15816659605668</SmartCover_1581665960539>
<PicProcess_15816659605668>End</PicProcess_15816659605668>
</Dependencies>
<Nodes>
<Start>
<Type>Start</Type>
<Input>
<QueueId>p09d709939fef48a0a5c247ef39d90cec</QueueId>
<PicProcessQueueId>p2911917386e148639319e13c285cc774</PicProcessQueueId>
<ObjectPrefix>input/workflow-1</ObjectPrefix>
<NotifyConfig>
<State>On</State>
<Url>http://www.callback.com</Url>
<Event>TaskFinish,WorkflowFinish</Event>
<Type>Url</Type>
<ResultFormat>JSON</ResultFormat>
</NotifyConfig>
<ExtFilter>
<State>On</State>
<Video>true</Video>
<Audio>false</Audio>
<Image>false</Image>
<Custom>false</Custom>
<AllFile>false</AllFile>
</ExtFilter>
</Input>
</Start>
<Snapshot_1581665960536>
<Type>Snapshot</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/snapshot-${number}.${Ext}</Object>
<SpriteObject>abc/${RunId}/sprite-${number}.${Ext}</SpriteObject>
</Output>
</Operation>
</Snapshot_1581665960536>
<Transcode_1581665960538>
<Type>Transcode</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/trans.{Ext}</Object>
</Output>
</Operation>
</Transcode_1581665960538>
<Segment_15816659605667>
<Type>Segment</Type>
<Operation>
<Segment>
<Format>mkv</Format>
<Duration>20</Duration>
</Segment>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>test-trans${Number}.{Ext}</Object>
</Output>
</Operation>
</Segment_15816659605667>
<SmartCover_1581665960539>
<Type>SmartCover</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/cover-${Number}.{Ext}</Object>
</Output>
</Operation>
</SmartCover_1581665960539>
<PicProcess_15816659605668>
<Type>PicProcess</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/pic.{Ext}</Object>
</Output>
</Operation>
</PicProcess_15816659605668>
</Nodes>
</Topology>
</MediaWorkflow>
</Response>
The nodes are described as follows:
Node Name (Keyword) | Parent Node | Description | Type |
---|---|---|---|
Response | None | Result storage container | Container |
Response
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type |
---|---|---|---|
RequestId | Response | Unique ID of the request | String |
MediaWorkflow | Response | Workflow array. | Container |
MediaWorkflow
has the following sub-nodes:
Node Name (Keyword) | Parent Node | Description | Type |
---|---|---|---|
Name | Response.MediaWorkflow | Workflow name. | String |
WorkflowId | Response.MediaWorkflow | Workflow ID | String |
State | Response.MediaWorkflow | Workflow status. | String |
CreateTime | Response.MediaWorkflow | Creation time. | String |
UpdateTime | Response.MediaWorkflow | Update time. | String |
Topology | Response.MediaWorkflow | Topology information, which is the same as Request.MediaWorkflow.Topology in the request. |
Container |
No special error message will be returned for this request. For the common error messages, please see Error Codes.
Screencapturing and transcoding the input video file, performing remuxing and intelligent thumbnail generation on the output file, and then performing image processing on the generated thumbnail
POST /workflow HTTP/1.1
Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0e****
Host: test-1234567890.ci.ap-chongqing.myqcloud.com
Content-Length: 166
Content-Type: application/xml
<Request>
<MediaWorkflow>
<Name>workflow-1</Name>
<State>Active</State>
<Topology>
<Dependencies>
<Start>Snapshot_1581665960536,Transcode_1581665960538</Start>
<Snapshot_1581665960536>End</Snapshot_1581665960536>
<Transcode_1581665960538>Segment_15816659605667,SmartCover_1581665960539</Transcode_1581665960538>
<Segment_15816659605667>End</Segment_15816659605667>
<SmartCover_1581665960539>PicProcess_15816659605668</SmartCover_1581665960539>
<PicProcess_15816659605668>End</PicProcess_15816659605668>
</Dependencies>
<Nodes>
<Start>
<Type>Start</Type>
<Input>
<QueueId>p09d709939fef48a0a5c247ef39d90cec</QueueId>
<PicProcessQueueId>p2911917386e148639319e13c285cc774</PicProcessQueueId>
<ObjectPrefix>input/workflow-1</ObjectPrefix>
<NotifyConfig>
<State>On</State>
<Url>http://www.callback.com</Url>
<Event>TaskFinish,WorkflowFinish</Event>
<Type>Url</Type>
<ResultFormat>JSON</ResultFormat>
</NotifyConfig>
<ExtFilter>
<State>On</State>
<Video>true</Video>
<Audio>false</Audio>
<Image>false</Image>
<Custom>false</Custom>
<AllFile>false</AllFile>
</ExtFilter>
</Input>
</Start>
<Snapshot_1581665960536>
<Type>Snapshot</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/snapshot-${number}.${Ext}</Object>
<SpriteObject>abc/${RunId}/sprite-${number}.${Ext}</SpriteObject>
</Output>
</Operation>
</Snapshot_1581665960536>
<Transcode_1581665960538>
<Type>Transcode</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/trans.{Ext}</Object>
</Output>
</Operation>
</Transcode_1581665960538>
<Segment_15816659605667>
<Type>Segment</Type>
<Operation>
<Segment>
<Format>mkv</Format>
<Duration>20</Duration>
</Segment>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>test-trans${Number}.{Ext}</Object>
</Output>
</Operation>
</Segment_15816659605667>
<SmartCover_1581665960539>
<Type>SmartCover</Type>
<Operation>
<TemplateId>t16e81a29fe48c4e23acefc247a7792b63</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>abc/${RunId}/cover-${Number}.{Ext}</Object>
</Output>
</Operation>
</SmartCover_1581665960539>
<PicProcess_15816659605668>
<Type>PicProcess</Type>
<Operation>
<TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId>
<Output>
<Region>ap-chongqing</Region>
<Bucket>test-1234567890</Bucket>
<Object>bcd/${RunId}/pic.{Ext}</Object>
</Output>
</Operation>
</PicProcess_15816659605668>
</Nodes>
</Topology>
</MediaWorkflow>
</Request>
Apakah halaman ini membantu?