媒体保留单位Media reserved units

媒体服务徽标media services logo


使用 Azure 媒体服务,可以通过管理媒体保留单位 (MRU) 来缩放媒体处理能力。Azure Media Services enables you to scale media processing by managing Media Reserved Units (MRUs). MRU 提供编码媒体所需的额外计算能力。An MRU provides additional computing capacity required for encoding media. MRU 的数量决定了处理媒体任务的速度,以及在帐户中可并发处理的媒体任务数。The number of MRUs determine the speed with which your media tasks are processed and how many media tasks can be processed concurrently in an account. 例如,如果帐户具有 5 个 MRU,并且有要处理的任务,就可以同时运行 5 个媒体任务。For example, if your account has five MRUs and there are tasks to be processed, then five media tasks can be running concurrently. 其余任何任务将排队,并且在运行的任务完成后可被选择按顺序进行处理。Any remaining tasks will be queued up and can be picked up for processing sequentially when a running task finishes. 你预配的每个 MRU 都将导致产能预留,但不会为你提供专用资源。Each MRU that you provision results in a capacity reservation but does not provide you with dedicated resource. 在需求量极高的时候,你的所有 MRU 可能不会立即开始处理。During times of extremely high demand, all of your MRUs may not start processing immediately.

在不同的预留单位类型之间进行选择Choosing between different reserved unit types

下表有助于在不同的编码速度之间进行选择时做出决定。The following table helps you make a decision when choosing between different encoding speeds. 它显示了一个 7 分钟的 1080p 视频的编码持续时间(具体取决于所使用的 MRU)。It shows the duration of encoding for a 7 minute, 1080p video depending on the MRU used.

RU 类型RU type 方案Scenario 7 分钟 1080p 视频的示例结果Example results for the 7 min 1080p video
S1S1 单比特率编码。Single bitrate encoding.
具有 SD 或更低分辨率的文件,不具有高时效性,成本低。Files at SD or below resolutions, not time sensitive, low cost.
使用“H264 单比特率 SD 16x9”编码为单比特率 SD 分辨率 MP4 文件大约需要 7 分钟。Encoding to single bitrate SD resolution MP4 file using "H264 Single Bitrate SD 16x9" takes around 7 minutes.
S2S2 单比特率和多比特率编码。Single bitrate and multiple bitrate encoding.
SD 和 HD 编码的正常使用情况。Normal usage for both SD and HD encoding.
预设为“H264 单比特率 720p”的编码大约需要 6 分钟。Encoding with "H264 Single Bitrate 720p" preset takes around 6 minutes.

预设为“H264 多比特率 720p”的编码大约需要 12 分钟。Encoding with "H264 Multiple Bitrate 720p" preset takes around 12 minutes.
S3S3 单比特率和多比特率编码。Single bitrate and multiple bitrate encoding.
全高清和 4K 分辨率视频。Full HD and 4K resolution videos. 对时间敏感,更快的编码周转。Time sensitive, faster turnaround encoding.
预设为“H264 单比特率 1080p”的编码大约需要 3 分钟。Encoding with "H264 Single Bitrate 1080p" preset takes approximately 3 minutes.

预设为“H264 多比特率 1080p”的编码大约需要 8 分钟。Encoding with "H264 Multiple Bitrate 1080p" preset takes approximately 8 minutes.

备注

如果你没有为帐户预配 MRU,则将以 S1 MRU 的性能处理你的媒体任务,并且将按顺序选取任务。If you do not provision MRU's for your account, your media tasks will be processed with the performance of an S1 MRU and tasks will be picked up sequentially. 没有预留处理容量,因此完成一个任务和开始下一个任务之间的等待时间将取决于系统中资源的可用性。No processing capacity is reserved so the wait time between one task finishing and the next one starting will depend on the availability of resources in the system.

注意事项Considerations

对于没有 MRU 的编码任务,任务在排队状态下可花费的时间没有上限,并且一次最多只能运行一个任务。For encoding tasks that don't have MRUs, there is no upper bound to the time your tasks can spend in queued state, and at most only one task will be running at a time.

计费Billing

根据在帐户中预配的媒体预留单位的分钟数计费。You are charged based on number of minutes the Media Reserved Units are provisioned in your account. 这与帐户中是否有作业运行无关。This occurs independent of whether there are any Jobs running in your account. 有关详细说明,请参阅媒体服务定价页的“常见问题”部分。For a detailed explanation, see the FAQ section of the Media Services pricing page.

配额和限制Quotas and limitations

有关配额和限制以及如何开具支持票证的信息,请参阅配额和限制For information about quotas and limitations and how to open a support ticket, see Quotas and limitations.

后续步骤Next steps

尝试通过以下技术之一调整媒体处理能力:Try scaling media processing with one of these technologies:

.NET 门户 REST Java PHP.NET Portal REST Java PHP