udp transmission

张若 zr92zr at gmail.com
Fri Mar 10 10:05:33 UTC 2017


Hi all,

I have a c program to read and send the raw image/video by udp.
The packet size (buffer) is restrained by datagrams protocol as smaller
than 2^16
So one frame will be packed separately and transmitted.

The receiver side, I am using gstreamer (udpsrc).
GST_DEBUG=3 gst-launch-1.0 udpsrc port=8888 buffer-size=XXXXXXXXX !
"video/x-raw,format=I420,width=XXXX,height=XXXX,framerate=1/1" !
videoconvert ! ximagesink sync=false

But it shows:

invalid video buffer received
invalid buffer size: xxxxx<xxxxxxx (received buffer size < the picture size
I specified in caps)

How to notify the udpsrc to wait and buffer all packets for one frame and
then display?

Thanks in advanced!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170310/98545418/attachment.html>


More information about the gstreamer-devel mailing list