Just want to confirm that my understanding of latency is correct.
我只是想确认我对延迟的理解是正确的。
Each element that introduces latency (audio capture, video capture, jitter buffer, etc.) reports a min latency value, which is the minimum downstream elements must wait in order to synchronize playback.
引入延迟的每个元素(音频捕获、视频捕获、抖动缓冲区等)报告最小延迟值,这是为了同步回放而必须等待的最小下游元素。
Each element looks upstream, and sets its latency value to the MAX(min latencies)
每个元素查看上游,并将其延迟值设置为最大延迟(最小延迟)
For example:
例如:
element 1 element 2 element 3 element 4 element 5
[ min latency 200 ] -> [ no latency introduced] -> [ min latency 500 ] -> [ min latency 200 ] -> [ sink element ]
- element 1 latency = 200 ms
- element 2 latency = 200 ms
- element 3 latency = (upstream min + own min) = 200 ms + 500 ms = 700 ms
- element 4 latency = (upstream min + own min) = 700 ms + 200 ms = 900 ms
- element 5 latency = 900 ms (total latency the pipeline will delay playback by)
MAX(200, 200, 700, 900) = 900 = pipeline latency value
最大(200,200,700,900)=900=管道延迟值
Is this correct?
这样对吗?
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!