Library quick start guide

Last Updated: Jan 04, 2018

Procedure

Step 1. Media Transcoding console logon

Log on to the Media Transcoding console. The console checks the activation statuses of services the product depends on. Follow the operation instructions on this page.

Step 2. Library settings

A library uses OSS to store your audio and video resources. It provides media indexing, allowing you to quickly search for audio and video resources by titles, tags, categories, and descriptions.

After MTS is activated, initialize the library and set the Input Media Bucket and Output Media Bucket.

  • Input Media Bucket: This bucket stores the original videos you have uploaded.

  • Output Media Bucket: This bucket stores videos output by the Media Files.

  1. Set Media Buckets.

    Click Library > Library Settings > Media Buckets to set the Input Media Bucket and Output Media Bucket.

    1. Set Input Media Bucket.

      1. Click Add at the right side of Input Media Bucket.

        2

        Note: If you have already created OSS buckets in the current OSS service region, these buckets are listed on the settings interface. In this case, select the appropriate bucket. You can also create a new bucket as the Input Media Bucket.

      2. Click Create, and click OK.

      3. Enter the bucket name, and click OK.

      4. The Input Media Bucket name is shown in the list. Click OK.

        2

    2. Set Output Media Bucket.

      Repeat the preceding process to set the Output Media Bucket.

    As shown in the following figure, the Input Media Bucket and Output Media Bucket are added.

    2

  2. Create a workflow.

    Click Library > Library Settings > Workflows to create a workflow. You can select a workflow from Presets and edit it as needed to quickly create a workflow.

    2

    1. On the Input node, set the following information:

      Input path: A storage location in OSS.

      Note: The Input path must exist in OSS.

      Message Type: This parameter is optional. You can select Message Queue or MNS and set the relevant queue or messaging instance.

      2

    2. On the Transcoding node, set the following information:

      Output Path: A storage location in OSS and the output file name. To avoid output files from being overwritten when a workflow is run multiple times, you can combine the system’s built-in variable parameters:

      • {RunId} the media workflow run ID,

      • {ObjectPrefix} the original file path not including Bucket information,

      • {FileName} the original file name not including the extension name; and

      • {ExtName} the original file extension name.

      Note: The output bucket cannot be the same as the input bucket.

      2

    3. On the Screenshot node, set the following information:

      Output Path: A storage location in OSS and the output file name. See the output path description for the transcoding node.

      Set as Thumbnail: When multiple screenshots exist, the first one is set as the Thumbnail by default.

      2

    After setting the nodes, click Next. You can bind a CDN domain to the output bucket (Optional). The added domain name must already be filed.

    2

  3. Upload a file.

    After creating a workflow, upload a file under the specified workflow on the Media Files page. After the file is uploaded, this workflow is automatically triggered.

    2

    2

  4. View workflow progress and result.

    • Go to the Media Files page, you can view the video processing status and output file details.

    • Click Status of the video, you can view the Workflow Progress.

      2

    • Click Details, you can view the original file, transcoding output, screenshot output, and other information. This function also allows you to obtain the address of the transcoding output file and preview video playback.

      2

Thank you! We've received your feedback.