[gst-devel] no video with rtpjpegpay and udpsink

Wim Taymans wim.taymans at gmail.com
Thu Jun 11 21:37:50 CEST 2009


On Thu, 2009-06-11 at 18:09 +0100, john oliver wrote:
> Hi there,
> 
> I have been having trouble trying to rtp any type of encoded video.
> Whenever I add a payload to an already encoded video file, I can never
> see anything at the receiver. I'd appreciate it if anybody could take
> a quick look at the elements in my pipline. I've also tried this using
> just gst-launch as a server and both client on the same host, using a
> video test source..
> 

You need to tell the receiver what it will receive (using caps on
udpsrc). This document explains things:

http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README

Wim

> Client ..
> 
> 
>       gst-launch udpsrc port=1234 ! rtpjpegdepay ! filesink
> location=xx.jpeg
> 
> Server ..
> 
> 
> 
>      gst-launch videotestsrc ! ffenc_mjpeg ! rtpjpegpay ! rtpbin
> localport=5000 destinations=127.0.0.1:1234
> 
> 
> When I start the server the client says .. 'Not RTP format was
> negotiated'
> 
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from
> element /GstPipeline:pipeline0/GstRtpJPEGDepay:rtpjpegdepay0: Internal
> GStreamer error: negotiation problem.  Please file a bug at
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
> Additional debug info:
> gstbasertpdepayload.c(360): gst_base_rtp_depayload_chain
> (): /GstPipeline:pipeline0/GstRtpJPEGDepay:rtpjpegdepay0:
> Not RTP format was negotiated
> Execution ended after 2704325327 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> Meanwhile the server has said ..
> 
> gst-launch videotestsrc ! ffenc_mjpeg ! rtpjpegpay ! rtpbin
> localport=5000 destinations=127.0.0.1:1234
> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps
> = video/x-raw-yuv, format=(fourcc)I420, width=(int)320,
> height=(int)240, framerate=(fraction)30/1
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/ffenc_mjpeg:ffenc_mjpeg0.GstPad:src: caps =
> image/jpeg, width=(int)320, height=(int)240, framerate=(fraction)30/1
> /GstPipeline:pipeline0/ffenc_mjpeg:ffenc_mjpeg0.GstPad:sink: caps =
> video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240,
> framerate=(fraction)30/1
> /GstPipeline:pipeline0/GstRtpJPEGPay:rtpjpegpay0.GstPad:src: caps =
> application/x-rtp, media=(string)video, clock-rate=(int)90000,
> encoding-name=(string)JPEG, payload=(int)96, ssrc=(guint)32682654,
> clock-base=(guint)3519935330, seqnum-base=(guint)25630
> /GstPipeline:pipeline0/GstRtpJPEGPay:rtpjpegpay0.GstPad:sink: caps =
> image/jpeg, width=(int)320, height=(int)240, framerate=(fraction)30/1
> /GstPipeline:pipeline0/GstRTPBin:rtpbin0/GstRTPSend:rtpsend0.GstPad:datasink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, payload=(int)96, ssrc=(guint)32682654, clock-base=(guint)3519935330, seqnum-base=(guint)25630
> /GstPipeline:pipeline0/GstRTPBin:rtpbin0.GstGhostPad:sink: caps =
> application/x-rtp, media=(string)video, clock-rate=(int)90000,
> encoding-name=(string)JPEG, payload=(int)96, ssrc=(guint)32682654,
> clock-base=(guint)3519935330, seqnum-base=(guint)25630
> /GstPipeline:pipeline0/GstRTPBin:rtpbin0.GstGhostPad:sink: caps =
> application/x-rtp, media=(string)video, clock-rate=(int)90000,
> encoding-name=(string)JPEG, payload=(int)96, ssrc=(guint)32682654,
> clock-base=(guint)3519935330, seqnum-base=(guint)25630
> /GstPipeline:pipeline0/GstRTPBin:rtpbin0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, payload=(int)96, ssrc=(guint)32682654, clock-base=(guint)3519935330, seqnum-base=(guint)25630
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
>   
> 
> ..and continues to roll
> 
> I might move onto gstrtpbin later, but I'd like to make sure I can get
> the basics working first.
> 
> -John
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________ 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