[gstreamer-bugs] [Bug 350545] Caps introspection debug option

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Dec 2 16:27:18 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=350545
  GStreamer | gstreamer (core) | git

David Schleef <ds> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from David Schleef <ds at schleef.org> 2010-12-03 00:27:12 UTC ---
The capsdebug element does most of what you'd want here.

Example showing the complete negotiation between videotestsrc and xvimagesink:

  GST_DEBUG=default:3 gst-launch videotestsrc ! capsdebug ! xvimagesink

In Julien's case, first try:


  GST_DEBUG=default:3 gst-launch-0.10 videotestsrc ! capsdebug !
"video/x-raw-rgb, bpp=16, depth=16" ! ximagesink

This gives:

0:00:00.069300550   897  0x8ea2070 INFO                 default
gstcapsdebug.c:235:gst_caps_debug_getcaps: downstream returned EMPTY

Try again, with capsdebug in a different spot:

  GST_DEBUG=default:3 gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16,
depth=16" ! capsdebug ! ximagesink

This gives:

0:00:00.048809149   904  0x8ce1070 INFO                 default
gstcapsdebug.c:230:gst_caps_debug_getcaps: downstream called getcaps
0:00:00.052694563   904  0x8ce1070 INFO                 default
gstcapsdebug.c:235:gst_caps_debug_getcaps: upstream returned video/x-raw-rgb,
bpp=(int)16, endianness=(int)1234, depth=(int)16, red_mask=(int)63488,
green_mask=(int)2016, blue_mask=(int)31, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
Setting pipeline to PAUSED ...
0:00:00.059975304   904  0x8ce1070 INFO                 default
gstcapsdebug.c:230:gst_caps_debug_getcaps: upstream called getcaps
0:00:00.060033064   904  0x8ce1070 INFO                 default
gstcapsdebug.c:235:gst_caps_debug_getcaps: downstream returned video/x-raw-rgb,
bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280,
green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)[ 1, 2147483647
], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
pixel-aspect-ratio=(fraction)1/1


capsdebug doesn't specifically tell you that these aren't compatible, but it's
not too hard to figure that out.

-- 
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