动态打包Dynamic packaging

媒体服务徽标media services logo


备注

不会向媒体服务 v2 添加任何新特性或新功能。No new features or functionality are being added to Media Services v2.
查看最新版本:媒体服务 v3Check out the latest version, Media Services v3. 另请参阅从 v2 到 v3 的迁移指南Also, see migration guidance from v2 to v3

Azure 媒体服务可用于向多种客户端技术(例如,iOS、XBOX、Silverlight、Windows 8)传送多种媒体源文件格式、媒体流格式和内容保护格式。Azure Media Services can be used to deliver many media source file formats, media streaming formats, and content protection formats to a variety of client technologies (for example, iOS, XBOX, Silverlight, Windows 8). 这些客户端可识别不同的协议,例如,iOS 需要 HTTP 实时流 (HLS) V4 格式,Silverlight 和 Xbox 需要平滑流。These clients understand different protocols, for example iOS requires an HTTP Live Streaming (HLS) V4 format and Silverlight and Xbox require Smooth Streaming. 如果有一组自适应比特率(多码率)MP4(ISO 基媒体 14496-12)文件或平滑流文件要提供给了解 MPEG DASH、HLS 或平滑流的客户端,则应利用媒体服务动态打包。If you have a set of adaptive bitrate (multi-bitrate) MP4 (ISO Base Media 14496-12) files or a set of adaptive bitrate Smooth Streaming files that you want to serve to clients that understand MPEG DASH, HLS or Smooth Streaming, you should take advantage of Media Services dynamic packaging.

使用动态打包,只需要创建一个包含一组自适应比特率 MP4 文件或自适应比特率平滑流文件的资产。With dynamic packaging all, you need is to create an asset that contains a set of adaptive bitrate MP4 files or adaptive bitrate Smooth Streaming files. 然后,点播流服务器会确保你以选定的协议按清单或分段请求中的指定格式接收流。Then, based on the specified format in the manifest or fragment request, the On-Demand Streaming server will ensure that you receive the stream in the protocol you have chosen. 因此,只需以单一存储格式存储文件并为其付费,然后媒体服务服务就会基于客户端的请求构建并提供相应响应。As a result, you only need to store and pay for the files in single storage format and Media Services service will build and serve the appropriate response based on requests from a client.

下图显示传统编码和静态打包工作流。The following diagram shows the traditional encoding and static packaging workflow.

静态编码

下图显示了动态打包工作流。The following diagram shows the dynamic packaging workflow.

动态编码

常见方案Common scenario

  1. 上传一个输入文件(称为夹层文件)。Upload an input file (called a mezzanine file). 例如,H.264、MP4 或 WMV(有关受支持格式的列表,请参阅Media Encoder Standard 支持的格式)。For example, H.264, MP4, or WMV (for the list of supported formats see Formats Supported by the Media Encoder Standard.
  2. 将夹层文件编码为 H.264 MP4 自适应比特率集。Encode your mezzanine file to H.264 MP4 adaptive bitrate sets.
  3. 通过创建点播定位符来发布包含自适应比特率 MP4 集的资产。Publish the asset that contains the adaptive bitrate MP4 set by creating the On-Demand Locator.
  4. 生成用于访问和流式传输内容的流 URL。Build the streaming URLs to access and stream your content.

准备用于动态流式传输的资产Preparing assets for dynamic streaming

若要准备用于动态流式传输的资产,可以使用以下选项:To prepare your asset for dynamic streaming, you have the following options:

动态打包支持的音频编解码器Audio codecs supported by dynamic packaging

动态打包支持 MP4 文件,其中包含使用 AAC(AAC-LC、HE-AAC v1、HE-AAC v2)、Dolby Digital Plus(增强版 AC-3 或 E-AC3)、Dolby Atmos 或 DTS(DTS Express、DTS LBR、DTS HD、DTS HD 无损)编码的音频。Dynamic Packaging supports MP4 files, which contain audio encoded with AAC (AAC-LC, HE-AAC v1, HE-AAC v2), Dolby Digital Plus(Enhanced AC-3 or E-AC3), Dolby Atmos, or DTS (DTS Express, DTS LBR, DTS HD, DTS HD Lossless). 流式传输 Dolby Atmos 内容适用于特定的标准(例如 MPEG-DASH 协议),采用通用流式传输格式 (CSF) 或通用媒体应用程序格式 (CMAF) 分段 MP4,在使用 CMAF 的情况通过 HTTP 实时传送视频流 (HLS) 来进行。Streaming of Dolby Atmos content is supported for standards like MPEG-DASH protocol with either Common Streaming Format (CSF) or Common Media Application Format (CMAF) fragmented MP4, and via HTTP Live Streaming (HLS) with CMAF.

备注

动态打包不支持包含 Dolby Digital (AC3) 音频(它是旧编解码器)的文件。Dynamic Packaging does not support files that contain Dolby Digital (AC3) audio (it is a legacy codec).

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

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

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

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