After you set up a workflow, videos uploaded to the specified bucket and directory will be processed automatically, and the results will be uploaded to the specified bucket and directory. Workflows can include tasks such as transcoding, screenshot taking, animated image generating, moderation, content recognition, content analysis, and watermarking.
Item | Required | Description |
---|---|---|
Workflow name | Yes | Max 128 characters; supports Chinese characters, letters, digits, underscores, and hyphens. Example: "MPS" |
Trigger bucket | Yes | Select a bucket created under the current `APPID`. After the workflow is enabled, videos uploaded to this bucket will be processed automatically. |
Trigger directory | No | A string that ends with (/) . If it is left empty, the workflow will be applied to all directories under the selected trigger bucket. |
Output bucket | Yes | By default, the output bucket is the same as the trigger bucket. You can also select a bucket in the same region under the same `APPID`. After a workflow is executed, the processed videos will be stored in this bucket. |
Output directory | No | A string that ends with (/) . If it is left empty, the output directory will be the same as the trigger directory. |
Event notifications | No |
|
Configuration items | Yes | From transcoding, screenshot taking, animated image generation, moderation, content recognition, and content analysis, select at least one task for configuration. For details, please see task configuration below. |
Callback Method | Configuration |
---|---|
CMQ callback |
|
SCF callback | Click **Go to SCF Console** to configure the callback in the SCF console. For detailed instructions, please see MPS Task Callback Notification. The configuration applies to all workflows and is not saved specifically by one workflow. |
Event notifications are disabled by default. To receive notifications via CMQ, click the toggle next to Enable Event Notifications, select queue or topic model for CMQ Model, and set the model name and region. MPS event notifications will be sent to the specified queue or topic.
You can receive event notifications via CMQ only after you activate the CMQ service and create a queue or topic model. For more information, please see CMQ > Getting Started.
SCF allows quick handling of the event notifications generated by MPS. The figure below shows the data flow.
Events are pushed to SCF by the MPS trigger and are handled by serverless functions.
CLS can deliver the data in log topics to SCF via an MPS log trigger to enable operations such as notification sending, status monitoring, and alarm handling.
Use Case | Description |
---|---|
Video task backup to COS | Backing up the called back tasks of MPS to COS via SCF in a timely manner |
Video task callback notifications | Receiving MPS data messages in real time and sending the messages to users via email, etc. |
Note:You will incur a cost for delivering data to SCF. For details, please see SCF > Billing Overview.
Task Type | Preset/Custom Template | Template Configuration |
---|---|---|
Transcoding | Both supported | |
Screenshot | Both supported | |
Animated image generation | Both supported | Animated image generating template: you can add multiple animated image generating templates and can change the period for generating animated images. If existing templates do not meet your needs, you can create your own in Template Settings > Animated Image Generating Template. |
Moderation | Both supported | Moderation template: you can add only 1 moderation template to a task. If existing templates do not meet your needs, you can create your own in Template Settings > Moderation Template. |
Content recognition | Both supported | Content recognition template: you can add only 1 content recognition template to a task. If existing templates do not meet your needs, you can create your own in Template Settings > Content Recognition Template. |
Content analysis | Both supported | Content analysis template: you can add only 1 content analysis template to a task. If existing templates do not meet your requirements, you can create your own in Template Settings > Content Analysis Template. |
Was this page helpful?