Background

One input file corresponds to multiple output files (different resolutions, different formats, etc.). A commonly used video processing flow can be created quickly through the console graphic interface.

Advantages

  • Simple and easy to use, once video upload has completed, transcoding tasks are automatically triggered.

  • Supports multiple functions such as screenshots, transcoding, encapsulation, watermarking, editing and other functions.

  • Supports sending workflow execution message to the specified MPS queue or message notification upon beginning and ending the workflow.

  • Media Files to offer you audio and video management capabilities. Media ID associates outputs of multiple definition in multiple formats. When using the MediaID for playback, automatic switch among multiple definitions can be achieved , and multiple formats are supported.

  • Supports both URL and MediaID playback.

For more information, see Developing process of workflows.

Restrictions

  • A workflow can only be configured with only one input path, the workflow processes handle all videos in this path.

  • Videos uploaded to the input directory will trigger workflow transcoding. Currently, only simple conditional transcoding scenarios are supported, and some complex business logic cannot be supported.

  • The workflow supports Alibaba Cloud private encryption, but HLS-AES128 standard encryption is not yet supported.

Preparation

Procedure

  1. Add Input/Output Media Bucket.
  2. Create a workflow. In the workflow, you can customize parameters for screenshots, transcoding, conversion and encapsulation, watermark, encryption, editing and other functions.
  3. Enable the CDN acceleration function (optional): If you need to enable Content Distribution Acceleration for your domain name, see Domain name management.
  4. Upload videos: You can use the MPS console or OSS related upload tools to upload a video file. In addition, an upload SDK that covers all platforms is provided. For details, see Upload SDK usage instructions, Upload SDK downloading.
  5. Manage videos.
  6. Play video.

Set up a video transcoding application

Download JAVA source code.