UDP Receive Buffer Causing Packet Loss

588 views
Skip to first unread message

eric.l...@ipconfigure.com

unread,
Mar 6, 2019, 2:19:07 PM3/6/19
to discuss-webrtc
I am using google chrome with webrtc on linux to stream h264 video from a surveillance camera.  The camera stream has a high resolution and chrome is dropping a lot of packets.  I am able to see that the socket being used for receiving video packets has the socket option SO_RCVBUF set to 262144.  It appears there was a field trial to determine a good size for the receive buffer which was settled on in this commit.  I could not find the rationale for this number.

Using GDB I was able to increase the SO_RCVBUF value from 262144 to roughly two megabytes.  After that change I no longer had packet loss.  Could this buffer size be configurable?  What is the rationale behind hard coding it to 262144 bytes? We have customers with 4k cameras, so it would be nice if we could increase this buffer size.

Justin Uberti

unread,
Mar 6, 2019, 7:03:12 PM3/6/19
to discuss-webrtc
Can you file a bug report (http://crbug.com)? Please include target bit rates and a demonstration page if possible.

On Wed, Mar 6, 2019 at 11:19 AM <eric.l...@ipconfigure.com> wrote:
I am using google chrome with webrtc on linux to stream h264 video from a surveillance camera.  The camera stream has a high resolution and chrome is dropping a lot of packets.  I am able to see that the socket being used for receiving video packets has the socket option SO_RCVBUF set to 262144.  It appears there was a field trial to determine a good size for the receive buffer which was settled on in this commit.  I could not find the rationale for this number.

Using GDB I was able to increase the SO_RCVBUF value from 262144 to roughly two megabytes.  After that change I no longer had packet loss.  Could this buffer size be configurable?  What is the rationale behind hard coding it to 262144 bytes? We have customers with 4k cameras, so it would be nice if we could increase this buffer size.

--

---
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/0cecf137-f8d7-437d-ab8a-80ff0b0224e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eric.l...@ipconfigure.com

unread,
Mar 7, 2019, 9:22:17 AM3/7/19
to discuss-webrtc
Thanks I have made a bug report.
Reply all
Reply to author
Forward
0 new messages