经过验证的本地实时传送视频流编码器Verified on-premises live streaming encoders

媒体服务徽标 v3media services logo v3


在 Azure 媒体服务中,直播活动(频道)表示用于处理实时传送视频流内容的管道。In Azure Media Services, a Live Event (channel) represents a pipeline for processing live-streaming content. 直播活动通过以下两种方式之一接收实时输入流。The Live Event receives live input streams in one of two ways.

  • 本地实时编码器将多比特率 RTMP 或平滑流式处理(分片 MP4)流发送到无法通过媒体服务进行实时编码的直播活动。An on-premises live encoder sends a multi-bitrate RTMP or Smooth Streaming (fragmented MP4) stream to the Live Event that is not enabled to perform live encoding with Media Services. 引入流将通过直播活动,而不会进行任何进一步处理。The ingested streams pass through Live Events without any further processing. 这种方法称为 直通This method is called pass-through. 建议通过实时编码器将多比特率流(而不是单比特率流)发送到传递型实时事件,以便进行目标为客户端的自适应比特率流式传输。We recommend for the live encoder to send multi-bitrate streams instead of a single-bitrate stream to a pass-through live event to allow for adaptive bitrate streaming to the client.

    如果要将多比特率流用于传递型实时事件,则必须同步不同比特率上的视频 GOP 大小和视频片段,避免播放端出现意外的行为。If you are using multi-bitrates streams for the pass-through live event, the video GOP size and the video fragments on different bitrates must be synchronized to avoid unexpected behavior on the playback side.

    提示

    实时传送视频流时,使用直通方法是最经济的。Using a pass-through method is the most economical way to do live streaming.

  • 本地实时编码器采用以下格式之一将单比特率流发送至能够使用媒体服务执行实时编码的直播活动:RTMP 或平滑流式处理(分片 MP4)。An on-premises live encoder sends a single-bitrate stream to the Live Event that is enabled to perform live encoding with Media Services in one of the following formats: RTMP or Smooth Streaming (fragmented MP4). 然后,直播活动将对传入的单比特率流执行实时编码,使之转换为多比特率(自适应)视频流。The Live Event then performs live encoding of the incoming single-bitrate stream to a multi-bitrate (adaptive) video stream.

本文介绍经过验证的本地实时传送视频流编码器。This article discusses verified on-premises live streaming encoders. 通过供应商自行验证或客户验证完成验证。The verification is done through vendor self-verification or customer verification. Azure 媒体服务不对每个编码器进行完整或严格的测试,也不会持续地对更新进行重新验证。Azure Media Services does not do full or rigorous testing of each encoder, and does not continually re-verify on updates. 有关如何验证本地实时编码器的说明,请参阅验证本地编码器For instructions on how to verify your on-premises live encoder, see verify your on-premises encoder

若要详细了解如何使用媒体服务进行实时编码,请参阅使用媒体服务 v3 的实时传送视频流For detailed information about live encoding with Media Services, see Live streaming with Media Services v3.

编码器要求Encoder requirements

使用 HTTPS 或 RTMPS 协议时,编码器必须支持 TLS 1.2。Encoders must support TLS 1.2 when using HTTPS or RTMPS protocols.

输出 RTMP 的实时编码器Live encoders that output RTMP

媒体服务建议使用下列将 RTMP 作为输出的实时编码器之一。Media Services recommends using one of following live encoders that have RTMP as output. 支持的 URL 方案为 rtmp://rtmps://The supported URL schemes are rtmp:// or rtmps://.

通过 RTMP 流式处理时,请检查防火墙和/或代理设置,确认出站 TCP 端口 1935 和 1936 已打开。When streaming via RTMP, check firewall and/or proxy settings to confirm that outbound TCP ports 1935 and 1936 are open.

通过 RTMPS 流式处理时,检查防火墙和/或代理设置,确认出站 TCP 端口 2935 和 2936 已打开。When streaming via RTMPS, check firewall and/or proxy settings to confirm that outbound TCP ports 2935 and 2936 are open.

备注

使用 RTMPS 协议时,编码器必须支持 TLS 1.2。Encoders must support TLS 1.2 when using the RTMPS protocols.

警告

上述编码器列表只是推荐列表。The above list of encoders is just a recommendation list. 编码器未经 Azure 连续测试或验证,编码器供应商或开放源代码项目可能会引入更新或中断性变更,这可能会破坏兼容性。Encoders are not tested or validated by Azure on a continual basis and updates or breaking changes can be introduced by encoder vendors or open source projects that could break compatibility.

输出片段式 MP4 的实时编码器(平滑流式处理引入)Live encoders that output fragmented MP4 (Smooth Streaming ingest)

媒体服务建议使用下列将多比特率平滑流式处理(分片 MP4)作为输出的实时编码器之一。Media Services recommends using one of the following live encoders that have multi-bitrate Smooth Streaming (fragmented MP4) as output. 支持的 URL 方案为 http://https://The supported URL schemes are http:// or https://.

备注

使用 HTTPS 协议时,编码器必须支持 TLS 1.2。Encoders must support TLS 1.2 when using HTTPS protocols.

  • Ateme TITAN LiveAteme TITAN Live
  • Cisco 数字媒体编码器 2200Cisco Digital Media Encoder 2200
  • Elemental Live(由于 TLS 1.2 要求,版本为 2.14.15 及更高)Elemental Live (version 2.14.15 and higher due to the TLS 1.2 requirement)
  • Envivio 4Caster C4 Gen IIIEnvivio 4Caster C4 Gen III
  • FfmpegFfmpeg
  • Imagine Communications Selenio MCP3Imagine Communications Selenio MCP3
  • Media Excel Hero Live 和 Hero 4K (UHD/HEVC)Media Excel Hero Live and Hero 4K (UHD/HEVC)

提示

如果要以多种语言(例如,一个英语音频轨道和一个西班牙语音频轨道)流式传输直播活动,则可以将 Media Excel 实时编码器配置为将实时源发送到直通直播活动,以实现此目的。If you are streaming live events in multiple languages (for example, one English audio track and one Spanish audio track), you can accomplish this with the Media Excel live encoder configured to send the live feed to a pass-through Live Event.

警告

上述编码器列表只是推荐列表。The above list of encoders is just a recommendation list. 编码器未经 Azure 持续测试或验证,编码器供应商或开放源代码项目可能会随时引入支持或 bug,而这会破坏兼容性。Encoders are not tested or validated by Azure on a continual basis and support or bugs can be introduced by the encoder vendors or open source projects that break compatibility at any time.

配置本地实时编码器设置Configuring on-premises live encoder settings

有关对实时事件类型有效的设置的信息,请参阅事件类型比较For information about what settings are valid for your live event type, see Live Event types comparison.

播放要求Playback requirements

若要播放内容,音频和视频流都必须存在。To play back content, both an audio and video stream must be present. 不支持播放纯视频流。Playback of the video-only stream is not supported.

配置提示Configuration tips

  • 尽可能使用硬编码的 Internet 连接。Whenever possible, use a hardwired internet connection.
  • 确定带宽要求时,可以认为它就是将流式处理比特率翻倍。When you're determining bandwidth requirements, double the streaming bitrates. 虽然不一定要这样考虑,但这种简单的经验法则有助于减轻网络拥塞的影响。Although not mandatory, this simple rule helps to mitigate the impact of network congestion.
  • 使用基于软件的编码器时,请关闭任何不需要的程序。When using software-based encoders, close out any unnecessary programs.
  • 开始推送之后更改编码器配置会对事件造成负面影响。Changing your encoder configuration after it has started pushing has negative effects on the event. 配置更改可能会导致事件不稳定。Configuration changes can cause the event to become unstable.
  • 请务必测试和验证更新版本的编码器软件,以持续保持与 Azure 媒体服务的兼容性。Always test and validate newer versions of encoder software for continued compatibility with Azure Media Services. Azure 不会重新验证此列表上的编码器,大多数验证由软件供应商直接以“自我认证”的形式完成。Azure does not re-validate encoders on this list, and most validations are done by the software vendors directly as a "self-certification."
  • 请确保自己有充足的时间来设置事件。Ensure that you give yourself ample time to set up your event. 对于大规模事件,我们建议在事件之前的一小时开始设置。For high-scale events, we recommend starting the setup an hour before your event.
  • 使用 H.264 视频和 AAC-LC 音频编解码器输出。Use the H.264 video and AAC-LC audio codec output.
  • 坚持使用要广播的直播活动类型的受支持的分辨率和帧速率(例如,当前拒绝 60fps。)Stick to supported resolutions and frame rates for the type of Live Event you are broadcasting to (for example, 60fps is currently rejected.)
  • 确保不同的视频质量中存在关键帧或 GOP 临时对齐。Ensure that there is key frame or GOP temporal alignment across video qualities.
  • 确保每个视频质量具有唯一的流名称。Make sure there is a unique stream name for each video quality.
  • 为获得最佳自适应比特率性能,建议使用严格的 CBR 编码。Use strict CBR encoding recommended for optimum adaptive bitrate performance.

重要

查看计算机的物理状况(CPU/内存/其他),因为将片段上传到云涉及 CPU 和 IO 操作。Watch the physical condition of the machine (CPU / Memory / etc) as uploading fragments to cloud involves CPU and IO operations. 如果更改编码器中的任何设置,请务必在某些情况下重置频道/直播活动,使更改生效。If you change any settings in the encoder, be certain reset the channels / live event for the change to take effect.

另请参阅See also

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

后续步骤Next steps

如何验证编码器How to verify your encoder