【问题标题】:How chrome://webrtc-internal measures the round trip time?chrome://webrtc-internal 如何测量往返时间?
【发布时间】:2021-04-09 17:58:24
【问题描述】:

我一直在分析使用chrome://webrtc-internal 生成的 JSON 文件,同时在 2 台 PCS 上运行 webrtc。

我查看了Stats API 以验证 webrtc-internal 如何计算往返时间 (RTT)。 我找到了两种方法:

  1. RTC Remote Inbound RTP Video Stream 包含roundTripTime

  2. RTC IceCandidate Pair 包含currentRoundTripTime

哪个是准确的,为什么以及如何计算?

RTT 是逐帧计算的吗?

它是用一种方式计算的 (sender --> receiver),还是两种方式 (sender --> receiver--> sender)?

哪些报告用于衡量 RTT?是Receiver Report RTCP 还是Sender Report RTCP

Webrtc VP8 codecGOP的长度大小是多少?

【问题讨论】:

    标签: google-chrome webrtc rtp rtcpeerconnection


    【解决方案1】:

    RTCIceCandidatePairStats.currentRoundTripTime 由远程对等方响应 STUN 绑定请求所需的时间计算。 WebRTC ICE 代理会定期发送这些消息,并且每条消息都有一个 TransactionID。

    RTCRemoteInboundRtpStreamStats.currentRoundTripTime 计算自收到最后一个 SenderReport 以来的时间。发件人知道它什么时候发送的,因此它能够计算出它需要多长时间到达。

    它们都是准确的。我个人使用 ICE 统计数据,因为开销较小。数据包不必通过 RTCP 子系统进行解密和路由。 IMO ICE 也比 RTCP 更容易处理。

    What is the size of the length of GOP in the Webrtc VP8 codec?。这取决于正在编码的内容和设置。你有一个低关键帧间隔吗?你编码的东西有很多变化吗?你想用这个问题来确定什么?

    【讨论】:

    • 您的意思是“RTCRemoteInboundRtpStreamStats.roundTripTime”是发送 SenderReport 和接收者接收报告之间的延迟吗? tools.ietf.org/html/rfc3550#section-6.4.1 NTP 时间戳:64 位 指示发送此报告时的挂钟时间(参见第 4 节),以便它可以与其他接收器的接收报告中返回的时间戳结合使用,以测量到这些接收器的往返传播。
    • 关于 webrtc vp8 编解码器中的 GOP,如何计算/提取 Inter-frames/s 和 Keyframes/s?
    猜你喜欢
    • 2021-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-26
    • 2013-01-17
    • 1970-01-01
    相关资源
    最近更新 更多