All Products
Search
Document Center

ApsaraVideo Media Processing:Get started with MPS

Last Updated:Mar 26, 2024

This topic describes the full process of using ApsaraVideo Media Processing (MPS), from activating the service to submitting an MPS job or workflow. This helps you get started with MPS.

Flowchart of using MPS

image

Prerequisites

An Alibaba Cloud account is created, and real-name verification is complete. For more information, see Create an Alibaba Cloud account.

Step 1: Activate MPS

  1. Activate MPS. For more information, see Activate MPS.

  2. Recommended. Create a Resource Access Management (RAM) user and authorize the RAM user to access MPS. For more information, see Create a RAM user and grant permissions to the RAM user.

    Note

    We recommend that you create RAM users and authorize the RAM users to access different resources. If multiple users in your enterprise need to simultaneously access resources, you can use RAM to grant the least permissions to the users. This prevents the users from sharing the username and password or AccessKey pair of an Alibaba Cloud account and reduces security risks.

Step 2: Upload and store an input file

  1. Log on to the Object Storage Service (OSS) console. In the left-side navigation pane, click Buckets. On the Buckets page, click Create Bucket.

  2. In the Create Bucket panel, configure parameters as prompted.

  3. Click OK. The bucket is created.

    Important

    The bucket must be created in the region in which you activate MPS. If you want to store the input and output files in different buckets, repeat the preceding steps.

  4. Upload an input file.

    1. On the Buckets page, find the bucket in which you want to store the input file and click its name. On the Objects page, click Upload Object.

    2. On the page that appears, click Select Files to select the input file.

    3. After the input file enters the Ready for Upload state, click Upload Object.

      In the Task List panel, wait until the input file enters the Uploaded state. The input file is uploaded.

Step 3: Enable an MPS queue

The MPS queues used by jobs vary based on the job type. For more information, see Create an MPS queue.

  1. Log on to the MPS console.

  2. In the top navigation bar, select the region in which your OSS buckets reside.地域

  3. In the left-side navigation pane, choose Global Settings > MPS Queue and Callback.

  4. Find the MPS queue of the type that you want to use and click Activate in the Actions column. In the dialog box that appears, name the MPS queue.

    Note

    If the MPS queue that you want to use is unavailable, you can click Create MPS Queue on the MPS Queue and Callback page to create an MPS queue based on your requirements. For more information, see Create an MPS queue.

    启用管道

Step 4: (Optional) Configure a template

If you use a preset template provided by MPS, skip this step. If preset templates do not meet your business requirements, you can create a custom template.

  • Preset templates can be divided into several types, such as preset templates for regular transcoding, audio transcoding, container format conversion, Narrowband HDTM, and resolution redoubling. For more information, see Preset template details.

  • MPS allows you to create custom transcoding templates and custom watermark templates in the MPS console or by calling API operations. For more information, see Manage templates.

Step 5: Create an MPS job or workflow

MPS allows you to create MPS jobs or workflows in the MPS console or by calling API operations.

  • Create an MPS job in the MPS console

    1. In the left-side navigation pane, choose Tasks > Job Management.

    2. On the Tasks page, click a tab based on the type of the MPS job that you want to create. On the tab, click Create Task. On the page that appears, configure parameters for the job input, job output, MPS queue, and template. For more information, see Job management.

      Note

      For information about how to create MPS jobs by calling API operations, see API path.

  • Create an MPS workflow in the MPS console

    1. In the left-side navigation pane, choose Workflow > Workflow Orchestration. On the Workflow Orchestration page, click Create Workflow.

    2. On the Create Workflow page, configure the parameters in the Basic Settings section and configure nodes in the workflow.

  • For information about how to create MPS workflows by calling API operations, see API path.

Step 6: Query the job results

After an MPS job is submitted, you can use one of the following methods to query the job results:

  • In the left-side navigation pane of the MPS console, choose Tasks > Job Management. On the Tasks page, view the status and details of the job.

  • Call API operations. For example, you can call the QueryJobList operation to query the results of one or more transcoding jobs based on the job ID.

  • Enable the notification feature to send notifications on MPS jobs and workflows to Message Service (MNS) queues or topics. For more information, see Enable the notification feature for MPS jobs or workflows.