Use the S3 protocol to export videos

更新时间:
复制 MD 格式

Configure the S3 protocol in the SubmitMediaProducingJob operation to export produced videos to external or cross-region cloud storage services.

Important

The feature is in public preview and free of charge. You are charged for the feature after the feature is commercialized.

I. Background information

The SubmitMediaProducingJob operation supports S3-compatible output. To export videos produced by editing and production jobs to another cloud service provider, configure the S3 protocol as the output target.

II. Introduction

Operation: SubmitMediaProducingJob

Request parameters:

  1. OutputMediaTarget: You must set this parameter to S3.

  2. OutputMediaConfig: Configure the following parameters required by the S3 protocol:

    1. Endpoint: the endpoint provided by the destination cloud service provider.

    2. Bucket: the bucket of the destination cloud service provider.

    3. ObjectKey: the name of the object to be exported.

    4. AccessKeyId: the temporary AccessKey ID of the destination cloud service provider.

    5. AccessKeySecret: the temporary AccessKey secret of the destination cloud service provider.

3. Examples

3.1 Export videos to COS of Tencent Cloud

{
    "OutputMediaTarget": "S3",
    "OutputMediaConfig": {
        "Endpoint": "https://your_bucket.cos.ap-shanghai.myqcloud.com",
        "Bucket": "test-directory",
        "ObjectKey": "test.mp4",
        "AccessKeyId": "XXX",
        "AccessKeySecret": "XXX"
    }
}
Note

The new version of Tencent Cloud Object Storage (COS) provides endpoints that contain bucket information. When you use the endpoints, the value of the Bucket parameter is used as the parent directory. In the preceding example, the path of the output file is https://your_bucket.cos.ap-shanghai.myqcloud.com/test-directory/test.mp4.

3.2 Export videos to Huawei Cloud OBS

{
    "OutputMediaTarget": "S3",
    "OutputMediaConfig": {
        "Endpoint": "https://obs.cn-east-3.myhuaweicloud.com",
        "Bucket": "your-bucket",
        "ObjectKey": "test.mp4",
        "AccessKeyId": "XXX",
        "AccessKeySecret": "XXX"
    }
}

3.3 Export videos to Alibaba Cloud OSS in another region

You can also use the S3 protocol to export videos to Object Storage Service (OSS) in other regions. For example, export videos produced in the China (Shanghai) region to OSS buckets in the China (Hangzhou) region.

{
    "OutputMediaTarget": "S3",
    "OutputMediaConfig": {
        "Endpoint": "https://oss-cn-hangzhou.aliyuncs.com",
        "Bucket": "your-bucket",
        "ObjectKey": "test.mp4",
        "AccessKeyId": "XXX",
        "AccessKeySecret": "XXX"
    }
}