如何验证本地实时传送视频流编码器How to verify your on-premises live streaming encoder

媒体服务徽标 v3media services logo v3


作为 Azure 媒体服务本地编码器合作伙伴,媒体服务通过向企业客户推荐编码器来推广你的产品。As an Azure Media Services on-premises encoder partner, Media Services promotes your product by recommending your encoder to enterprise customers. 若要成为本地编码器合作伙伴,必须验证本地编码器与媒体服务的兼容性。To become an on-premises encoder partner, you must verify compatibility of your on-premises encoder with Media Services. 为此,请完成以下验证。To do so, complete the following verifications.

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

直通直播活动验证Pass-through Live Event verification

  1. 在媒体服务帐户中,确保流式处理终结点正在运行。In your Media Services account, make sure that the Streaming Endpoint is running.
  2. 创建并启动直通 直播活动。Create and start the pass-through Live Event.
    有关详细信息,请参阅直播活动状态和计费For more information, see Live Event states and billing.
  3. 获取引入 URL 并配置本地编码器以使用 URL 将多比特率实时流发送到媒体服务。Get the ingest URLs and configure your on-premises encoder to use the URL to send a multi-bitrate live stream to Media Services.
  4. 获取预览 URL 并使用它验证来自编码器的输入是否实际接收。Get the preview URL and use it to verify that the input from the encoder is actually being received.
  5. 创建新的资产对象。Create a new Asset object.
  6. 创建实时输出并使用创建的资产名称。Create a Live Output and use the asset name that you created.
  7. 使用内置的流式处理策略类型创建流式处理定位符。Create a Streaming Locator with the built-in Streaming Policy types.
  8. 列出流式处理定位器的路径,以取回要使用的 URL 。List the paths on the Streaming Locator to get back the URLs to use.
  9. 获取要从中流式传输的流式处理终结点的主机名。Get the host name for the Streaming Endpoint that you want to stream from.
  10. 将步骤 8 中的 URL 与步骤 9 中的主机名合并,获取完整的 URL。Combine the URL from step 8 with the host name in step 9 to get the full URL.
  11. 运行实时编码器大约 10 分钟。Run your live encoder for approximately 10 minutes.
  12. 停止直播活动。Stop the Live Event.
  13. 使用 Azure Media Player 等播放器观看存档的资产,确保以各种质量水平播放时不会出现明显的问题。Use a player such as Azure Media Player to watch the archived asset to ensure that playback has no visible glitches at all quality levels. 或者,在实时会话中通过预览 URL 进行观看和验证。Or, watch and validate via the preview URL during the live session.
  14. 记录资产 ID、为实时存档发布的流式处理 URL,以及实时编码器所使用的设置和版本。Record the asset ID, the published streaming URL for the live archive, and the settings and version used from your live encoder.
  15. 在创建每个示例后重置直播活动状态。Reset the Live Event state after creating each sample.
  16. 对编码器支持的所有配置重复(有或无广告信号、字幕或不同编码速度)步骤 5 到 15。Repeat steps 5 through 15 for all configurations supported by your encoder (with and without ad signaling, captions, or different encoding speeds).

实时编码直播活动验证Live encoding Live Event verification

  1. 在媒体服务帐户中,确保流式处理终结点正在运行。In your Media Services account, make sure that the Streaming Endpoint is running.
  2. 创建并启动实时编码 直播活动。Create and start the live encoding Live Event.
    有关详细信息,请参阅直播活动状态和计费For more information, see Live Event states and billing.
  3. 获取引入 URL,并配置编码器以将单比特率实时流推送到媒体服务。Get the ingest URLs and configure your encoder to push a single-bitrate live stream to Media Services.
  4. 获取预览 URL 并使用它验证来自编码器的输入是否实际接收。Get the preview URL and use it to verify that the input from the encoder is actually being received.
  5. 创建新的资产对象。Create a new Asset object.
  6. 创建实时输出并使用创建的资产名称。Create a Live Output and use the asset name that you created.
  7. 使用内置的流式处理策略类型创建流式处理定位符。Create a Streaming Locator with the built-in Streaming Policy types.
  8. 列出流式处理定位器的路径,以取回要使用的 URL 。List the paths on the Streaming Locator to get back the URLs to use.
  9. 获取要从中流式传输的流式处理终结点的主机名。Get the host name for the Streaming Endpoint that you want to stream from.
  10. 将步骤 8 中的 URL 与步骤 9 中的主机名合并,获取完整的 URL。Combine the URL from step 8 with the host name in step 9 to get the full URL.
  11. 运行实时编码器大约 10 分钟。Run your live encoder for approximately 10 minutes.
  12. 停止直播活动。Stop the Live Event.
  13. 使用 Azure Media Player 等播放器观看存档的资产,确保以各种质量水平播放时不会出现明显的问题。Use a player such as Azure Media Player to watch the archived asset to ensure that playback has no visible glitches for all quality levels. 或者,在实时会话中通过预览 URL 进行观看和验证。Or, watch and validate via the preview URL during the live session.
  14. 记录资产 ID、为实时存档发布的流式处理 URL,以及实时编码器所使用的设置和版本。Record the asset ID, the published streaming URL for the live archive, and the settings and version used from your live encoder.
  15. 在创建每个示例后重置直播活动状态。Reset the Live Event state after creating each sample.
  16. 对编码器支持的所有配置重复(有或无广告信号、字幕或不同编码速度)步骤 5 到 15。Repeat steps 5 through 15 for all configurations supported by your encoder (with and without ad signaling, captions, or different encoding speeds).

使用寿命验证Longevity verification

遵循直通直播活动验证中的相同步骤(步骤 11 除外)。Follow the same steps as in Pass-through Live Event verification except for step 11.
运行实时编码器一周或更长时间,而不是 10 分钟。Instead of 10 minutes, run your live encoder for one week or longer. 使用 Azure Media Player 等播放器不时观看实时传送视频流(或存档的资产),确保播放没有明显问题。Use a player such as Azure Media Player to watch the live streaming from time to time (or an archived asset) to ensure that playback has no visible glitches.

通过电子邮件发送记录的设置Email your recorded settings

最后,通过电子邮件将记录的设置和实时存档参数作为通知发送到 Azure 媒体服务 (amshelp@microsoft.com),告知所有自我验证检查已通过。Finally, email your recorded settings and live archive parameters to Azure Media Services at amshelp@microsoft.com as a notification that all self-verification checks have passed. 另请提供联系信息,以方便跟进。Also, include your contact information for any follow-ups. 在此过程中如有任何问题,可以联系 Azure 媒体服务团队。You can contact the Azure Media Services team with any questions about this process.

另请参阅See also

测试的本地编码器Tested on-premises encoders

后续步骤Next steps

使用媒体服务 v3 实时传送视频流Live streaming with Media Services v3