All Products
Search
Document Center

ApsaraVideo Media Processing:Use a workflow

Last Updated:Dec 27, 2023

If you want to produce videos that involve multiple bitrates, audio tracks, subtitles, and formats, or want to run multiple jobs based on the specified sequence or conditions, you can create a workflow. In the workflow, you can configure nodes for running jobs such as transcoding, analysis, snapshot, packaging or encapsulation, review, media fingerprint extraction, and intelligent thumbnail configuration. This topic describes how to use a workflow in the ApsaraVideo Media Processing (MPS) console. In this example, a transcoding job is used to trigger the workflow.

Procedure

image
  1. Log on to the MPS console. In the top navigation bar, select a region.

  2. Add media buckets.

    In the left-side navigation pane, choose Workflow > Media Buckets. On the Input Buckets tab, click Add Bucket and configure the parameters. Perform the same operations on the Output Buckets tab. For more information, see Add media buckets.

  3. Enable an MPS queue.

    In the left-side navigation pane, choose Global Settings > MPS Queue and Callback. Find the MPS queue that you want to enable and click Activate in the Actions column. For more information, see Create an MPS queue.

  4. Optional. Create a transcoding template.

    If the preset templates cannot meet your business requirements, you can create a custom transcoding template. For more information, see Transcoding templates.

  5. Create a workflow.

    In the left-side navigation pane, choose Workflow > Workflow Orchestration. On the Workflow Orchestration page, click Create Workflow. On the Create Workflow page, configure the parameters. For more information, see Create a workflow.

  6. Upload video files.

    You can upload video files in the MPS console or the Object Storage Service (OSS) console. We recommend that you upload video files in the OSS console. For more information, see Upload a video.

  7. Trigger the workflow.

    If the uploaded videos meet the workflow triggering rule, the workflow is automatically triggered. For videos that are uploaded to the input path before the workflow is created, you must call the AddMedia operation to trigger the workflow. This prevents repeated transcoding.

  8. View output media files.

    In the left-side navigation pane, choose Media Management > Media List and view output media files. For more information, see Manage media files.

    For more information about how to view the status of the workflow, see Query execution instances.