[gst-devel] simple raw video RTP -- still no joy

Bert Douglas bertd at tplogic.com
Fri Sep 3 19:11:36 CEST 2010


Hi Wim,

Thanks for the quick reply.
I fixed the width and height to be the same.

Now it just sits there after going to playing state.
Cpu utilization is about 10 percent.
I expected it to open a window for ximagesink, but it does not.

I see some strange caps:
/GstPipeline:pipeline0/GstRtpVRawDepay:rtpvrawdepay0.GstPad:src: caps =
video/x-raw-rgb, width=(int)400, height=(int)300, format=(fourcc)0x00000000,
framerate=(fraction)0/1

The framerate is 0, despite the fact that I set it to 10.

Thanks again,
Bert Douglas

On Fri, Sep 3, 2010 at 11:47 AM, Wim Taymans <wim.taymans at gmail.com> wrote:

> On Fri, 2010-09-03 at 11:35 -0500, Bert Douglas wrote:
> > I followed Wim's very helpful advice.  It goes a bit further than
> > before.
> > Sadly, then there is a segment fault.
>
> You didn't copy the caps correctly, the width and height are not right
> in the receiver. The crash is because of a bug in the depayloader
> (fixing now).
>
> Wim
> >
> > # rtp-server
> > gst-launch  -v \
> >       videotestsrc pattern=red \
> >    !  video/x-raw-rgb, width=400, height=300, framerate=\(fraction
> > \)10/1 \
> >    !  rtpvrawpay ssrc=1 timestamp-offset=0 seqnum-offset=0 \
> >    !  udpsink host=127.0.0.1 port=51234
> >
> > # rtp-client
> >
> caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)RAW,sampling=(string)RGBA,depth=(string)8,width=(string)4,height=(string)4,colorimetry=(string)SMPTE240M,payload=(int)96,ssrc=(uint)1,clock-base=(uint)0,seqnum-base=(uint)0,framerate=(fraction)10/1"
> > gst-launch -v  \
> >       udpsrc uri=udp://127.0.0.1:51234 caps=$caps \
> >    !  rtpvrawdepay \
> >    !  video/x-raw-rgb,format=\(fourcc\)RGBA,framerate=\(fraction\)10/1
> > \
> >    !  ffmpegcolorspace \
> >    !  ximagesink
> >
> >
> > $ . rtp-client.sh
> > Setting pipeline to PAUSED ...
> > Pipeline is live and does not need PREROLL ...
> > Setting pipeline to PLAYING ...
> > New clock: GstSystemClock
> > /GstPipeline:pipeline0/GstRtpVRawDepay:rtpvrawdepay0.GstPad:src: caps
> > = video/x-raw-rgb, width=(int)4, height=(int)4,
> > format=(fourcc)0x00000000, framerate=(fraction)0/1
> > /GstPipeline:pipeline0/GstRtpVRawDepay:rtpvrawdepay0.GstPad:sink: caps
> > = application/x-rtp, media=(string)video, clock-rate=(int)90000,
> > encoding-name=(string)RAW, sampling=(string)RGBA, depth=(string)8,
> > width=(string)4, height=(string)4, colorimetry=(string)SMPTE240M,
> > payload=(int)96, ssrc=(uint)1, clock-base=(uint)0,
> > seqnum-base=(uint)0, framerate=(fraction)10/1
> > Segmentation fault
> >
> >
> > On Fri, Sep 3, 2010 at 10:07 AM, Bert Douglas <bertd at tplogic.com>
> > wrote:
> >         Thanks much to Wim for the excellent pointer.
> >
> >         --Bert
> >
> >
> >
> >         On Fri, Sep 3, 2010 at 3:10 AM, Wim Taymans
> >         <wim.taymans at gmail.com> wrote:
> >                 On Thu, 2010-09-02 at 23:54 -0500, Bert Douglas wrote:
> >                 > Tristan tried to help me.  I tried setting caps as
> >                 recommended. Still
> >                 > not working.
> >
> >
> >                 You're doing it wrong. read the instructions in this
> >                 document carefully:
> >
> >
> http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README#n251
> >
> >                 Wim
> >
> >
> >
> >                 > Thanks for looking.
> >                 >
> >                 > # rtp-server
> >                 > gst-launch  \
> >                 >       videotestsrc pattern=red \
> >                 >    !  video/x-raw-rgb, format=\(fourcc\)RGB,
> >                 width=4, height=4,
> >                 > frame-rate=1/1 \
> >                 >    !  rtpvrawpay \
> >                 >    !  udpsink host=127.0.0.1 port=51234
> >                 >
> >                 > # rtp-client
> >                 >
> >
> CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)RAW,"
> >                 > CAPS=
> >                 >
> >
> $CAPS"sampling=(string)RGB,depth=(int)8,width=(int)4,height=(int)4"
> >                 > gst-launch  \
> >                 >       udpsrc uri=udp://127.0.0.1:51234 caps=$CAPS \
> >                 >    !  rtpvrawdepay \
> >                 >    !  video/x-raw-rgb, format=\(fourcc\)RGB,
> >                 width=4, height=4,
> >                 > frame-rate=1/1 \
> >                 >    !  ffmpegcolorspace \
> >                 >    !  ximagesink
> >                 >
> >                 > Setting pipeline to PAUSED ...
> >                 > Pipeline is live and does not need PREROLL ...
> >                 > Setting pipeline to PLAYING ...
> >                 > New clock: GstSystemClock
> >                 > 0:00:00.056868267 14918      0x1188c90 ERROR
> >                 rtpvrawdepay
> >                 >
> >
> gstrtpvrawdepay.c:240:gst_rtp_vraw_depay_setcaps:<rtpvrawdepay0> no
> >                 > width specified
> >                 > ERROR: from
> >                 element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> >                 Internal
> >                 > data flow error.
> >                 > Additional debug info:
> >                 > gstbasesrc.c(2562): gst_base_src_loop
> >                 > (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> >                 > streaming task paused, reason not-negotiated (-4)
> >                 > Execution ended after 18091128 ns.
> >                 > Setting pipeline to PAUSED ...
> >                 > Setting pipeline to READY ...
> >                 > Setting pipeline to NULL ...
> >                 > Freeing pipeline ...
> >                 >
> >                 >
> >                 >
> >
> >                 >
> >
> ------------------------------------------------------------------------------
> >                 > This SF.net Dev2Dev email is sponsored by:
> >                 >
> >                 > Show off your parallel programming skills.
> >                 > Enter the Intel(R) Threading Challenge 2010.
> >                 > http://p.sf.net/sfu/intel-thread-sfd
> >                 > _______________________________________________
> >                 gstreamer-devel mailing list
> >                 gstreamer-devel at lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> >                 This SF.net Dev2Dev email is sponsored by:
> >
> >                 Show off your parallel programming skills.
> >                 Enter the Intel(R) Threading Challenge 2010.
> >                 http://p.sf.net/sfu/intel-thread-sfd
> >                 _______________________________________________
> >                 gstreamer-devel mailing list
> >                 gstreamer-devel at lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net Dev2Dev email is sponsored by:
> >
> > Show off your parallel programming skills.
> > Enter the Intel(R) Threading Challenge 2010.
> > http://p.sf.net/sfu/intel-thread-sfd
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100903/a8cf2d13/attachment.htm>


More information about the gstreamer-devel mailing list