如何使用 .NET SDK 缩放编码How to scale encoding with .NET SDK

概述Overview

重要

请确保查看概述主题,获取有关调整媒体处理规模的详细信息。Make sure to review the Overview to get more information about scaling media processing.

若要使用 .NET SDK 更改预留单位类型和编码预留单位数目,请执行以下操作:To change the reserved unit type and the number of encoding reserved units using .NET SDK, do the following:

IEncodingReservedUnit encodingS1ReservedUnit = _context.EncodingReservedUnits.FirstOrDefault();
encodingS1ReservedUnit.ReservedUnitType = ReservedUnitType.Basic; // Corresponds to S1
encodingS1ReservedUnit.Update();
Console.WriteLine("Reserved Unit Type: {0}", encodingS1ReservedUnit.ReservedUnitType);

encodingS1ReservedUnit.CurrentReservedUnits = 2;
encodingS1ReservedUnit.Update();

Console.WriteLine("Number of reserved units: {0}", encodingS1ReservedUnit.CurrentReservedUnits);

开具支持票证Opening a Support Ticket

默认情况下,每个媒体服务帐户最多可缩放到 10 S2 或 S3 个媒体预留单位 (MRU) 或 25 S1 个 MRU 和 5 个按需流式处理预留单位。By default every Media Services account can scale to up to 10 S2 or S3 Media Reserved Units (MRUs) or 25 S1 MRUs, and 5 On-Demand Streaming Reserved Units. 可以通过开具支持票证申请更高的限制。You can request a higher limit by opening a support ticket.

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

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

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

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