Latency too high - Jitter Buffer questions

851 views
Skip to first unread message

Thomas Fisher

unread,
Mar 5, 2023, 11:09:27 AM3/5/23
to discuss-webrtc
Hello Folks, I am trying to track down a latency issue.

I am running an H264/Opus WebRTC stream from a "server" to a pair of "clients" on a high end Ubuntu 22.04 PC. The server is native (based on lib data channel). Both the server and clients are running on the same system for testing purposes.

One client is a web client running in the Chrome browser and I am using chrome://webrtc-internals for measurement. The other client is native, written to help me debug my WebRTC issues. The test is run on one client/server pair at a time. This test is simple, a single image being encoded and sent at 30fps and silence being sent at 20ms Opus frames.

The attached image shows a consistent 80ms jitter buffer time for Chrome. The native client is able to perform a similar operation (aggregation of MTUs for a single video frame) in 1-2ms. Note, I am assuming that this is a key component in my latency since it appears to have correlation to "totalProcessingDelay". Also RTP/NTP times coming into the native client are very tight, within 10ms.

Questions:
- Is there any way to fix this issue in Chrome? SDP, RTP extensions?
- Are there any detailed explanations on how exactly this stuff is designed to work (for Chrome)
- Can the jitter buffer be by-passed for something that has tight timing tolerances?

Any help would be greatly appreciated.
video_jitter.png

Harald Alvestrand

unread,
Mar 5, 2023, 11:29:44 AM3/5/23
to discuss...@googlegroups.com
Have you tried manipulating the playoutDelay specified in https://w3c.github.io/webrtc-extensions/#rtcrtpreceiver-interface ?


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/5c98a3a9-0a71-4bd3-a786-3faf598b3d08n%40googlegroups.com.

Harald Alvestrand

unread,
Mar 5, 2023, 11:34:04 AM3/5/23
to discuss...@googlegroups.com
Note: this is currently implemented under the name "playoutDelayHint".

Basidh

unread,
Feb 7, 2024, 1:48:50 PM2/7/24
to discuss-webrtc
Hi, how can I use playoutDelay or playoutDelayHint in WebRTC?

rajus...@gmail.com

unread,
Feb 9, 2024, 7:55:05 AM2/9/24
to discuss-webrtc

Hi Basidh,


Above link gives details on using playoutdelay in webrtc.

Thanks,
Nagaraju Samudrala.

Reply all
Reply to author
Forward
0 new messages