This document helps you get started with MPS. The diagram below describes the basic steps:
MPS needs read and write access to COS in order to download and transcode videos in COS buckets and upload files to the buckets. Therefore, you need to create a service role and grant the role access to COS.
If you haven’t granted the access yet, go to the MPS console, and click Go to CAM to enter the authorization page to grant the access.
![]
Note:You cannot perform further operations in the MPS console before granting the access.
Because video processing is performed on video files uploaded to COS, you need to first create a bucket in the COS console.
In the COS console, select Bucket List and click Create Bucket to create a bucket. You can then create folders in the bucket and upload files to them. For more information, please see Creating Buckets.
With the use of templates, a workflow can automatically process video files uploaded to a specified bucket. You can add tasks such as transcoding, screenshot taking, and animated image generating to a workflow.
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. |
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. |
Note:A workflow will be executed automatically on video files uploaded to the trigger bucket only after it is enabled. Files uploaded before the workflow is enabled will not be processed.
Was this page helpful?