媒体服务的术语和概念Media Services terminology and concepts

Note

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

本主题简要概述 Azure 媒体服务的术语和概念。This topic gives a brief overview of Azure Media Services terminology and concepts. 本文还会提供深入介绍媒体服务 v3 概念和功能的文章的链接。The article also provides links to articles with an in-depth explanation of Media Services v3 concepts and functionality.

在开始开发之前,应该复习这些主题中所述的基本概念。The fundamental concepts described in these topics should be reviewed before starting development.

Note

目前,可以使用 Azure 门户执行以下操作:管理媒体服务 v3 直播活动、查看(而不是管理)v3 资产获取有关访问 API 的信息Currently, you can use the Azure portal to: manage Media Services v3 Live Events, view (not manage) v3 Assets, and get info about accessing APIs. 对于其他所有管理任务(例如,转换和作业内容保护),请使用 REST APICLI 或某个受支持的 SDKFor all other management tasks (for example, Transforms and Jobs and Content protection), use the REST API, CLI, or one of the supported SDKs.

如果没有 Azure 订阅,可在开始前创建一个试用帐户If you don't have an Azure subscription, create a trial account before you begin.

媒体服务 v3 术语Media Services v3 terminology

术语Term 说明Description
实时事件Live Event 实时事件表示用于引入、转码(可选)以及打包视频、音频和实时元数据的管道。A Live Event represents a pipeline for ingesting, transcoding (optionally), and packaging live streams of video, audio, and real-time metadata.

对于从媒体服务 v2 API 迁移的客户,实时事件取代了 v2 中的频道实体。For customers migrating from Media Services v2 APIs, the Live Event replaces the Channel entity in v2. 有关详细信息,请参阅从 v2 迁移到 v3For more information, see Migrating from v2 to v3.
流式处理终结点/打包/源Streaming Endpoint/Packaging/Origin 流式处理终结点 表示动态(即时)打包和源服务,该服务可直接将实时和按需内容发送到客户端播放器应用程序。A Streaming Endpoint represents a dynamic (just-in-time) packaging and origin service that can deliver your live and on-demand content directly to a client player application. 它使用常见流式处理媒体协议之一(HLS 或 DASH)。It uses one of the common streaming media protocols (HLS or DASH). 此外,流式处理终结点 还为行业领先的数字版权管理系统 (DRMs) 提供动态(实时)加密。In addition, the Streaming Endpoint provides dynamic (just-in-time) encryption to industry-leading digital rights management systems (DRMs).

在媒体流行业,此服务通常称为打包器来源In the media streaming industry, this service is commonly referred to as a Packager or Origin. 本行业对此功能使用的其他常见术语包括 JITP(实时打包器)或 JITE(实时加密)。Other common terms in the industry for this capability include JITP (just-in-time-packager) or JITE (just-in-time-encryption).

媒体服务 v3 概念Media Services v3 concepts

概念Concepts 说明Description 链接Links
资产和上传内容Assets and uploading content 若要开始管理、加密、编码、分析和流式处理 Azure 中的媒体内容,需要创建一个媒体服务帐户,并将数字文件上传到资产中。To start managing, encrypting, encoding, analyzing, and streaming media content in Azure, you need to create a Media Services account and upload your digital files into Assets. 云上传和存储Cloud upload and storage

资产的概念Assets concept
对内容进行编码Encoding content 将优质数字媒体文件上传到资产中后,可将其编码为可在各种浏览器和设备上播放的格式。Once you upload your high-quality digital media files into Assets, you can encode them into formats that can be played on a wide variety of browsers and devices.

若要使用媒体服务 v3 进行编码,需要创建转换作业To encode with Media Services v3, you need to create Transforms and Jobs.
转换和作业Transforms and Jobs

使用媒体服务进行编码Encoding with Media Services
分析内容(视频索引器)Analyzing content (Video Indexer) 在媒体服务 v3 中,可以使用媒体服务 v3 预设从视频和音频文件中提取见解。Media Services v3 lets you extract insights from your video and audio files using Media Services v3 presets. 若要使用媒体服务 v3 预设来分析内容,需要创建转换作业To analyze your content using Media Services v3 presets, you need to create Transforms and Jobs. 分析视频和音频文件Analyzing video and audio files
打包和交付Packaging and delivery 将内容编码后,可以利用动态打包Once your content is encoded, you can take advantage of Dynamic Packaging. 在媒体服务中,流式处理终结点是用于将媒体内容传送到客户端播放器的动态打包服务。In Media Services, a Streaming Endpoint is the dynamic packaging service used to deliver media content to client players. 若要使输出资产中的视频可供客户端进行播放,必须创建流定位符,然后生成流 URL。To make videos in the output asset available to clients for playback, you have to create a Streaming Locator and then build streaming URLs.

创建流式处理定位符时,除了资产名称之外,还需要指定流式处理策略。 When creating the Streaming Locator, in addition to the asset's name, you need to specify Streaming Policy. 使用流策略可为流定位符定义流式处理协议和加密选项(如果有)。Streaming Policies enable you to define streaming protocols and encryption options (if any) for your Streaming Locators. 无论流式传输的是直播内容还是点播内容,都要使用动态打包。Dynamic Packaging is used whether you stream your content live or on-demand.

可以使用媒体服务动态清单来仅流式传输视频的特定再现内容或子剪辑。You can use Media Services Dynamic Manifests to stream only a specific rendition or subclips of your video.
动态打包Dynamic packaging

流式处理终结点Streaming Endpoints

流式处理定位符Streaming Locators

流式处理策略Streaming Policies

动态清单Dynamic manifests

筛选器Filters
内容保护Content protection 借助媒体服务,可以传送使用高级加密标准 (AES-128) 或/和以下两个主要 DRM 系统中任意一个动态加密的直播和点播内容:Microsoft PlayReady 和 Apple FairPlay。With Media Services, you can deliver your live and on-demand content encrypted dynamically with Advanced Encryption Standard (AES-128) or/and any of the two major DRM systems: Microsoft PlayReady, and Apple FairPlay. 媒体服务还提供了用于向已授权客户端传送 AES 密钥和 DRM(PlayReady 和 FairPlay)许可证的服务。Media Services also provides a service for delivering AES keys and DRM (PlayReady, and FairPlay) licenses to authorized clients.

若要针对流指定加密选项,请创建内容密钥策略并将其与流定位符相关联。If specifying encryption options on your stream, create the Content Key Policy and associate it with your Streaming Locator. 使用内容密钥策略,可以配置如何将内容密钥传送到终端客户端。The Content Key Policy enables you to configure how the content key is delivered to end clients.

在需要相同选项的情况下尝试重复使用策略。Try to reuse policies whenever the same options are needed.
内容密钥策略Content Key Policies

内容保护Content protection
实时传送视频流Live streaming 使用媒体服务可将直播活动传送到 Azure 云中的客户。Media Services enables you to deliver live events to your customers on the Azure cloud. 直播活动负责引入和处理实时视频源。Live Events are responsible for ingesting and processing the live video feeds. 创建实时事件时,会创建一个输入终结点,可以使用它来从远程编码器发送实时信号。When you create a Live Event, an input endpoint is created that you can use to send a live signal from a remote encoder. 将流传输到实时事件后,可以通过创建资产实时输出流定位符来启动流事件。Once you have the stream flowing into the Live Event, you can begin the streaming event by creating an Asset, Live Output, and Streaming Locator. 实时输出会将流存档到资产中,使观看者可通过流式处理终结点使用该流。Live Output will archive the stream into the Asset and make it available to viewers through the Streaming Endpoint. 直播活动可以设置为“直通” (本地实时编码器发送多比特率流)或“实时编码” (本地实时编码器发送单比特率流)。A live event can be set to either a pass-through (an on-premises live encoder sends a multiple bitrate stream) or live encoding (an on-premises live encoder sends a single bitrate stream). 实时传送视频流概述Live streaming overview

直播活动和实时输出Live Events and Live Outputs
使用 Azure Monitor 进行监视Monitoring with Azure Monitor 可以使用 Azure Monitor 监视指标和诊断日志,以便了解应用的执行情况。Monitor metrics and diagnostic logs that help you understand how your apps are performing with Azure Monitor. 指标和诊断日志Metrics and diagnostic logs

诊断日志架构Diagnostic logs schemas
播放器客户端Player clients 可以在各种浏览器和设备上使用 Azure Media Player 播放媒体服务流式传输的媒体内容。You can use Azure Media Player to play back media content streamed by Media Services on a wide variety of browsers and devices. Azure Media Player 使用行业标准(如 HTML5、媒体源扩展 (MSE) 和加密媒体扩展插件 (EME))来提供更丰富的自适应流式处理体验。Azure Media Player uses industry standards, such as HTML5, Media Source Extensions (MSE), and Encrypted Media Extensions (EME) to provide an enriched adaptive streaming experience. Azure Media Player 概述Azure Media Player overview

后续步骤Next steps