如何使用 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, audio file, or another video onto another video. 输入必须仅指定一个文件。The input must specify exactly one file. 可以指定 JPG、PNG、GIF 或 BMP 格式的图像文件,或者指定音频文件(如 WAV、MP3、WMA 或 M4A 文件)或视频文件。You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file.

先决条件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/",
    "Location": "",
    "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

有关创建转换的其他操作指南:Other how to guides for creating a transform: