This document helps you get started with using MPS. The diagram below describes the basic steps:
MPS needs to perform read/write operations, including downloading, transcoding and uploading for files in COS buckets. Therefore, you need to create service roles and grant MPS permissions to operate on COS resources.
Go to the MPS Console. If you have not authorized MPS, click Go to CAM to enter the permission management page to authorize MPS.
If you have not completed authorization, you cannot perform further operations in the MPS Console.
Because video processing is performed on video files uploaded to COS, you need to first create a bucket in the COS Console.
Go to the Bucket List page in the COS Console and click Create Bucket to create a bucket. Then, you can create folders in the bucket and upload files. For more information, please see Creating Buckets.
A workflow can help you automatically process video files uploaded to the bucket using created templates. In a workflow, you can set tasks such as transcoding, screencapturing, animated image generating, and watermarking.
Here are the items that need to be configured to create a workflow:
|Workflow name||Yes||The name can consist of up to 128 letters, digits, underscores (_), backslashes (), or hyphens (-), e.g., "MPS".|
|Trigger bucket||Yes||You can select a bucket under the current APPID as the trigger bucket. When the workflow is enabled, video files uploaded to this bucket will automatically trigger execution of the workflow.|
|Trigger directory||No||This value must end with a slash (/). If it is left blank, the workflow will take effect for all directories in the trigger bucket.|
|Output bucket||Yes||This value is the same as the trigger bucket by default. You can select a bucket under the current APPID in the same region as the trigger bucket as the output bucket. After a workflow is completed, the output video file will be stored in this bucket.|
|Output directory||No||This value must end with a slash (/). If it is left blank, the output directory will be the same as the trigger directory.|
|Event notification||No||Disabled by default.|
|Configuration items||Yes||Tasks include transcoding, screencapturing, or animated image generating. You must select at least one task.|
Automatic execution of a workflow will take effect only for files uploaded to the trigger bucket after the workflow is enabled. Files uploaded before the workflow is enabled will not be touched.