autovideosrc

Luca Della Ghezza luca_dgh at yahoo.it
Wed Feb 8 14:17:29 PST 2012


Thanks so much.

 Luquino.

Il giorno mié, 08/02/2012 alle 22.23 +0100, Stefan Sauer ha scritto:

> On 02/08/2012 08:43 PM, Luca Della Ghezza wrote: 
> 
> > Thanks for your answer.
> > Actually /dev/video0 exist, in some cases is a tv card or in other
> > cases is another video card.
> > I was looking for a simple way to find out the web cam device with a
> > bash command (or set of commands).
> > I admit that I had no idea that gstreamer-properties affects gconf
> > variables, so I can query gconf variables with bash commands, but I
> > wonder if there is a (gst) command that retrieves data from gconf
> > variables.
> 
> 
> Sorry if I was not clear, the solution would be to use gconfvideosrc
> instead of autovideosrc in your case. Alternatively on linux devices
> can be detected using udev (e.g. using libgudev). This is somewhat
> outside of gstreamers scope (and quite platform specific).
> 
> Stefan
> 
> 
> > Regards.
> > 
> > Luquino
> > 
> > Il giorno mié, 08/02/2012 alle 20.00 +0100, Stefan Sauer ha scritto:
> > 
> > > On 02/07/2012 10:05 PM, Luca Della Ghezza wrote: 
> > > 
> > > > Hi to all!
> > > > I'm tryng to write a simple intranet videochat script in bash,
> > > > it just connects 2 pc in a lan trough ssh and using gst-launch
> > > > the script opens the remote cam and shows the image on the local
> > > > pc. It's quite easy using a pipe like this:
> > > > 
> > > > gst-launch v4l2src ! videoscale !
> > > > video/x-raw-yuv,width=320,height=240, framerate=30/1 !
> > > > ffmpegcolorspace ! jpegenc ! tcpserversink host=$MyIp port=1000
> > > > (I use tcp because the router filters udp)
> > > > 
> > > > That works, but if the remote pc has the cam on a device that is
> > > > not /dev/vide0 the pipe can't shows the image of the web cam. I
> > > > have to specify in the pipe    device=/dev/video1.
> > > > So I tried the autovideosrc option, but no way the pipe is still
> > > > showing the /dev/video0 device, even if in gstreamer-properties
> > > > the video input device defined is the usb web cam.
> > > 
> > > the settings done in gstreamer-properties would affect
> > > gconfvideosource /gsettingsvideosrc. One more question, is there
> > > a /dev/video0? If not v4l2src could probably be enhanced to
> > > try /dev/video1 and so on automatically.
> > > 
> > > Stefan
> > > 
> > > 
> > > > 
> > > > How can I do to obtain an automatic detection of the web cam
> > > > device in the pipe?
> > > > 
> > > > Thx a lot for your help.
> > > > 
> > > > luquino. 
> > > > 
> > > > _______________________________________________
> > > > gstreamer-devel mailing list
> > > > gstreamer-devel at lists.freedesktop.org
> > > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > 
> > 
> > 
> > 
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120208/b6d8581e/attachment.html>


More information about the gstreamer-devel mailing list