Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rcvbuf for UDP and SRT [question] #1715

Closed
Litrona opened this issue Dec 16, 2020 · 3 comments
Closed

rcvbuf for UDP and SRT [question] #1715

Litrona opened this issue Dec 16, 2020 · 3 comments
Assignees
Labels
Type: Question Questions or things that require clarification

Comments

@Litrona
Copy link

Litrona commented Dec 16, 2020

Looking at the doc: https://github.com/Haivision/srt/blob/master/docs/srt-live-transmit.md
I've seen a rcvbuf = SRTO_RCVBUF, and sndbuf = SRTO_SNDBUF.
Are these options related to SO_RCVBUF and SO_SNDBUF, the UDP socket buffers used in SRT ?
So can be used for SRT in the way is used in UDP: "udp://:4200?rcvbuf=67108864", to handle high and bursty data rates ?
I mean "srt://:4200?rcvbuf=67108864" (at the receiver side in this case).
Thanks.

@Litrona Litrona added the Type: Question Questions or things that require clarification label Dec 16, 2020
@maxsharabayko
Copy link
Collaborator

Receive and send buffer sizes of the underlying UDP transport can be set with SRTO_UDP_RCVBUF and SRTO_UDP_SNDBUF.
SRTO_SNDBUF and SRTO_RCVBUF set only corresponding SRT buffer sizes.

Handling high and bursty data rates is one purpose of SRT buffers. In general, SRT receiver buffer is needed to store incoming packets until the application can read them. SRT sender buffer is needed to store outgoing packets until the receiver acknowledges their reception so that they no longer need to be retransmitted.
In live streaming, SRT receiver also needs to buffer incoming packets to maintain a fixed end-to-end latency.
See this configuration guide.

@maxsharabayko maxsharabayko self-assigned this Dec 17, 2020
@Litrona
Copy link
Author

Litrona commented Dec 17, 2020

OK, thanks for the info. Mabbe the config guide should be in the docs folder.

@Litrona Litrona closed this as completed Dec 17, 2020
@maxsharabayko
Copy link
Collaborator

Occasionally stumbled on this thread.
The configuration guideline is now in the docs folder.
https://github.com/Haivision/srt/blob/master/docs/API/configuration-guidelines.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Questions or things that require clarification
Projects
None yet
Development

No branches or pull requests

2 participants