[Gambas-user] The WebCam Examples crash

Benoît Minisini gambas at ...1...
Fri May 31 16:06:43 CEST 2013


Le 31/05/2013 15:41, Benoît Minisini a écrit :
> Hi,
>
> Ford anyone could test if gb.media (the gstreamer component) can be used
> to deal with V4L2 devices?
>
> There are gstreamer plugins for that:
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html
>
>

Here is what I told Richard:

Look at the "MediaPlayer" example: you can play any video files (or 
sound files)  with it.

It is based on the gb.media component which is a simplified interface to 
the GStreamer multimedia library.

That library (and so gb.media) works by putting "plugins" together. It's 
like Legos.

The MediaPlayer is based on a big GStreamer plugin that implements a 
full media player.

Hopefully, GStreamer has a plugin named "v4l2src" that gets images from 
a Video4Linux device.

So, by replacing the "file" input plugin by the "v4l2src" plugin in the 
MediaPlayer, you can see your webcam anywhere on the screen.

It should be just a matter of setting the right properties of the 
"v4l2src" plugin. Google and a little elbow grease should help there.

If someone has more time than me *and* a webcam to test if the gb.v4l 
component can easily be replaced by gb.media, it would be cool! :-)

-- 
Benoît Minisini




More information about the User mailing list