[gst-devel] Caps negotiation problem with gstrtpbin

Irfan Shaikh irfanshaikh at tataelxsi.co.in
Wed Nov 12 07:30:07 CET 2008


Hi All,

      I have element "rtpasfpay" i.e asfpay in following pipeline. I want to link it with "gstrtpbin" 

[root at blr0227 rtp]# gst-launch-0.10 -vvv gstrtpbin name=rtpbin filesrc blocksize=1048576 location=/root/mpeg4new.dat ! vbuffer video-codec=1 ! mpeg4videoparse ! ffmux_asf ! asfparse ! asfpay ! rtpbin.send_rtp_sink_2 rtpbin.send_rtp_src_2 ! udpsink port=5000 host=10.60.3.104 name=vrtpsink rtpbin.send_rtcp_src_2 ! udpsink port=5001 host=10.60.3.104 sync=false async=false name=vrtcpsink udpsrc port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_2
vbuffer->Video_codec = 1 

** (gst-launch-0.10:21780): CRITICAL **: gst_ffmpeg_mux_simple_caps_set_int_list: assertion `GST_CAPS_IS_SIMPLE (caps)' failed
_init function ended 
WARNING: erroneous pipeline: could not link asfpay0 to rtpbin

llly i cannot use gstrtpbin even with "videotestsrc ! ffenc_mpeg4 !" instead of "filesrc blocksize=1048576 location=/root/mpeg4new.dat ! vbuffer video-codec=1 ! mpeg4videoparse !"
  

I have set the caps in asfpay as follows {I have also tried with caps "ANY"}:

#define SRC_CAPS \
  "application/x-rtp, "                                          \
  "media = (string) { \"application\", \"video\", \"audio\" }, " \
  "clock-rate = (int) [1, MAX ], "                               \
  "encoding-name = (string) \"x-asf-pf\""

static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
    GST_PAD_SRC,
    GST_PAD_ALWAYS,
    GST_STATIC_CAPS ("SRC_CAPS")
    );


    My friend has created a element "rtpmjpegpay" with similar caps and similar template only difference was in _chain(). But his element links with above pipeline.

Regards,
Irfan




This message (including any attachment) is confidential and may be legally privileged.  Access to this message by anyone other than the intended recipient(s) listed above is unauthorized.  If you are not the intended recipient you are hereby notified that any disclosure, copying, or distribution of the message, or any action taken or omission of action by you in reliance upon it, is prohibited and may be unlawful.  Please immediately notify the sender by reply e-mail and permanently delete all copies of the message if you have received this message in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081112/fffdbf56/attachment.htm>


More information about the gstreamer-devel mailing list