Updated on 2022-03-17 GMT+08:00

Uploading Media Files

MPC does not store media files. Upload a video file to be transcoded to an OBS bucket before using MPC. This section describes how to upload media files.

Notes

MPC only processes media files stored in an OBS bucket whose region is the same as MPC. If you want to use MPC in CN North-Beijing 4, then the bucket that stores media files must be in CN North-Beijing 4 as well.

Procedure

  1. Log in to the OBS console.
  2. Click Create Bucket.
  3. On the displayed page, enter the bucket name and select the storage class and bucket policy based on your needs.
  4. Click Create Now.

    If the input and output files are stored in the same bucket, create one bucket. Otherwise, create two buckets as the input and output buckets respectively.
    Table 1 Storage classes

    Storage Class

    Application Scenario

    Standard

    Stores frequently accessed (multiple times per month) data such as small and essential files that require low latency.

    Infrequent Access

    Stores infrequently accessed (once per month) data that requires low latency.

    Archive

    Stores rarely accessed (once per year) data.

    Table 2 Bucket policies

    Bucket Policy

    Description

    Private

    Only the bucket owner can read, write, and delete objects in the bucket.

    Public Read

    Any user can read objects in the bucket. Only the bucket owner can write and delete objects in the bucket.

    Public Read and Write

    Any user can read, write, and delete objects in the bucket.

    • Select a region where you want MPC to do the transcoding. If you use MPC in CN North-Beijing 4, then you need to create a bucket in CN North-Beijing 4.
    • If input files and output files are stored in different buckets, you are advised to set the storage class of the input bucket to Infrequent Access and that of the output bucket to Standard.

  5. Configure the input folder.

    1. Click the name of the bucket created in step 3. The bucket details page is displayed.
    2. In the navigation pane, choose Objects. On the displayed page, click Create Folder to create an input folder.

  6. Configure the output folder. The procedure is similar to that in step 5.

    1. Click the name of the output bucket created in step 3. The bucket details page is displayed.
    2. In the navigation pane, choose Objects. On the displayed page, click Create Folder to create an output folder.

  7. Upload media files.

    1. On the input bucket details page, click the name of the input folder.
    2. Click Upload File and select a media file.
    3. Select the storage class and encryption mode of the file, and click OK.