创建 CopyAllBitrateNonInterleaved 转换Create a CopyAllBitrateNonInterleaved transform

媒体服务徽标 v3media services logo v3


本文介绍如何创建 CopyAllBitrateNonInterleaved 转换。This article shows how to create a CopyAllBitrateNonInterleaved transform.

先决条件Prerequisites

按照创建媒体服务帐户中的步骤操作,创建所需的媒体服务帐户和资源组以创建资产。Follow the steps in Create a Media Services account to create the needed Media Services account and resource group to create an asset.

方法Methods

使用 REST APIUsing the REST API

以下 Azure REST 命令使用 #Microsoft.Media.BuiltInStandardEncoderPreset 预设中的 copyAllBitrateNonInterleaved 创建转换。The following Azure REST command creates a transform using copyAllBitrateNonInterleaved from the #Microsoft.Media.BuiltInStandardEncoderPreset preset. subscriptionIDresourceGroupaccountName 值替换为当前正在使用的值。Replace the values subscriptionID, resourceGroup, and accountName with values you are currently working with. 通过设置 transformName 为转换命名。Give your transform a name by setting transformName.

若要查看所有可用的 REST API 转换,请参阅转换 - 创建或更新To view all of the REST API transforms that are available, see Transforms - Create Or Update.

PUT https://management.chinacloudapi.cn/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroup}}/providers/Microsoft.Media/mediaServices/{{accountName}}/transforms/{{transformName}}?api-version=2020-05-01

正文Body

{
    "name": "myTransform",
    "id": "/subscriptions/35c2594a-23da-4fce-b59c-f6fb9513eeeb/resourceGroups/inhenkelRG/providers/Microsoft.Media/mediaservices/inhenkel/transforms/myTransform",
    "type": "Microsoft.Media/mediaservices/transforms",
    "properties": {
        "description": "Basic Transform using a copyAllBitrateNonInterleaved encoding preset from the library of built-in Standard Encoder presets",
        "outputs": [
            {
                "onError": "StopProcessingJob",
                "relativePriority": "Normal",
                "preset": {
                    "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset",
                    "presetName": "CopyAllBitrateNonInterleaved"
                }
            }
        ]
    }
}

示例响应Sample response

{
  "name":"myTransform",
    "id":"/subscriptions/35c2594a-23da-4fce-b59c-f6fb9513eeeb/resourceGroups/inhenkelRG/providers/Microsoft.Media/mediaservices/inhenkel/transforms/myTransform","type":"Microsoft.Media/mediaservices/transforms","properties":{
        "created":"2020-11-18T19:19:27.4405209Z",
        "description":"Basic Transform using a copyAllBitrateNonInterleaved encoding preset from the library of built-in Standard Encoder presets","lastModified":"2020-11-18T19:19:27.4405209Z",
        "outputs":[
            {
                "onError":"StopProcessingJob","relativePriority":"Normal","preset":{
                "@odata.type":"#Microsoft.Media.BuiltInStandardEncoderPreset",
                "presetName":"CopyAllBitrateNonInterleaved"
        }
      }
    ]
  }
}

后续步骤Next steps

媒体服务概述Media Services Overview