-
Notifications
You must be signed in to change notification settings - Fork 863
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
srt-live-transmit default chunk size #702
Comments
Don`t forget the MSS which is the Max Segment Size. Based on the network capability (MTU), its role was to prevent segmentation by IP, with default of 1500. SRT used that default until 1.2 at the cost of useless memory allocated in send and received buffers and a ACK sent for each packet (an incomplete packet being considered a end-of-file) which was disabled for SRT-CC then the equivalent of the actual live 'smoother'. The reduced payload size (and MSS) has raised many issues since its introduction to save memory nobody seems to care about. |
I have to document it somewhere. AFAIR the Although I remember what you said about that and it's reasonable that when changing the value of |
At the moment
srt-live-transmit
has two parameters about the packets payload to configure.URI socket option
payloadsize
and command-line argument-chunk
(-c
) that sets a size of a chunk. This chunk size determines the size of the buffer to store data read from source and pass to destination.Both of these options are 1316 by default. But they both have to be configured to change the packet payload. If the
payloadsize
is increased, the chunk size stays the same and prevents having the full payload being read from source.This provides inconvenience and complications, e.g. when trying to transmit RTP packets with
srt-live-transmit
over SRT.In general, the chunk size option is redundant, except for the cases when
stdin
or file input are used as the source (the latter one if unavailable insrt-live-transmit
).Potential improvement of this could be to set the chunk size to 1500 bytes, unless
file:con
is selected as a source.Or, maybe better, to get the payload size from the source and use it as a chunk size, thus removing
-chunk
command line argument.The text was updated successfully, but these errors were encountered: