在 Azure 门户中使用 Media Encoder Standard 对资产进行编码Encode an asset by using Media Encoder Standard in the Azure portal

媒体服务徽标media services logo


备注

要完成本教程,需要一个 Azure 帐户。To complete this tutorial, you need an Azure account. 有关详细信息,请参阅 Azure 试用For details, see Azure Trial.

使用 Azure 媒体服务时最常见的情况之一是将自适应比特率流传送至客户端。One of the most common scenarios in working with Azure Media Services is delivering adaptive bitrate streaming to your clients. 媒体服务支持以下自适应比特率流式处理技术:Apple HTTP Live Streaming (HLS)、Microsoft 平滑流式处理,以及经 HTTP 的动态自适应流式处理(DASH,也称 MPEG-DASH)。Media Services supports the following adaptive bitrate streaming technologies: Apple HTTP Live Streaming (HLS), Microsoft Smooth Streaming, and Dynamic Adaptive Streaming over HTTP (DASH, also called MPEG-DASH). 要准备视频以便进行自适应比特率流式处理,首先要将源视频编码成多比特率文件。To prepare your videos for adaptive bitrate streaming, first encode your source video as multi-bitrate files. 可使用 Media Encoder Standard 对视频进行编码。You can use Media Encoder Standard to encode your videos.

可以通过媒体服务进行动态打包。Media Services gives you dynamic packaging. 通过动态打包,可以在 HLS、平滑流式处理和 MPEG-DASH 中提供多比特率 MP4,而无需重新打包这些流格式。With dynamic packaging, you can deliver your multi-bitrate MP4s in HLS, Smooth Streaming, and MPEG-DASH, without repackaging in these streaming formats. 借助动态打包功能,可存储和播放使用单一存储格式的文件。When you use dynamic packaging, you can store and pay for the files in single-storage format. 媒体服务会根据客户端的请求生成并提供适当的响应。Media Services builds and serves the appropriate response based on a client's request.

要利用动态打包,必须将源文件编码为一组多比特率 MP4 文件。To take advantage of dynamic packaging, you must encode your source file into a set of multi-bitrate MP4 files. 本文稍后将演示编码步骤。The encoding steps are demonstrated later in this article.

要了解如何调整媒体处理的规模,请参阅使用 Azure 门户调整媒体处理的规模To learn how to scale media processing, see Scale media processing by using the Azure portal.

在 Azure 门户中进行编码Encode in the Azure portal

要使用 Media Encoder Standard 对内容进行编码,请执行以下操作:To encode your content by using Media Encoder Standard:

  1. Azure 门户中,选择 Azure 媒体服务帐户。In the Azure portal, select your Azure Media Services account.

  2. 选择“设置” > “资产” 。Select Settings > Assets. 选择要编码的资产。Select the asset that you want to encode.

  3. 选择“编码”按钮 。Select the Encode button.

  4. 在“对资产进行编码”窗格中,选择“Media Encoder Standard”处理器和预设 。In the Encode an asset pane, select the Media Encoder Standard processor and a preset. 有关预设的信息,请参阅自动生成比特率阶梯Media Encoder Standard 的任务预设For information about presets, see Auto-generate a bitrate ladder and Task presets for Media Encoder Standard. 请务必选择最适合输入视频的预设。It's important to choose the preset that will work best for your input video. 例如,如果知道输入视频的分辨率为 1920 × 1080 像素,则可选择“H264 多比特率 1080p”预设 。For example, if you know your input video has a resolution of 1920 × 1080 pixels, you might choose the H264 Multiple Bitrate 1080p preset. 如果视频的分辨率低 (640 × 360),则不应使用“H264 多比特率 1080p”预设 。If you have a low-resolution (640 × 360) video, you shouldn't use the H264 Multiple Bitrate 1080p preset.

    可以编辑输出资产名称和作业名称,以便管理资源。To help you manage your resources, you can edit the name of the output asset and the name of the job.

    对资产进行编码

  5. 选择“创建” 。Select Create.

媒体服务学习路径Media Services learning paths

媒体服务 v3(最新版本)Media Services v3 (latest)

查看最新版本的 Azure 媒体服务!Check out the latest version of Azure Media Services!

媒体服务 v2(旧版)Media Services v2 (legacy)

后续步骤Next steps