配额和限制Quotas and Limitations

媒体服务徽标media services logo


本文介绍与 Azure 媒体服务关联的配额和限制。This article describes quotas and limitations associated with Azure Media Services.

备注

对于不固定的资源,请开具支持票证,要求增加配额。For resources that aren't fixed, open a support ticket to ask for an increase in the quotas. 请不要尝试通过创建更多 Azure 媒体服务帐户来提高配额限制。Don't create additional Azure Media Services accounts in an attempt to obtain higher limits.

资源Resource 限制Limit
单个订阅中的 Azure 媒体服务帐户数Azure Media Services accounts in a single subscription 25(固定)25 (fixed)
每个媒体服务帐户的媒体保留单位数Media reserved units per Media Services account 25 (S1)25 (S1)
10 (S2, S3)110 (S2, S3)1
每个媒体服务帐户的作业数Jobs per Media Services account 50,000250,0002
每个作业的链接任务数Chained tasks per job 30(固定)30 (fixed)
每个媒体服务帐户的资产数Assets per Media Services account 1,000,0001,000,000
每个任务的资产数Assets per task 5050
每个作业的资产数Assets per job 100100
一次与一个资产关联的唯一定位符数Unique locators associated with an asset at one time 5454
每个媒体服务帐户的直播频道数Live channels per Media Services account 55
每个频道的停止状态节目数Programs in stopped state per channel 5050
每个频道的运行状态节目数Programs in running state per channel 33
每个媒体服务帐户的流式处理端点数(已停止或正在运行)Streaming endpoints that are stopped or running per Media Services account 22
每个流式处理终结点的流式处理单位数Streaming units per streaming endpoint 10 个10
存储帐户Storage accounts 1005(已修复)1005 (fixed)
策略Policies 1,000,00061,000,0006
文件大小File size 在某些情况下,支持在媒体服务中处理的最大文件大小存在限制。7In some scenarios, there's a limit on the maximum file size supported for processing in Media Services.7

1如果更改类型(例如,从 S1 更改为 S2),则会重置最大预留单位限制。1If you change the type, for example, from S2 to S1, the maximum reserved unit limits are reset.

2这个数字包括已排队的、已完成的、活动的和已取消的作业。2This number includes queued, finished, active, and canceled jobs. 但不包括已删除的作业。It doesn't include deleted jobs. 可以使用 IJob.DeleteDELETE HTTP 请求删除旧作业。You can delete old jobs by using IJob.Delete or the DELETE HTTP request.

自 2017 年 4 月 1 日起,将自动删除帐户中超过 90 天的所有作业记录及其相关任务记录。As of April 1, 2017, any job record in your account older than 90 days is automatically deleted, along with its associated task records. 即使记录总数低于最大配额,也会执行自动删除。Automatic deletion occurs even if the total number of records is below the maximum quota. 若要存档作业和任务信息,可使用使用媒体服务 .NET SDK 管理资产中所述的代码。To archive the job and task information, use the code described in Manage assets with the Media Services .NET SDK.

3发出列出作业实体的请求时,每个请求最多返回 1,000 个作业。3When you make a request to list job entities, a maximum of 1,000 jobs is returned per request. 如果需要跟踪所有已提交的作业,可以使用 top 或 skip,如 OData 系统查询选项中所述。To keep track of all submitted jobs, use the top or skip queries as described in OData system query options.

4定位符不用于管理按用户的访问控制。4Locators aren't designed for managing per-user access control. 要为不同用户提供不同的访问权限,请使用数字权限管理 (DRM) 解决方案。To give different access rights to individual users, use digital rights management (DRM) solutions. 有关详细信息,请参阅使用 Azure 媒体服务保护内容For more information, see Protect your content with Azure Media Services.

5存储帐户必须来自同一 Azure 订阅。5The storage accounts must be from the same Azure subscription.

6不同媒体服务策略的策略数限为 1,000,000 个。6There's a limit of 1,000,000 policies for different Media Services policies. 例如,对于定位器策略或 ContentKeyAuthorizationPolicy。An example is for the Locator policy or ContentKeyAuthorizationPolicy.

备注

如果始终使用相同的天数和访问权限,则使用相同的策略 ID。If you always use the same days and access permissions, use the same policy ID. 有关信息和示例,请参阅使用媒体服务 .NET SDK 管理资产For information and an example, see Manage assets with the Media Services .NET SDK.

7在 Azure Blob 存储中,单个 Blob 目前支持的最大大小为 5 TB。7The maximum size supported for a single blob is currently up to 5 TB in Azure Blob Storage. 媒体服务会根据服务使用的 VM 大小应用其他限制。Additional limits apply in Media Services based on the VM sizes that are used by the service. 大小限制适用于你上传的文件,也适用于由于媒体服务处理(编码或分析)而生成的文件。The size limit applies to the files that you upload and also the files that get generated as a result of Media Services processing (encoding or analyzing). 如果源文件大于 260 GB,作业可能会失败。If your source file is larger than 260-GB, your Job will likely fail.

下表显示了媒体保留单位(S1、S2 和 S3)的限制。The following table shows the limits on the media reserved units S1, S2, and S3. 如果源文件大于表中定义的限制,则编码作业将失败。If your source file is larger than the limits defined in the table, your encoding job fails. 编码持续时间较长的 4K 分辨率源时,需要使用 S3 媒体保留单位才能达到所需的性能。If you encode 4K resolution sources of long duration, you're required to use S3 media reserved units to achieve the performance needed. 如果 S3 媒体保留单位上的 4K 内容大于 260-GB 限制,请开具支持票证。If you have 4K content that's larger than the 260-GB limit on the S3 media reserved units, open a support ticket.

媒体保留单位类型Media reserved unit type 最大输入大小 (GB)Maximum input size (GB)
S1S1 2626
S2S2 6060
S3S3 260260

开具支持票证以请求更改默认配额Open a Support Ticket to request changes to the default quotas

若要请求更改所提供的默认配额,可开具支持票证。To request changes to the default quotas provided, you can open a support ticket. 请在请求中包含所需的配额更改、用例方案和所需区域的详细信息。Please include detailed information in the request on the desired quota changes, use-case scenarios, and regions required.

如何开具支持票证How to open a support ticket

在 Azure 门户中,转到帮助 + 支持In the Azure portal, go to Help + support. 如果未登录到 Azure,系统会提示输入凭据。If you are not logged in to Azure, you will be prompted to enter your credentials.

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

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

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

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