Set udp packet size

Sebastian Dröge sebastian at centricular.com
Thu May 19 07:13:06 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160519/7915cd94/attachment.sig>


More information about the gstreamer-devel mailing list