Sending data using UDPSINK/UDPSRC
Wim Taymans
wim.taymans at gmail.com
Thu May 10 01:54:36 PDT 2012
On 05/09/2012 06:40 PM, tantor2012 wrote:
> Hi,
>
> I am trying to use udpsink/udpsrc to send and receive RGB images of size
> 320x240x3.
>
> Sending:
> In the sink I have our own source plugin which
> - captures image from our camera
> - places in a buffer of the image size.
>
> I connect the output of this to gst-launch -v srcplugin ! udpsink port=2000
320*240*3 = 230400, this is too big to fit in a udp packet.
> Receiving"
> we have our own sink plugin which is supposed to just get the data. the
> pipeline here is gst-launch udpsrc port=2000 ! sinkplugin ! filesink
> location=test.txt
>
> The receiving part just waits and nothing is written to the file.
>
> Instead of our own plugins i have tried to use appsrc and appsink with the
> same result. Nothing is written to the file.
appsrc/appsink doesn't work with gst-launch. otherwise it will work.
>
> How can we achieve this? The aim is to send raw image data from one computer
> to another.
Try this:
gst-launch videotestsrc ! ffmpegcolorspace ! rtpvrawpay ! udpsink
host=127.0.0.1
and then:
gst-launch udpsrc caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)RGB,
depth=(string)8, width=(string)320, height=(string)240,
colorimetry=(string)SMPTE240M" ! rtpvrawdepay ! ffmpegcolorspace !
autovideosink
Wim
>
> Thanks
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Sending-data-using-UDPSINK-UDPSRC-tp4621023.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list