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 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
