[gstreamer-bugs] [Bug 611273] get caps from rtpmp4vpay element
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Mar 1 12:35:21 PST 2010
https://bugzilla.gnome.org/show_bug.cgi?id=611273
GStreamer | gst-python | 0.10.25
--- Comment #4 from Nicola <lists at svrinformatica.it> 2010-03-01 20:35:20 UTC ---
I'm sorry but your suggestions didn't work:
>>> import pygst
>>> pygst.require("0.10")
>>> import gst
>>> import gobject
>>> pipeline = gst.Pipeline("rtp-pipeline")
>>> source=gst.element_factory_make("udpsrc")
>>> source.set_property("port",2546)
>>> source.set_property("timeout",5000000)
>>> caps=gst.Caps("application/x-rtp, media=(string)video, payload=(int)121, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1")
>>>depay=gst.element_factory_make("rtpmp4vdepay")
>>>pay=gst.element_factory_make("rtpmp4vpay")
>>>destination=gst.element_factory_make("multiudpsink")
>>>destination.set_property("clients",'192.168.2.102:6000')
>>>pipeline.add(source,depay,pay,destination)
>>>gst.element_link_many(source,depay,pay,destination)
True
>>> pipeline.set_state(gst.STATE_PLAYING)
>>> pipeline.get_state()[1].value_name
'GST_STATE_PLAYING'
>>> for i in pipeline.elements():
... if 'rtpmp4vpay' in str(i.get_name()):
... pay=i
...
>>> pay
<__main__.GstRtpMP4VPay object (rtpmp4vpay0) at 0x1515d20>
>>> for j in pay.src_pads(): print str(j.get_property('caps'))
...
None
>>> for j in pay.src_pads(): print str(j.get_caps())
...
application/x-rtp, media=(string)video, payload=(int)[ 96, 127 ],
clock-rate=(int)[ 1, 2147483647 ], encoding-name=(string)MP4V-ES
>>> for j in pay.src_pads(): print str(j.get_negotiated_caps())
...
None
If I use the caps from gst-lauch to build the sdp I can see the video, so the
pipeline really works
thanks
Nicola
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list