实时流式处理故障排除指南Troubleshooting guide for live streaming

本文提供有关如何排查某些实时流式处理问题的建议。This article gives suggestions on how to troubleshoot some live streaming problems.

本部分提供有关如何排查本地编码器相关问题的建议,这些编码器配置为向启用了实时编码的 AMS 通道发送单比特率流。This section gives suggestions on how to troubleshoot problems related to on-premises encoders that are configured to send a single bitrate stream to AMS channels that are enabled for live encoding.

问题:想要查看日志Problem: Would like to see logs

  • 潜在问题:找不到可帮助调试问题的编码器日志。Potential issue: Can't find encoder logs that might help in debugging issues.

    • Telestream Wirecast:通常可以在 C:\Users{username}\AppData\Roaming\Wirecast\ 下找到日志Telestream Wirecast: You can usually find logs under C:\Users{username}\AppData\Roaming\Wirecast</span>
    • Elemental Live:可以在管理门户上找到日志的链接。Elemental Live: You can find has links to logs on the management portal. 单击“统计信息” ,并单击“日志” 。Click on Stats, then Logs. 在“日志文件” 页上,可以看到所有 LiveEvent 项的日志列表;选择与当前会话匹配的日志。On the Log Files page, you will see a list of logs for all the LiveEvent items; select the one matching your current session.
    • Flash Media Live Encoder:可以通过导航到“编码日志”选项卡找到“日志目录...”。Flash Media Live Encoder: You can find the Log Directory... by navigating to the Encoding Log tab.

问题:没有输出渐进式流的选项Problem: There is no option for outputting a progressive stream

  • 潜在问题:使用的编码器不自动取消隔行扫描。Potential issue: The encoder being used doesn't automatically deinterlace.

    故障排除步骤:在编码器界面中查找取消隔行扫描选项。Troubleshooting steps: Look for a de-interlacing option within the encoder interface. 启用取消隔行扫描后,再次检查渐进式输出设置。Once de-interlacing is enabled, check again for progressive output settings.

问题:已尝试多种编码器输出设置,但仍然无法连接。Problem: Tried several encoder output settings and still unable to connect.

  • 潜在问题:未正确重置 Azure 编码频道。Potential issue: Azure encoding channel was not properly reset.

    故障排除步骤:确保编码器不再推送到 AMS,停止并重置该频道。Troubleshooting steps: Make sure the encoder is no longer pushing to AMS, stop and reset the channel. 再次运行后,尝试使用新的设置连接到编码器。Once running again, try connecting your encoder with the new settings. 如果这样仍无法更正问题,请尝试创建全新的通道,因为有时通道在经过几次失败的尝试后可能会损坏。If this still does not correct the issue, try creating a new channel entirely, sometimes channels can become corrupt after several failed attempts.

  • 潜在问题:GOP 大小或关键帧设置不是最佳。Potential issue: The GOP size or key frame settings are not optimal.

    故障排除步骤:建议的 GOP 大小或关键帧间隔为 2 秒。Troubleshooting steps: Recommended GOP size or keyframe interval is two seconds. 有些编码器以帧数计算此设置,而有些则以秒计算。Some encoders calculate this setting in number of frames, while others use seconds. 例如:输出 30 fps 时,GOP 大小是 60 帧,相当于 2 秒。For example: When outputting 30 fps, the GOP size would be 60 frames, which is equivalent to 2 seconds.

  • 潜在问题:关闭的端口阻止流。Potential issue: Closed ports are blocking the stream.

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

备注

如果按照故障排除步骤执行操作后,仍然无法成功进行流式处理,可使用 Azure 门户提交支持票证。If after following the troubleshooting steps you still cannot successfully stream, submit a support ticket using the Azure portal.