:UDP RAW stream packet size

Andrés Meseguer Valenzuela ameseguer at iti.es
Fri Jun 16 12:30:48 UTC 2023


Thank you all for your answers.
Referring to changing the mtu value, the problem is that when I increment it, it starts to provoke IP fragmentation splitting the packets in 1500 bytes again, and getting a similar latency with lower mtu. Please, let me know how to avoid this issue. 
Best regards,
Andrés. 


-----Mensaje original-----
De: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> En nombre de gstreamer-devel-request at lists.freedesktop.org
Enviado el: viernes, 16 de junio de 2023 14:00
Para: gstreamer-devel at lists.freedesktop.org
Asunto: gstreamer-devel Digest, Vol 149, Issue 30

Send gstreamer-devel mailing list submissions to
	gstreamer-devel at lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
or, via email, send a message with subject or body 'help' to
	gstreamer-devel-request at lists.freedesktop.org

You can reach the person managing the list at
	gstreamer-devel-owner at lists.freedesktop.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of gstreamer-devel digest..."


Today's Topics:

   1. Re: UDP RAW stream packet size (Tim-Philipp M?ller)
   2. Re: UDP RAW stream packet size (Nicolas Dufresne)


----------------------------------------------------------------------

Message: 1
Date: Thu, 15 Jun 2023 13:24:40 +0100
From: Tim-Philipp M?ller <t.i.m at zen.co.uk>
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: UDP RAW stream packet size
Message-ID: <15609f3d62bde3756df7fd14d729f95fe06a9245.camel at zen.co.uk>
Content-Type: text/plain; charset="utf-8"

On Thu, 2023-06-15 at 11:12 +0000, Andr?s Meseguer Valenzuela via gstreamer-devel wrote:

Hi?Andr?s,

> 
> 
> I am using a gstreamer pipeline to send UDP video stream raw rgb and a 
> python code to receive it and use it with opencv.
> I see that gstreamer sends the video using packets of 1400 bytes, 
> hence it that is increasing the latency. May I know any manner to 
> increase the packet size in order to reduce quantity of packets and 
> so, the final latency? For the pipeline I use rtrawpay and udpsink. I 
> have tried to add a queue between both but there has been no change.

RTP payloaders including rtpvrawpay have an "mtu" property which you can set.

Cheers
?Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230615/c42af81e/attachment-0001.htm>

------------------------------

Message: 2
Date: Thu, 15 Jun 2023 09:35:13 -0400
From: Nicolas Dufresne <nicolas at ndufresne.ca>
To: Discussion of the development of and with GStreamer
	<gstreamer-devel at lists.freedesktop.org>
Cc: Andr?s Meseguer Valenzuela <ameseguer at iti.es>
Subject: Re: UDP RAW stream packet size
Message-ID:
	<CAKQmDh_1KavuJkKijzwNppP7tsDuFYmjMfR8gDtEN+igwi24Zw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,


Le jeu. 15 juin 2023, 08 h 15, Andr?s Meseguer Valenzuela via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> a ?crit :

> Dear community,
> I am using a gstreamer pipeline to send UDP video stream raw rgb and a 
> python code to receive it and use it with opencv.
>
> I see that gstreamer sends the video using packets of 1400 bytes, 
> hence it that is increasing the latency. May I know any manner to 
> increase the packet size in order to reduce quantity of packets and 
> so, the final latency? For the pipeline I use rtrawpay and udpsink. I 
> have tried to
>

To increase throughput (it has nothing to do with latency, if your network and computer was faster, smaller chunk leads to lower latency), you need to change the MTU. There is an mtu property on all RTP payloaders. You may want to tweak your network configuration.

Regards,
Nicolas



> add a queue between both but there has been no change.
>
> Please, let me know any solution,
> thank you for your time.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230615/db019222/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


------------------------------

End of gstreamer-devel Digest, Vol 149, Issue 30
************************************************


More information about the gstreamer-devel mailing list