使用 NewTek TriCaster 编码器发送单比特率实时流Use the NewTek TriCaster encoder to send a single bitrate live stream

本文说明了如何配置 NewTek TriCaster 实时编码器,以便将单比特率流发送到 AMS 频道进行实时编码。This article shows how to configure the NewTek TriCaster live encoder to send a single bitrate stream to AMS channels that are enabled for live encoding. 有关详细信息,请参阅使用能够通过 Azure 媒体服务执行实时编码的频道For more information, see Working with Channels that are Enabled to Perform Live Encoding with Azure Media Services.

本教程演示了如何通过 Azure 媒体服务浏览器 (AMSE) 工具管理 Azure 媒体服务 (AMS)。This tutorial shows how to manage Azure Media Services (AMS) with Azure Media Services Explorer (AMSE) tool. 此工具仅在 Windows 电脑上运行。This tool only runs on Windows PC. 如果使用的是 Mac 或 Linux,则可使用 Azure 门户创建频道节目If you are on Mac or Linux, use the Azure portal to create channels and programs.

使用 Tricaster 将贡献源发送到已启用实时编码的 AMS 频道时,如果使用了 Tricaster 的某些功能(例如,在源之间快速剪切,或者切入/切出静态图像),直播活动可能会出现视频/音频抖动。When using Tricaster for sending in a contribution feed to AMS channels that are enabled for live encoding, there can be video/audio glitches in your live event if you use certain features of Tricaster, such as rapid cutting between feeds, or switching to/from slates. AMS 团队正在努力解决这些问题,在此之前,不建议使用这些功能。The AMS team is working on fixing these issues, until then, it is not recommended to use these features.

备注

请考虑迁移到 TLS 1.2(首选 TLS 版本)。Consider moving to TLS 1.2, the prefferred TLS version.

必备条件Prerequisites

提示Tips

  • 尽可能使用硬编码的 Internet 连接。Whenever possible, use a hardwired internet connection.
  • 确定带宽要求时,可以认为它就是将流式处理比特率翻倍。A good rule of thumb when determining bandwidth requirements is to double the streaming bitrates. 虽然此要求不是强制性要求,但它可以减轻网络拥塞的影响。While this is not a mandatory requirement, it helps mitigate the impact of network congestion.
  • 使用基于软件的编码器时,请关闭任何不需要的程序。When using software-based encoders, close out any unnecessary programs.

创建频道Create a channel

  1. 在 AMSE 工具中,导航到“实时” 选项卡,并右键单击频道区域。In the AMSE tool, navigate to the Live tab, and right-click within the channel area. 从菜单中选择“创建频道…” Select Create channel… from the menu.

    Tricaster

  2. 指定频道名称,说明字段为选填字段。Specify a channel name, the description field is optional. 在“频道设置”下针对“实时编码”选项选择“标准” ,将“输入协议”设置为“RTMP” 。Under Channel Settings, select Standard for the Live Encoding option, with the Input Protocol set to RTMP. 所有其他设置可保留原样。You can leave all other settings as is.

    确保选中“立即启动新频道” 。Make sure the Start the new channel now is selected.

  3. 单击“创建频道” 。Click Create Channel.

    Tricaster

备注

启动频道可能需要长达 20 分钟的时间。The channel can take as long as 20 minutes to start.

启动频道时,可以配置编码器While the channel is starting, you can configure the encoder.

重要

只要频道进入就绪状态,就会开始计费。Billing starts as soon as Channel goes into a ready state. 有关详细信息,请参阅频道的状态For more information, see Channel's states.

配置 NewTek TriCaster 编码器Configure the NewTek TriCaster encoder

在本教程中,将使用以下输出设置。In this tutorial, the following output settings are used. 本部分的其余内容介绍更详细的配置步骤。The rest of this section describes configuration steps in more detail.

视频Video:

  • 编解码器:H.264Codec: H.264
  • 配置文件:高(级别 4.0)Profile: High (Level 4.0)
  • 比特率:5000 kbpsBitrate: 5000 kbps
  • 关键帧:2 秒(60 秒)Keyframe: 2 seconds (60 seconds)
  • 帧速率:30Frame Rate: 30

音频Audio:

  • 编解码器:AAC (LC)Codec: AAC (LC)
  • 比特率:192 kbpsBitrate: 192 kbps
  • 采样率:44.1 kHzSample Rate: 44.1 kHz

配置步骤Configuration steps

  1. 根据所用的视频输入源创建一个新的 NewTek TriCaster 项目。Create a new NewTek TriCaster project depending on what video input source is being used.

  2. 进入该项目以后,找到“流” 按钮,单击该按钮旁边的齿轮图标,以便访问流配置菜单。Once within that project, find the Stream button, and click the gear icon next to it to access the stream configuration menu.

    Tricaster

  3. 菜单打开以后,单击“连接”标题下的“新建” 。Once the menu has opened, click New under the Connection heading. 系统提示输入连接类型时,请选择“Adobe Flash” 。When prompted for the connection type, select Adobe Flash.

    Tricaster

  4. 单击 “确定”Click OK.

  5. 现在,你可以单击“流式处理配置文件” 下的下拉箭头并导航到“浏览” ,以导入 FMLE 配置文件。An FMLE profile can now be imported by clicking the drop down arrow under Streaming Profile and navigating to Browse.

    Tricaster

  6. 导航到保存已配置的 FMLE 配置文件的位置。Navigate to where the configured FMLE profile was saved.

  7. 选择该文件,并按“确定” 。Select it, and press OK.

    上传配置文件以后,即可继续执行下一步。Once the profile is uploaded, proceed to the next step.

  8. 获取频道的输入 URL,以便将其分配给 Tricaster 的“RTMP 终结点” 。Get the channel's input URL in order to assign it to the Tricaster RTMP Endpoint.

    导航回 AMSE 工具,查看频道完成状态。Navigate back to the AMSE tool, and check on the channel completion status. 一旦状态从“正在启动” 变为“正在运行” ,即可获取输入 URL。Once the State has changed from Starting to Running, you can get the input URL.

    频道正在运行时,右键单击频道名称,向下导航,将鼠标悬停在“将输入 URL 复制到剪贴板” 上方,然后选择“主要输入 URL” 。When the channel is running, right click the channel name, navigate down to hover over Copy Input URL to clipboard and then select Primary Input URL.

    Tricaster

  9. 在 Tricaster 项目中,将此信息粘贴到“闪存服务器” 下的“位置” 字段。Paste this information in the Location field under Flash Server within the Tricaster project. 还需要在“流 ID” 字段中指定一个流名称。Also assign a stream name in the Stream ID field.

    如果流信息已添加到 FMLE 配置文件,则也可以通过一下方式将其导入此部分:单击“导入设置” ,导航到已保存的 FMLE 配置文件,然后单击“确定” 。If stream information was added to the FMLE profile, it can also be imported to this section by clicking Import Settings, navigating to the saved FMLE profile and clicking OK. 相关的“闪存服务器”字段应使用 FMLE 中的信息进行填充。The relevant Flash Server fields should populate with the information from FMLE.

    Tricaster

  10. 完成后,单击屏幕底部的“确定” 。When finished, click OK at the bottom of the screen. 当输入到 Tricaster 中的视频和音频已就绪时,则可单击“流” 按钮开始将其流式传输到 AMS。When video and audio inputs into the Tricaster are ready, begin streaming to AMS by clicking the Stream button.

    Tricaster

重要

在单击“流” 之前,必须 确保频道已就绪。Before you click Stream, you must ensure that the Channel is ready. 另外,请确保不要让频道在没有一个输入贡献源的情况下处于就绪状态的时间超出 15 分钟。Also, make sure not to leave the Channel in a ready state without an input contribution feed for longer than > 15 minutes.

测试播放Test playback

导航回 AMSE 工具,并右键单击要测试的频道。Navigate to the AMSE tool, and right-click the channel to be tested. 在菜单中,将鼠标悬停在“播放预览” 上方,然后选择“使用 Azure Media Player” 。From the menu, hover over Playback the Preview and select with Azure Media Player.

tricaster

如果流出现在播放器中,则编码器已正确配置,可以连接到 AMS。If the stream appears in the player, then the encoder has been properly configured to connect to AMS.

如果收到错误,则需重置频道并调整编码器设置。If an error is received, the channel will need to be reset and encoder settings adjusted. 有关指南,请参阅故障排除一文。See the troubleshooting article for guidance.

创建节目Create a program

  1. 确认频道可以播放后,即可创建节目。Once channel playback is confirmed, create a program. 在 AMSE 工具的“实时” 选项卡下,右键单击节目区域,并选择“创建新节目” 。Under the Live tab in the AMSE tool, right-click within the program area and select Create New Program.

    Tricaster

  2. 为节目命名,并根据需要调整“存档时段长度” (默认为 4 小时)。Name the program and, if needed, adjust the Archive Window Length (which defaults to four hours). 还可以指定存储位置,也可以将其保留为默认值。You can also specify a storage location or leave as the default.

  3. 选中“立即启动节目” 框。Check the Start the Program now box.

  4. 单击“创建节目” 。Click Create Program.

    备注

    创建节目需要的时间比创建频道需要的时间少。Program creation takes less time than channel creation.

  5. 运行节目以后,可通过下述方式来确认其是否能够播放:右键单击该节目,导航到“播放节目” ,并选择“使用 Azure Media Player” 。Once the program is running, confirm playback by right-clicking the program and navigating to Playback the program(s) and then selecting with Azure Media Player.

  6. 确认以后,再次右键单击该节目,然后选择“将输出 URL 复制到剪贴板” (也可通过菜单从“节目信息和设置” 选项检索此信息)。Once confirmed, right-click the program again and select Copy the Output URL to Clipboard (or retrieve this information from the Program information and settings option from the menu).

现在可以将流嵌入到播放器中,也可将其分发给受众进行实时观看。The stream is now ready to be embedded in a player, or distributed to an audience for live viewing.

故障排除Troubleshooting

有关指南,请参阅故障排除一文。See the troubleshooting article for guidance.

后续步骤Next step

查看媒体服务学习路径。Review Media Services learning paths.

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

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

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