edit-icon download-icon

Library quick start guide

最終更新日: Mar 19, 2018

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

After MPS 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.

Procedure

  1. Log on to the Media Processing cosole.

    The console checks the activation status of services the product depends on. Follow the operation instructions on this page.

  2. Select the region.

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

    2

    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.

        2

      3. Enter the Bucket Name, and click OK.

        2

      4. The Input Media Bucket name is shown in the list. Select the created bucket name and click OK.

        2

    2. Set Output Media Bucket.

      1. Click Add at the right side of Output 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.

        2

      3. Enter the Bucket Name, and click OK.

        2

      4. The Output Media Bucket name is shown in the list. Select the created bucket name and click OK.

        2

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

    2

  4. Create a workflow.

    Click Library > Library Settings > Workflows > Create Workflow to create a workflow.

    2

    You can select a workflow from Preset and edit it as needed to quickly create a workflow. You can also customize a workflow.

    2

    1. Click the 2 icon at the right side of the Input node to set the following information.

      1. On the Input page, click select at the right side of Input Path.

        2

        Note: Input path is a storage location in OSS. The Input path must exist in OSS.

      2. In OSS File Manager, select the bucket name, and click OK.

        2

      3. Message Type is optional. You can select MNS Queue or Notification and set the relevant instance.

        2

    2. Click the 2 icon at the right side of Input node to add the Transcode node.

      2

      1. Click the 2 icon at the right side of the Transcode node.

      2. In Transcode > Basic Settings, click select at the right side of Template.

        2

      3. Select the template and click OK.

        2

      4. In Transcode > Basic Settings, click Select at the right side of Output Location.

        2

        Note: Output Location is 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.

      5. In OSS File Manager, select the bucket name and click OK.

        2

        Note: The Input Bucket and the Output Bucket cannot be the same.

      6. The Output Location is a storage location in OSS and the output file name. For details, see Output Location description for the Transcode node.

        The Transcode node cofiguration is completed.

        2

    3. Click the 2 icon at the right side of the Input node or the Transcode node to add the Screenshot node.

      1. Click the 2 icon at the right side of the Screenshot node.

      2. Select Sreenshot Type.

      3. Click Select at the right side of Output Location.

        2

      4. In OSS File Manager, select the bucket name and click OK.

        2

      5. Enabe the Set As Thumbnail function.

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

    4. After setting the nodes, click Next.

      2

    5. You can bind a CDN domain name to the Output Bucket (Optional).

      2

      Note: The added domain name must already be filed.

      2

  5. Upload a file.

    1. Click Library > Media Files > Upload Media.

      2

    2. On the Upload page, select the workflow, and click Select File.

      2

      After the file is uploaded, you can click Upload More.

      2

    After the file is uploaded, this workflow is automatically triggered.

  6. View workflow progress and result.

    • On the Media Files page, you can view the Task Status and output file information.

      2

    • Click Details in the Task Status column, you can view the Workflow Instance Status, transcoding output, screenshot output, and other information.

    • Click the Task ID, you can also obtain the address of the transcoding output file and preview video playback.

      2