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 Input Media BucketandOutput 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. Log on to the Media Processing console.

    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 Bucketsto set theInput Media Bucket and Output Media Bucket.
    1. Set Input Media Bucket.
      1. ClickAdd at the right side of Input Media Bucket.

        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.

      3. Enter the Bucket Name, and click OK.

      4. The Input Media Bucketname is shown in the Input Media Bucket list. Select the created bucket name and clickOK.
    2. Set Output Media Bucket.
      1. Click Add at the right side of Output Media Bucket.

        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.

      3. Enter the Bucket Name, and clickOK.

      4. The Output Media Bucket name is shown in the Output Media Bucketlist. Select the created bucket name and clickOK.
    As shown in the following figure, the Input Media Bucket and Output Media Bucket are added.

  4. ClickLibrary > Library Settings > Workflows > Create Workflowto create a workflow.

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

    1. At the right side of Inputnode, click theicon to set the following information.
      1. On theInput page, click select at the right side of Input Path.

        Note Input pathis a storage location in OSS. The Input path must exist in OSS.
      2. InOSS File Manager, select the bucket name, and clickOK.

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

    2. At the right side of Inputnode, click theicon to add the Transcode node.

      1. At the right side of the Transcode node, click the icon to configure.
      2. In Transcode > Basic Settings , click Select at the right side of Template.

      3. Select the Transcode template and clickOK.

      4. In Transcode > Basic Settings, click Select at the right side of Output Location.
        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,

        • {ExtName} the original file extension name.

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

        Note The Input Bucket and the Output Bucket cannot be the same.
      6. The Output Locationis a storage location in OSS and the output file name. For details, see Output Location description for the Transcode node.

        The Transcodenode cofiguration is completed.



    3. At the right side of the Inputnode orTranscodenode, click the icon to add theScreenshot node.
      1. At the right side of the Screenshot node, click theicon to configure.
      2. Select Sreenshot Type.
      3. Click Selectat the right side of Output Location.

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

      5. Enabe theSet As Thumbnail function.

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

    4. After setting the nodes, clickNext.

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

      Note The added domain name must already be filed.


  5. Upload a file.
    1. Click Library > Media Files > Upload Media.

    2. On the Uploadpage, select the workflow, and click Select File.

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

    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.

    • Click Details in the Task Statuscolumn, you can view the Workflow Instance Status, source file, 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.