媒体服务功能的跨数据中心方案和可用性Scenarios and availability of Media Services features across datacenters

Note

Google Widevine 内容保护服务目前在 Azure 中国区域不可用。Google Widevine content protection services are currently unavailable in the Azure China regions.

Note

不会向媒体服务 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 媒体服务 (AMS) 安全地上传、存储、编码和打包视频或音频内容,以便将点播流和实时传送视频流交付到各种客户端(例如,电视、电脑和移动设备)。Azure Media Services (AMS) enables you to securely upload, store, encode, and package video or audio content for both on-demand and live streaming delivery to various clients (for example, TV, PC, and mobile devices).

本主题展示了以实时方式或点播方式交付内容的常见方案。This topic shows common scenarios for delivering your content live or on-demand. 本主题还详细说明了媒体功能和服务的跨数据中心可用性。The topic also provides details about availability of media features and services across datacenters.

概述Overview

先决条件Prerequisites

若要开始使用 Azure 媒体服务,应该具备以下条件:To start using Azure Media Services, you should have the following:

  • 一个 Azure 帐户。An Azure account. 如果没有帐户,可以创建一个 1 元试用帐户,只需几分钟即可完成。If you don't have an account, you can create a 1rmb trial account in just a couple of minutes. 有关详细信息,请参阅 Azure 1 元试用For details, see Azure 1rmb Trial.

  • Azure 媒体服务帐户。An Azure Media Services account. 有关详细信息,请参阅创建帐户For more information, see Create Account.

  • 要从中流式传输内容的流式处理终结点必须处于“正在运行”状态。 The streaming endpoint from which you want to stream content has to be in the Running state.

    创建 AMS 帐户后,系统会将一个处于“已停止”状态的默认流式处理终结点添加到帐户。 When your AMS account is created, a default streaming endpoint is added to your account in the Stopped state. 若要开始流式传输内容并利用动态打包和动态加密,流式处理终结点必须处于“正在运行”状态。 To start streaming your content and take advantage of dynamic packaging and dynamic encryption, the streaming endpoint has to be in the Running state.

针对 AMS OData 模型进行开发时的常用对象Commonly used objects when developing against the AMS OData model

针对媒体服务 OData 模型进行开发时,以下图像会显示某些最常用的对象。The following image shows some of the most commonly used objects when developing against the Media Services OData model.

单击图像查看其完整大小。Click the image to view it full size.

可在 此处查看完整模型。You can view the whole model here.

保护存储中的内容并以明文(非加密)形式交付流式处理媒体Protect content in storage and deliver streaming media in the clear (non-encrypted)

VoD 工作流

  1. 将优质媒体文件上传到资产中。Upload a high-quality media file into an asset.

    建议向资产应用存储加密选项,以便在内容上传期间和内容在存储中处于静态时,为其提供保护。It is recommended to apply storage encryption option to your asset in order to protect your content during upload and while at rest in storage.

  2. 编码为一组自适应比特率 MP4 文件。Encode to a set of adaptive bitrate MP4 files.

    建议向输出资产应用存储加密选项,以便保护静态内容。It is recommended to apply storage encryption option to the output asset in order to protect your content at rest.

  3. 配置资产传送策略(由动态打包使用)。Configure asset delivery policy (used by dynamic packaging).

    如果资产已经过存储加密,则必须配置资产传送策略。If your asset is storage encrypted, you must configure asset delivery policy.

  4. 通过创建 OnDemand 定位符发布资产。Publish the asset by creating an OnDemand locator.

  5. 流式传输已发布的内容。Stream published content.

若要了解此功能在数据中心的可用性,请参阅可用性部分。For information about availability in datacenters, see the Availability section.

在存储中保护内容,并以动态方式交付加密的流媒体Protect content in storage, deliver dynamically encrypted streaming media

使用 PlayReady 进行保护

  1. 将优质媒体文件上传到资产中。Upload a high-quality media file into an asset. 向资产应用存储加密选项。Apply storage encryption option to the asset.
  2. 编码为一组自适应比特率 MP4 文件。Encode to a set of adaptive bitrate MP4 files. 向输出资产应用存储加密选项。Apply storage encryption option to the output asset.
  3. 为播放期间想要动态加密的资产创建加密内容密钥。Create encryption content key for the asset you want to be dynamically encrypted during playback.
  4. 配置内容密钥授权策略。Configure content key authorization policy.
  5. 配置资产传送策略(由动态打包和动态加密使用)。Configure asset delivery policy (used by dynamic packaging and dynamic encryption).
  6. 通过创建 OnDemand 定位符发布资产。Publish the asset by creating an OnDemand locator.
  7. 流式传输已发布的内容。Stream published content.

若要了解此功能在数据中心的可用性,请参阅可用性部分。For information about availability in datacenters, see the Availability section.

使用媒体分析从视频中汲取可操作的见解Use Media Analytics to derive actionable insights from your videos

媒体分析是语音和视觉组件的集合,便于组织和企业从视频文件中汲取可操作的见解。Media Analytics is a collection of speech and vision components that make it easier for organizations and enterprises to derive actionable insights from their video files. 有关详细信息,请参阅 Azure 媒体服务分析概述For more information, see Azure Media Services Analytics Overview.

  1. 将优质媒体文件上传到资产中。Upload a high-quality media file into an asset.
  2. 使用媒体分析概述部分介绍的媒体分析服务之一来处理视频。Process your videos with one of the Media Analytics services described in the Media Analytics overview section.
  3. 媒体分析媒体处理器会生成 MP4 文件或 JSON 文件。Media Analytics media processors produce MP4 files or JSON files. 如果媒体处理器生成了 MP4 文件,可采用渐进方式下载该文件。If a media processor produced an MP4 file, you can progressively download the file. 如果媒体处理器生成了 JSON 文件,可以从 Azure Blob 存储下载该文件。If a media processor produced a JSON file, you can download the file from the Azure blob storage.

若要了解此功能在数据中心的可用性,请参阅可用性部分。For information about availability in datacenters, see the Availability section.

提供渐进式下载Deliver progressive download

  1. 将优质媒体文件上传到资产中。Upload a high-quality media file into an asset.

  2. 编码为单个 MP4 文件。Encode to a single MP4 file.

  3. 通过创建 OnDemand 或 SAS 定位符来发布资产。Publish the asset by creating an OnDemand or SAS locator.

    如果使用 SAS 定位符,将从 Azure Blob 存储中下载内容。If using SAS locator, the content is downloaded from the Azure blob storage. 在这种情况下,不需要让流式处理终结点处于已启动状态。In this case, you do not need to have streaming endpoints in started state.

  4. 渐进式下载内容。Progressively download content.

传送实时传送视频流事件Delivering live-streaming events

  1. 使用多种实时传送视频流协议(例如 RTMP 或平滑流式处理)引入实时内容。Ingest live content using various live streaming protocols (for example RTMP or Smooth Streaming).

  2. (可选)将流编码为自适应比特率流。(optionally) Encode your stream into adaptive bitrate stream.

  3. 预览实时流。Preview your live stream.

  4. 通过常用流式处理协议(例如 MPEG DASH、Smooth、HLS)将内容直接传送给客户。Deliver the content through common streaming protocols (for example, MPEG DASH, Smooth, HLS) directly to your customers.

    -或--or-

    记录和存储引入的内容,以便稍后进行流式处理(视频点播)。Record and store the ingested content in order to be streamed later (Video-on-Demand).

执行实时传送视频流时,可以选择以下路由之一:When doing live streaming, you can choose one of the following routes:

使用从本地编码器(直通)接收多比特率实时流的频道Working with channels that receive multi-bitrate live stream from on-premises encoders (pass-through)

下图显示的是直通工作流中涉及的 AMS 平台的主要组成部分 。The following diagram shows the major parts of the AMS platform that are involved in the pass-through workflow.

实时工作流

有关详细信息,请参阅使用从本地编码器接收多比特率实时流的频道For more information, see Working with Channels that Receive Multi-bitrate Live Stream from On-premises Encoders.

使用能够通过 Azure 媒体服务执行实时编码的频道Working with channels that are enabled to perform live encoding with Azure Media Services

下图显示的是实时流式处理工作流中涉及的 AMS 平台的主要组成部分,该工作流中的频道能够通过媒体服务执行实时编码。The following diagram shows the major parts of the AMS platform that are involved in Live Streaming workflow where a Channel is enabled to perform live encoding with Media Services.

实时工作流

有关详细信息,请参阅使用能够通过 Azure 媒体服务执行实时编码的频道For more information, see Working with Channels that are Enabled to Perform Live Encoding with Azure Media Services.

若要了解此功能在数据中心的可用性,请参阅可用性部分。For information about availability in datacenters, see the Availability section.

使用内容Consuming content

Azure 媒体服务提供所需的工具,以便创建适用于大多数平台的丰富、动态的客户端播放器应用程序,这些平台包括:iOS 设备、Android 设备、Windows、Windows Phone、Xbox 和机顶盒。Azure Media Services provides the tools you need to create rich, dynamic client player applications for most platforms including: iOS Devices, Android Devices, Windows, Windows Phone, Xbox, and Set-top boxes.

缩放媒体服务帐户Scaling a Media Services account

AMS 客户可以缩放其 AMS 帐户中的流式处理终结点、媒体处理和存储。AMS customers can scale streaming endpoints, media processing, and storage in their AMS accounts.

  • 媒体服务客户可以选择“标准” 或“高级” 流式处理终结点。Media Services customers can choose either a Standard streaming endpoint or a Premium streaming endpoint. “标准”流式处理终结点适用于大多数流式处理工作负荷。 A Standard streaming endpoint is suitable for most streaming workloads. 它拥有与“高级”流式处理终结点相同的功能,且可以自动缩放出站带宽。 It includes the same features as a Premium streaming endpoints and scales outbound bandwidth automatically.

    “高级” 流式处理终结点适用于高级工作负荷,可提供专用且可缩放的带宽容量。Premium streaming endpoints are suitable for advanced workloads, providing dedicated and scalable bandwidth capacity. 默认情况下,使用“高级” 流式处理终结点的客户会获得一个流式处理单位 (SU)。Customers that have a Premium streaming endpoint, by default get one streaming unit (SU). 可通过添加 SU 来缩放流式处理终结点。The streaming endpoint can be scaled by adding SUs. 每个 SU 为应用程序提供额外的带宽容量。Each SU provides additional bandwidth capacity to the application. 若要详细了解如何缩放“高级” 流式处理终结点,请参阅缩放流式处理终结点主题。For more information about scaling Premium streaming endpoints, see the Scaling streaming endpoints topic.

  • 媒体服务帐户与预留单位类型关联,后者决定了编码处理任务的处理速度。A Media Services account is associated with a Reserved Unit Type, which determines the speed with which your media processing tasks are processed. 可以在以下预留单位类型中进行选择:S1S2S3You can pick between the following reserved unit types: S1, S2, or S3. 例如,与 S1 预留单位类型相比,使用 S2 预留单位类型时,同一编码作业运行速度更快。For example, the same encoding job runs faster when you use the S2 reserved unit type compare to the S1 type.

    除了指定预留单位类型,还可以指定为帐户预配预留单位 (RU)。In addition to specifying the reserved unit type, you can specify to provision your account with Reserved Units (RUs). 预配的 RU 数决定了给定帐户中可并发处理的媒体任务数。The number of provisioned RUs determines the number of media tasks that can be processed concurrently in a given account.

    Note

    RU 可用于并行化所有媒体处理,包括使用 Azure Media Indexer 为作业编制索引。RUs work for parallelizing all media processing, including indexing jobs using Azure Media Indexer. 但是,与编码不同,索引作业使用更快的预留单位并不能更快地完成处理。However, unlike encoding, indexing jobs do not get processed faster with faster reserved units.

    有关详细信息,请参阅缩放媒体处理For more information see, Scale media processing.

  • 也可以通过向媒体服务帐户添加存储帐户来缩放该帐户。You can also scale your Media Services account by adding storage accounts to it. 每个存储帐户大小限制为 500 TB。Each storage account is limited to 500 TB. 要在默认限制之外扩展存储,可选择将多个存储帐户附加到单个媒体服务帐户。To expand your storage beyond the default limitations, you can choose to attach multiple storage accounts to a single Media Services account. 有关详细信息,请参阅管理存储帐户For more information, see Manage storage accounts.

媒体服务功能的跨数据中心可用性Availability of Media Services features across datacenters

本部分详细说明媒体服务功能的跨数据中心可用性。This section provides details about availability of Media Services features across datacenters.

AMS 帐户AMS accounts

可用性Availability

使用 Azure 产品(按区域),确定媒体服务是否在特定数据中心内可用。Use Azure Products by Region to determine whether Media Services is available in a specific datacenter.

流式处理终结点Streaming endpoints

媒体服务客户可以选择“标准” 或“高级” 流式处理终结点。Media Services customers can choose either a Standard streaming endpoint or a Premium streaming endpoint. 有关详细信息,请参阅缩放部分。For more information, see the scaling section.

可用性Availability

名称Name 状态Status 数据中心Datacenters
标准Standard GAGA 全部All
高级Premium GAGA 全部All

实时编码Live encoding

可用性Availability

在所有数据中心可用。Available in all datacenters.

编码媒体处理器Encoding media processors

AMS 提供一个按需编码器: Media Encoder Standard。AMS offers one on-demand encoder Media Encoder Standard.

可用性Availability

媒体处理器名称Media processor name 状态Status 数据中心Datacenters
Media Encoder StandardMedia Encoder Standard GAGA 全部All

分析媒体处理器Analytics media processors

媒体分析是语音和视觉组件的集合,便于组织和企业从视频文件中汲取可以实施的见解。Media Analytics is a collection of speech and vision components that makes it easier for organizations and enterprises to derive actionable insights from their video files. 有关详细信息,请参阅 Azure 媒体服务分析概述For more information, see Azure Media Services Analytics Overview.

Note

一些分析媒体处理器将停用。Some analytics media processors will be retired. 有关停用日期,请参阅此旧组件主题。For the retirement dates, see the legacy components topic.

可用性Availability

媒体处理器名称Media processor name 状态Status 数据中心Datacenters
Azure 媒体面部检测器Azure Media Face Detector 预览Preview 全部All
Azure Media IndexerAzure Media Indexer GAGA 全部All
Azure 媒体动作检测器Azure Media Motion Detector 预览Preview 全部All
Azure 媒体 OCRAzure Media OCR 预览Preview 全部All
Azure 媒体编修器Azure Media Redactor GAGA 全部All
Azure 媒体视频缩略图Azure Media Video Thumbnails 预览Preview 全部All

保护Protection

使用 Azure 媒体服务,可以在媒体从离开计算机到存储、处理和传送的整个过程中确保其安全。Azure Media Services enables you to secure your media from the time it leaves your computer through storage, processing, and delivery. 有关详细信息,请参阅保护 AMS 内容For more information, see Protecting AMS content.

可用性Availability

EncryptionEncryption 状态Status 数据中心Datacenters
存储Storage GAGA 全部All
AES-128 密钥AES-128 keys GAGA 全部All
FairplayFairplay GAGA 全部All
PlayReadyPlayReady GAGA 全部All

预留单位 (RU)Reserved units (RUs)

设置的预留单位数决定了给定帐户中可并发处理的媒体任务数。The number of provisioned reserved units determines the number of media tasks that can be processed concurrently in a given account.

有关详细信息,请参阅缩放部分。For more information, see the scaling section.

可用性Availability

在所有数据中心可用。Available in all datacenters.

预留单位 (RU) 类型Reserved unit (RU) type

媒体服务帐户与预留单位类型关联,后者决定了处理媒体处理任务的速度。A Media Services account is associated with a Reserved unit type, which determines the speed with which your media processing tasks are processed. 可以在以下预留单位类型中进行选择:S1、S2 或 S3。You can pick between the following reserved unit types: S1, S2, or S3.

有关详细信息,请参阅缩放部分。For more information, see the scaling section.

可用性Availability

RU 类型名称RU type name 状态Status 数据中心Datacenters
S1S1 GAGA 全部All
S2S2 GAGA 全部All
S3S3 GAGA 全部All

后续步骤Next steps

查看媒体服务学习路径。Review Media Services learning paths.

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

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

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