[gst-devel] v4l properties and v4lsrc v.s. v4l2src

Edgard Lima edgard.lima at indt.org.br
Thu Jan 24 10:06:50 CET 2008


ext Carlos Hernández wrote:
> Hi All:
> 
> I've been trying to figure out how to set certain properties on a v4l
> device using v4lsrc or v4l2src source, with limited success.
> 
> One of the difficulties was to understand what can really go on the
> caps definition. for many purposes, using 'video/x-raw-rgb width=320
> height=220' or the like works, but I wonder if other parameters can go
> on the caps description as well, e.g. 'frequency=1 channel=0'.

run gst-inspect-0.10 v4l2src (or v4lsrc) to see what you can use on the
"caps"

frequency and channel were "properties" that was in some previous
version of v4l2src and has been removed (by mistake) I hope to have time
at some point to put them back. Anyway you can choose them using
GstTuner interface in your program.

There is a very simple test app you can see how v4l2src works
http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/icles/v4l2src-test.c?revision=1.8&view=markup

> 
> My other question is how to learn what the differences between v4lsrc
> and v4l2src are. I have read cheese's source code that seems to to a
> good job of setting up the v4l sources and v4l2src is used there, but
> couldn't get pass that snippet.

I would say that v4lsrc and v4l2src are quite similar to be used in
GStreamer, the main difference is the internally which implements v4l or
v4l2 standards to talk to device drivers.

> 
> Last but not least, IRC channel responses are great, thanks for
> bearing with us newcomers.
> 
> Carlos
> 





More information about the gstreamer-devel mailing list