Re: Announcing libv4l 0.3.4
Chris Hammond <[email protected]> Wed, 9 Jul 2008 06:46:39 -0700 (PDT)
| Newsgroups | gmane.linux.drivers.spca50x.devel |
|---|---|
| Message-ID | <[email protected]> |
--- On Wed, 9/7/08, Chris Hammond <[email protected]> wrote: > From: Chris Hammond <[email protected]> > Subject: Re: [Spca50x-devs] Announcing libv4l 0.3.4 > To: "Hans de Goede" <[email protected]> > Date: Wednesday, 9 July, 2008, 2:45 PM > --- On Wed, 9/7/08, Hans de Goede > <[email protected]> wrote: > > > From: Hans de Goede <[email protected]> > > Subject: Re: [Spca50x-devs] Announcing libv4l 0.3.4 > > To: [email protected], "SPCA50x Linux Device > Driver Development" > <[email protected]> > > Date: Wednesday, 9 July, 2008, 11:56 AM > > Chris Hammond wrote: > > > --- On Mon, 7/7/08, Hans de Goede > > <[email protected]> wrote: > > > > > > <snip> > > >> I'm afraid version 0.3.3 had a nasty bug, > so > > here is > > >> 0.3.4: > > >> > > http://people.atrpms.net/~hdegoede/libv4l-0.3.4.tar.gz > > >> > > > <snip> > > > > > > OK this is my first attempt to use gspcav2 and > libv41 > > together - so I may have made a beginners mistake... > > > > > > I installed gspca-9ff62c80bf4c.tar.gz from > > http://linuxtv.org/hg/~jfrancois/gspca/ > > > > > > This appears to work as dmesg reports: > > > > > > usb 2-2: new full speed USB device using uhci_hcd > and > > address 2 > > > usb 2-2: configuration #1 chosen from 1 choice > > > gspca: main v2.1.6 registered > > > gspca: probing 046d:0928 > > > gspca: probe ok > > > usbcore: registered new interface driver spca561 > > > spca561: v2.1.5 registered > > > > > > I can't get any useable picture - not > surprising > > as virtually nothing understands the default bayer > format > > from this camera, so I thought easy solution install > > libv4l-0.3.4.tar.gz - done in default location. > > > > > > Unfortunately I get the following error: > > > > > > > > > $export > > LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so > > > $ mplayer tv:// -tv device=/dev/video0 > > > mplayer: error while loading shared libraries: > > libv4l2.so.0: cannot open shared object file: No such > file > > or directory > > > $ > > > > > > > > > > I assume you did do a "make install", > > /usr/local/lib is not a standard path > > where ld.so looks, so you need to run the > > "ldconfig" command as root to tell > > ld.so where to find libv4l2.so.0, I guess this could > be > > considered a bug in the > > make install target. > > > > Thank you - you guessed correctly. The error is removed > after using ldconfig. > > mplayer now needs outfmt specifying to work with the > logitech webcam. i.e. > > as root > $ldconfig /usr/local/lib/ > > then as a user > > $ export LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so > $ v4l-info | grep pixel > ioctl VIDIOCGTUNER: Invalid argument > ioctl VIDIOCGAUDIO: Invalid argument > ioctl VIDIOCGFBUF: Invalid argument > pixelformat : 0x31363553 [S561] > pixelformat : 0x47524247 [GBRG] > pixelformat : 0x33524742 [BGR3] > pixelformat : 0x32315559 [YU12] > fmt.pix.pixelformat : 0x31363553 [S561] > > $ mplayer tv:// -tv device=/dev/video0:outfmt=0x33524742 > > Produces a good picture. mplayer also works with > outfmt=i420, bgr24 and 0x32315559. > > gstreamer also works: > $ gst-launch-0.10 v4l2src device=/dev/video0 ! > ffmpegcolorspace ! ximagesink > > As does v4lctl to adjust brightness and contrast. > $ v4lctl -c /dev/video0 contrast 200 > > I've not got skype working - but that is probably more > to do with me using ssh and vncserver to access this PC > (pulseaudio is refusing connections, etc). > > Many thanks, > > Chris > > > > __________________________________________________________ > Not happy with your email address?. > Get the one you really want - millions of new email > addresses available now at Yahoo! > http://uk.docs.yahoo.com/ymail/new.html __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08