媒体预留单位Media Reserved Units

媒体服务徽标 v3media services logo v3


使用 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.

任务是对资产执行的单个操作,例如自适应流式处理编码。A task is an individual operation of work on an Asset e.g. adaptive streaming encoding. 提交作业时,媒体服务负责将作业分解为单个的操作(即任务),然后这些操作将与单独的 MRU 相关联。When you submit a job, Media Services will take care of breaking out the job into individual operations (i.e. tasks) that will then be associated with separate MRUs.

在不同的预留单位类型之间进行选择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, whether or not there are any jobs running. 有关详细说明,请参阅媒体服务定价页的“常见问题”部分。For a detailed explanation, see the FAQ section of the Media Services pricing page.

后续步骤Next step

使用 CLI 缩放媒体预留单位Scale Media Reserved Units with CLI

另请参阅See also