[gstreamer-bugs] [Bug 611273] New: get caps from rtpmp4vpay element
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Feb 27 04:14:01 PST 2010
https://bugzilla.gnome.org/show_bug.cgi?id=611273
GStreamer | gst-python | 0.10.25
Summary: get caps from rtpmp4vpay element
Classification: Desktop
Product: GStreamer
Version: 0.10.25
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: lists at svrinformatica.it
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Hi
I launch a pipeline from cli and in verbose mode I get the following output:
/GstPipeline:pipeline0/GstRtpMP4VPay:rtpmp4vpay0.GstPad:src: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-
name=(string)MP4V-ES, profile-level-id=(string)3,
config=(string)000001b003000001b509000001000000012000c4f8305d8ba9851604241463000001b2200001010201,
payload=(int)96, ssrc=(guint)1719703035, clock-base=(guint)3228674565, seqnum-
base=(guint)57615
I use the same pipeline in my python code and it works, but when I try to get
the caps I have the following:
In [276]: for i in pipeline.elements():
if 'rtpmp4vpay' in str(i.get_name()):
sink=i
.....:
In [279]: sink
Out[279]: <__main__.GstRtpMP4VPay object (rtpmp4vpay1) at 0x26b1230>
In [280]: for j in sink.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
these returned caps are the allowed caps and not the actual caps, the expected
results is something like this:
application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-
name=(string)MP4V-ES, profile-level-id=(string)3,
config=(string)000001b003000001b509000001000000012000c4f8305d8ba9851604241463000001b2200001010201,
payload=(int)96
as report but the gst-launch
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