GNOME Bugzilla – Bug 601143
v4l2src: add GstURIHandler interface
Last modified: 2009-12-21 12:58:16 UTC
v4l2src can't be created by just using v4l2:// uri.
Created attachment 147207 [details] [review] v4l2src: Add GstURIHandler interface. This allows using v4l2://[<device>]
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?
What is the use-case? I was thinking of adding this to videotestsrc, as one could then test playbin2 without media :)
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
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.
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 :)
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>]