After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601143 - v4l2src: add GstURIHandler interface
v4l2src: add GstURIHandler interface
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-08 10:48 UTC by Edward Hervey
Modified: 2009-12-21 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
v4l2src: Add GstURIHandler interface. (2.80 KB, patch)
2009-11-08 10:50 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2009-11-08 10:48:49 UTC
v4l2src can't be created by just using v4l2:// uri.
Comment 1 Edward Hervey 2009-11-08 10:50:47 UTC
Created attachment 147207 [details] [review]
v4l2src: Add GstURIHandler interface.

This allows using v4l2://[<device>]
Comment 2 Sebastian Dröge (slomo) 2009-11-12 12:15:57 UTC
Review of attachment 147207 [details] [review]:

Looks good in general, could you do the same for v4l(1) too? :)

::: sys/v4l2/gstv4l2src.c
@@ +985,3 @@
+  return g_strdup_printf ("v4l2://%s", v4l2src->v4l2object->videodev);
+}
+

Isn't it possible that ->videodev is NULL?
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2009-11-16 22:10:26 UTC
What is the use-case? I was thinking of adding this to videotestsrc, as one could then test playbin2 without media :)
Comment 4 Edward Hervey 2009-11-17 12:15:48 UTC
I was writing some minimalistic application which encodes a given uri. With this you can just do : tests/encode val2:// -format ogg

See gst-convenience/tests/examples/ for the code.

But yes, you could also do playbin2 uri=v4l2:// to just view the camera
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2009-11-17 12:28:12 UTC
I don't want to steal the bug, but I wonder if then we should have some extra parameters in the uri, like "num-buffers". The video-mode can be selected with a capsfilter already.
Comment 6 Andy Wingo 2009-12-21 11:42:03 UTC
Adding parameters might be interesting, but to me sounds like a separate bug report. I think Edward should commit this, with slomo's comment applied :)
Comment 7 Edward Hervey 2009-12-21 12:57:53 UTC
commit 121c001437ef32fe94898f14664343309024b7c3
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Sun Nov 8 11:49:14 2009 +0100

    v4l2src: Add GstURIHandler interface. Fixes #601143
    
    This allows using v4l2://[<device>]