Set udp packet size

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Set udp packet size

de_ninja
I want to stream audio encoded as mp3 with udpsink with this pipeline:

gst-launch-1.0 audiotestsrc ! lamemp3enc ! udpsink host=224.0.0.1 port=8001

I receive packets with a size of 104 bytes.
How can I send bigger data packets with udp?

I also tried: queue min-threshold-bytes=1024 but the packet size is still 104 bytes.

Thanks for any help!
Reply | Threaded
Open this post in threaded view
|

Re: Set udp packet size

Sebastian Dröge-3
On Mi, 2016-05-18 at 07:05 -0700, de_ninja wrote:

> I want to stream audio encoded as mp3 with udpsink with this
> pipeline:
>
> *gst-launch-1.0 audiotestsrc ! lamemp3enc ! udpsink host=224.0.0.1
> port=8001*
>
> I receive packets with a size of 104 bytes. 
> How can I send bigger data packets with udp?
>
> I also tried: *queue min-threshold-bytes=1024* but the packet size is
> still 104 bytes.
>
> Thanks for any help!
You could use the rndbuffersize element with same min and max to
enforce a specific buffer size. But streaming raw MP3 over UDP is not
ideal, consider using RTP. RTP payloaders could also bundle multiple
MP3 frames in a single packet (not sure if ours can, but it could be
added).

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment