[gst-devel] help with live streaming

Marco Ballesio gibrovacco at gmail.com
Mon Nov 22 08:18:20 CET 2010


Hi,

sorry for the late reply, hopefully this helps..

On Mon, Nov 15, 2010 at 11:11 PM, sebarocker at gmail.com
<sebarocker at gmail.com> wrote:
> Hi! Im using gstreamer to capture video in my local machine. My pipeline is
> v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=320,height=240,framerate=10/1 ! ffmpegcolorspace !
> capsfilter caps=video/x-raw-rgb,bpp=24 ! identity name=artoolkit ! fakesink
> I would like to consume the live stream from other machine in my network. So
> i did the next:
> Server:
> v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=320,height=240,framerate=10/1 ! ffmpegcolorspace !
> capsfilter caps=video/x-raw-rgb,bpp=24 ! identity name=artoolkit !
> tcpserversink host=192.168.1.101 port=5000

if you don't have particular reasons for using tcp, I encourage you to
switch to udp (not that this is per se a reason for the failure). As
you're transferring over the network blocks bigger than the MTU, you
must either use a raw format (de)payloader as rtpvrawpay/rtpvrawdepay
or (better) compress and payload your stream with e.g. x264enc !
rtph264pay on the sending side, and do the opposite (rtph264depay !
ffdec_h264) on the other one. Of course, this works if in udp mode,
even better if you use gstrtpbin.

Regards

>
> Client:
> tcpclientsrc host=192.168.1.101 port=5000  ! identity name=artoolkit !
> ximagesink
>
> when i try "gst-launch tcpclientsrc host=192.168.1.101 port=5000  ! identity
> name=artoolkit ! ximagesink" in the clien machine i get this error:
> (gst-launch-0.10:8122): GLib-WARNING **: g_set_prgname() called multiple
> times
> Estableciendo el flujo a PAUSADO ...
> El flujo se está PRECACHEANDO ...
> (gst-launch-0.10:8122): GStreamer-CRITICAL **: gst_caps_get_structure:
> assertion `GST_IS_CAPS (caps)' failed
> (gst-launch-0.10:8122): GStreamer-CRITICAL **: gst_structure_get_int:
> assertion `structure != NULL' failed
> ERROR: del elemento /GstPipeline:pipeline0/GstXImageSink:ximagesink0: Failed
> to create output image buffer of 0x0 pixels
> Información adicional de depuración:
> ximagesink.c(469): gst_ximagesink_ximage_new ():
> /GstPipeline:pipeline0/GstXImageSink:ximagesink0:
> could not get shared memory of 0 bytes
> ERROR: El flujo no quiere precachearse.
> Estableciendo el conducto a NULL …
> Liberando la tubería…
>
> What im doing wrong?
> Thanks you very much!!
> Sebastian
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>




More information about the gstreamer-devel mailing list