[gstreamer-bugs] [Bug 523664] New: v4l2src get_caps() does not return the caps its currently using!
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Mar 20 17:53:13 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=523664
GStreamer | gst-plugins-good | Ver: HEAD CVS
Summary: v4l2src get_caps() does not return the caps its
currently using!
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: tester at tester.ca
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
v4l2src returns different caps from its get_caps() function every time I call
it..
When its called when the pipeline is running, it returns caps that are
incompatible with the ones it called setcaps() with. It should at least cache
those and return them unioned with whatever else it has. Or maybe the FIXME
should be fixed in get_caps()..
Small python program that shows the problem with my Logitech Quickcam Fusion
(where 15/1 is not an acceptable framerate once the device has been opened):
import gst,time
pipeline = gst.parse_launch ("v4l2src ! ffmpegcolorspace ! videoscale !
video/x-raw-yuv,framerate=(fraction)15/1,width=352, height=288,
format=(fourcc)I420 ! identity name=i ! ffmpegcolorspace ! videoscale !
xvimagesink sync=false")
pipeline.set_state(gst.STATE_PLAYING);
time.sleep(1)
i = pipeline.get_by_name("i")
print i.get_pad("src").get_caps().to_string()
pipeline.set_state(gst.STATE_NULL);
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=523664.
More information about the Gstreamer-bugs
mailing list