On Sun, 26 Oct 2008 11:40:45 +0100 Thomas Bächler <thomas@archlinux.org> wrote: ...
What do you mean be "works incorrectly"? The new gspca drivers only support v4l2 and don't do conversion in the driver. Well, indeed with v4l driver the mplayer shows a messed image with swapped lines and weird colors, but it fails at all with v4l2:
Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <olschewski@zpr.uni-koeln.de> comment: first try, more to come ;-) Selected device: Generic Digital camera Capabilites: video capture read/write streaming supported norms: inputs: 0 = spca561; Current input: 0 Current format: unknown (0x47524247) tv.c: norm_from_string(NTSC): Bogus norm parameter, setting default. v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! Selected input hasn't got a tuner! v4l2: ioctl set mute failed: Invalid argument v4l2: ioctl query control failed: Invalid argument v4l2: ioctl query control failed: Invalid argument ========================================================================== Cannot find codec matching selected -vo and video format 0x47524247. Read DOCS/HTML/en/codecs.html! ========================================================================== v4l2: ioctl set mute failed: Invalid argument v4l2: 0 frames successfully processed, 0 frames dropped.
You need libv4l to do that (either built into your application or as LD_PRELOAD wrapper). I was going to upload that package to extra just now, but the server with the source tarball is unavailable right now.
Ok, I'll try libv4l, thanks! Cheers, Sergey