[gst-devel] video on rtp with gstreamer

Andre Magalhaes andrunko at gmail.com
Mon May 8 18:20:57 CEST 2006


Hi,

AFAIK rtpbin needs a pt-map that can't be set using a command line
program as gst-launch. So you will have to write a program that sets
pt-map on rtpbin, You can take a look at
farsight/plugins/rtp/rtpstream.c as an example.

BR
Andrunko

On 5/6/06, ye nan <bucketxp at hotmail.com> wrote:
> Hi,
>   I try to build up a video stream with rtpbin in gst-plugins-farsight.
>   Sender:
>   gst-launch-0.10 v4lsrc ! video/x-raw-yuv,width=320,height=240 !
> ffmpegcolorspace ! video/x-raw-yuv,width=320,height=240 ! ffenc_h263p !
> rtph263ppay ! rtpbin localport=10000 destinations=127.0.0.1:10002
>   Receiver:
>   gst-launch-0.10 rtpbin localport=10002 ! rtph263pdepay ! ffdec_h263 !
> ffmpegcolorspace ! ximagesink
>   When I started the receiver, I got a error:
>   ** (gst-launch-0.10:29147): CRITICAL **: gst_base_rtp_depayload_chain:
> assertion `filter->clock_rate > 0' failed
>   I also try to ff***_mpeg4 codecs and rtpmp4v** payloader, but got the
> same failure.
>   I use the gst-inspect to check more information about rtpbin and then add
> a capsfilter between rtpbin and rtph263pday in receiving side:
> application/x-rtp, clock-rate=????. I have no idea about how to set the
> clock-rate for x-rtp. I just tried to set to 10000 for a test, then I got
> another error:
>
> Setting pipeline to PAUSED ...
> /pipeline0/rtpbin0/rtcpsrcelement: port = 10003
> ERROR: Pipeline can't PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /pipeline0/capsfilter0.sink: caps = application/x-rtp,
> clock-rate=(int)10000, media=(string)video, encoding-name=(string)MP4V-ES
> /pipeline0/capsfilter0.src: caps = application/x-rtp,
> clock-rate=(int)10000, media=(string)video, encoding-name=(string)MP4V-ES
> /pipeline0/rtpmp4vdepay0.sink: caps = application/x-rtp,
> clock-rate=(int)10000, media=(string)video, encoding-name=(string)MP4V-ES
> ERROR: from element /pipeline0/ffdec_mpeg40: Internal GStreamer error:
> negotiation problem.  Please file a bug at
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
> Additional debug info:
> gstffmpegdec.c(1215): gst_ffmpegdec_chain: /pipeline0/ffdec_mpeg40:
> ffdec_mpeg4: input format was not set before data start
> Execution ended after 85901000 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> /pipeline0/capsfilter0.src: caps = NULL
> /pipeline0/capsfilter0.sink: caps = NULL
> Setting pipeline to NULL ...
> FREEING pipeline ...
>
>   Thanks.
>
> Best regard,
> Nan.Ye
>
> _________________________________________________________________
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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