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.
Log on to the MPS console. In the top navigation bar, select a region.
Add media buckets.
In the left-side navigation pane, choose Add 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
Enable an MPS queue.
In the left-side navigation pane, choose Create an MPS queue.. Find the MPS queue that you want to enable and click Activate in the Actions column. For more information, see
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.
Create a workflow.
In the left-side navigation pane, choose Create a workflow.. On the Workflow Orchestration page, click Create Workflow. On the Create Workflow page, configure the parameters. For more information, see
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.
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.
View output media files.
In the left-side navigation pane, choose Manage media files.and view output media files. For more information, see
For more information about how to view the status of the workflow, see Query execution instances.