如何使用 Media Encoder Standard 创建覆盖How to create an overlay with Media Encoder Standard

媒体服务徽标 v3media services logo v3


Media Encoder Standard 允许在现有视频上覆盖图像。The Media Encoder Standard allows you to overlay an image onto an existing video. 目前支持以下格式:png、jpg、gif 和 bmp。Currently, the following formats are supported: png, jpg, gif, and bmp.

先决条件Prerequisites

  • 在示例中收集配置 appsettings.json 文件所需的帐户信息。Collect the account information that you need to configure the appsettings.json file in the sample. 如果你不确定怎么做,请参阅快速入门:将应用程序注册到 Microsoft 标识平台If you're not sure how to do that, see Quickstart: Register an application with the Microsoft identity platform. Appsettings.json 文件中应有以下值。The following values are expected in the appsettings.json file.

    {
    "AadClientId": "",
    "AadEndpoint": "https://login.chinacloudapi.cn",
    "AadSecret": "",
    "AadTenantId": "",
    "AccountName": "",
    "ArmAadAudience": "https://management.core.chinacloudapi.cn/",
    "ArmEndpoint": "https://management.chinacloudapi.cn/",
    "Region": "",
    "ResourceGroup": "",
    "SubscriptionId": ""
    }
    

如果你不熟悉“转换”,建议完成以下活动:If you aren't already familiar with Transforms, it is recommended that you complete the following activities:

熟悉了转换后,请下载覆盖示例。Once you are familiar with Transforms, download the overlays sample.

覆盖预设示例Overlays preset sample

下载媒体服务覆盖的示例开始进行覆盖。Download the media-services-overlay sample to get started with overlays.

后续步骤Next steps